Ajeh Posted September 25, 2002 Posted September 25, 2002 Free Call for Price v4.0 can be tested and downloaded at: http://www.thewebmakerscorner.com/working/ Some of the features included: Free Call for Price Features: Downloads Controller Attributes Enhancer with Attribute Sorter and Attribute Base Price List Prices Rebate Prices Quantity Min and Units Customer Offer Price Free Call for Price Coming Soon Showroom Only Visit Other Store 1-3 Blowout Prices Today Only Limited Time Only 3 Days Only Sold Out Forced New products based on current month Free Shipping and Free Payment Modules Percentage/Flat Rate Shipping Modules There is not much that you cannot do with this in the way of pricing. But, should you think of something, please let me know :shock: Quote
Ajeh Posted September 28, 2002 Author Posted September 28, 2002 Don't you hate typos in a contribution or forgetting something? :shock: All HTML tags for the products_name need to start with: <!--//* ... not <--//* And this needs to be added to the bottom of the language files link english.php in both the catalog and admin: // BOF: WebMakers.com Added: FREE-CALL FOR PRICE-COMING SOON ETC. require(DIR_WS_LANGUAGES . $language . '/' . 'free_call_for_price.php'); // EOF: WebMakers.com Added: FREE-CALL FOR PRICE-COMING SOON ETC. Things work way better with those changes. :D I should have a fix out tonight or tomorrow with these included in the instructions and a fix on the popup list in the Admin, etc. Quote
Guest Posted September 29, 2002 Posted September 29, 2002 Hi I downloaded it and got a file download.php which explorer on my mac attempts to load and locks up. I looked at the file in bbedit and saw lots of interesting compiled garbage. How do you get this contribution in a normal manner? I am excited to see it and try it out. Quote
Ajeh Posted September 29, 2002 Author Posted September 29, 2002 I just downloaded it from the Free Call for Price shop and it is fine when I unzip it and I have no problem with it. Make sure you are ordering it from: http://www.thewebmakerscorner.com/freecall I am not sure why your mac would not like it :shock: [/url] Quote
Guest Posted September 29, 2002 Posted September 29, 2002 I did it again https://secure.sashbox.net/thewebmakerscorn...a7fbded1d66eb40 When I do I get a file called download.php which my mac looks at and says "what's that" instead of automatically unzipping as it would a file called something .zip Since I now know that it is a zip file I forced my poor mac to unzip it and viola -- all your cool stuff is there. Do you think there is anyway you can get your download feature to give the file the correct zip extension and perhaps a name like "free_call_for_price"? Quote
Ajeh Posted September 29, 2002 Author Posted September 29, 2002 I am not sure what your mac is doing, but my file is called: FreeCallForPricev4.0.zip 10 to 1 it hates that version number. I will try to remember to start using a different naming convention on the version number so macs are not confused when there are two periods in the file name. WinZip on the PC seems capable of figuring this out, but then ... that's why macs .... never mind :shock: Quote
Guest Posted September 30, 2002 Posted September 30, 2002 But the file came as named "download.php" I don't see how that is possible. I wasn't using OSX so the two period thing wasn't the problem. I also think that the little link you have to click for downloading the file needs an icon "down load me here" or something more obvious. Quote
Ajeh Posted September 30, 2002 Author Posted September 30, 2002 For some reason, when the download messes up, like say the /pub directory is full of invalid entries etc. the browser calls what it is getting download because it is confused. That file will be garbage like you saw. I have had a similar issue occure in older snapshots where the /pub directory had a lot of dead directories that were never cleaned out. I have that in one of my add-ons that I contributed but have not updated it for the current version. The image does make it easier for people to know that they should click it to get the file. Quote
Guest Posted September 30, 2002 Posted September 30, 2002 OK -- I see how the download name could appear out of no where but "download.php"? and remember the file only appeared to me to be garbage when I looked at it with BBedit but when I forced Stuffit to unzip-it it unzipped perfectly. I think that something else is going on here. anyway... my web site doesn't use down loads and I can't ever see when it might (we sell flowers) but I just couldn't let this go as it was so strange. I am getting your "free call for price" so that I can make a shipping modules that will calculate delivery charges based on a directory of zip codes in Puerto Rico. To make it more complicated I also export flowers so for those products I will be chargeing a flat rate for the Fedex to the states. Quote
Ajeh Posted September 30, 2002 Author Posted September 30, 2002 I swear to you I have had this happen to me a dozen times when there is a bunch of junk in /pub that the file is called download.php and it is garbage. I have not seen this happen unless junk is in the /pub directory but then I do not use a mac and have not tried to download files with a double period on a mac. It's just the way it happens. The syntax gets messed up and the result is a download called downlad.php that contains garbage. It's just one of those mysteries of life ... unless you want to trace the exact syntax error that is occuring I cannot help you on that. Try downloading the sample file and see if the error disappears for you. That is just a single period in the filename. I am curious if the error just vanishes for you and you get a successful download the first time. http://www.thewebmakerscorner.com/freecall...&products_id=22 Let me know what happens ... macs :roll: :D Quote
mcoyne Posted October 2, 2002 Posted October 2, 2002 This is most likely a Mac/IE problem (assuming you are using IE). The Mac version of IE is notoriously bad at handling file uploads and downloads. I have seen this behavior on a lot of sites that use PHP to control file downloads. IE gets confused and doesn't use the provided filename attribute and just gives it the name of the download script file. If you take the resulting downloaded file and drag-and-drop into onto stuffit expander it should expand the file properly. Michael Quote
Guest Posted October 7, 2002 Posted October 7, 2002 Linda: I'm trying to add your nice new v4 to an as-yet unlaunched store but am getting an error in admin. When I view a product and get all the new entry fields (rebate, units, etc), when I hit Preview I get the following error: Fatal error: Call to undefined function: tep_get_uploaded_file() in /home/virtual/site3/fst/var/www/html/parts/admin/categories.php on line 649 If I revert back to the stock categories.php, all works fine except of course, I don't get the new fields. Any idea where I can look for the problem (being a somewhat newbie to php).[/img] Quote
Guest Posted October 7, 2002 Posted October 7, 2002 I can also confirm the "download.php" thingee in IE/OSX. I get that every once in a while. Like the above poster says, normally I can simply unstuff the downloaded file and it works. Other times I've had to use an older version of Netscape (4.77) to download the file. Quote
Guest Posted October 10, 2002 Posted October 10, 2002 Does anyone have any ideas on my problem from above? I'm trying to get the store launched but am at a dead end at the moment until I can get this resolved. Quote
Ajeh Posted October 10, 2002 Author Posted October 10, 2002 Fatal error: Call to undefined function: tep_get_uploaded_file() in /home/virtual/site3/fst/var/www/html/parts/admin/categories.php on line 649 Sounds perhaps like you have an older snapshot. Check: http://cvs.sourceforge.net/cgi-bin/viewcvs...ons/general.php Quote
Ajeh Posted October 10, 2002 Author Posted October 10, 2002 I can also confirm the "download.php" thingee in IE/OSX. I get that every once in a while. Like the above poster says, normally I can simply unstuff the downloaded file and it works. Other times I've had to use an older version of Netscape (4.77) to download the file. I am assuming you mean also on a mac ... Are these problem downloads also with extra periods in the name or long names or names with spaces? Does it work with normal names like fred.zip rather than fred.1.zip? If so, don't call the files fred.1.zip :shock: Quote
Guest Posted October 10, 2002 Posted October 10, 2002 Thanks, Linda. I upgraded to yesterday's snapshot and it did resolve most probelms. I did find one thing still giving me a problem. The "Offer Price" doesn't seem to work. If I use the coding for the image version, I don't get anything. If I use the text coding, I get a link/box at the bottom of the product description between the two normal bottom buttons. However, the button text comes up as OFFER_PRICE_TEXT in the button. I can't seem to find a place to define the text, if that's what needs to be done. When I click on that link, I get an error page: The requested URL /parts/catalog/FILENAME_OFFER_PRICE_SUBMIT was not found on this server. Again, not sure where the config is for this feature. All else seems to work fine. ----------- On the download thing from your site, yes, it's on a Mac. I can't, however, recall the common elemnets of which files fail to download and unzip/unstuff automatically. Used to always have the problem with InfoPop's UBB updates. I'd always end up with a cgi file downloaded, although many times I could still unstuff/unzip it. With php I do have it happen sometimes but not always. Usually downloads as download.php but does unstuff/unzip fine. Could be the thing about extra periods in the filename, but couldn't say if that has been the constant or not. Quote
Ajeh Posted October 11, 2002 Author Posted October 11, 2002 The docs are missing a definition for the language files. Add to /includes/languages/english.php // BOF: WebMakers.com Added: All Add-Ons require(DIR_WS_LANGUAGES . $language . '/' . 'languages_webmakers.php'); // EOF: WebMakers.com Added: All Add-Ons It works way better with that :roll: Also, any HTML tags you use in the products_name need to start and end with: <!--//* blah *//--> There is a typo describing the codes to use, but the program works right when they are typed correctly. Quote
Guest Posted October 11, 2002 Posted October 11, 2002 Great! Got it! Works fine now. :lol: I did catch the "!" typo earlier. With all the great coding and improving you're doing, need to talk you into getting the "company name" thing straightened out. There really needs to be an option to get the company name not just turned on for entry, but turned on for display in all the order/cart screens, all the admin screens, on the email confirmations, and on the invoice and picking list. Also need to be able to change the default admin screen sorts, searches to do it by company name. Hard to believe that more people haven't pushed harder for this. I would think there are a reasonable number of stores that are selling predominantly to business customers and have to have that info. I've tried to hack a few spots with only mixed results. With what I've seen you do with your hacks, I'm sure you could do it right! Here's hoping!!! Quote
Guest Posted October 11, 2002 Posted October 11, 2002 Spoke too soon. Tried the Offer Price email and got the following error when submitting the email (url=parts/catalog/offer_price_submit.php?action=send): Warning: Cannot add header information - headers already sent by (output started at /xxx/xxx/xxx/xxx/xxx/xxx/html/parts/catalog/includes/languages/english/offer_price.php:29) in /xxx/xxx/xxx/xxx/xxx/xxx/html/parts/catalog/includes/functions/general.php on line 23 Here I was so thrilled to have it working! :( Quote
Ajeh Posted October 11, 2002 Author Posted October 11, 2002 Did you have a previous version of the Free Call for Price or Offer Price or Downloads Controller loaded? Quote
Ajeh Posted October 11, 2002 Author Posted October 11, 2002 Also make sure that you have the right offer_price_submit.php file in the right directory. There are a few of them for page, language, etc. Quote
Guest Posted October 11, 2002 Posted October 11, 2002 This is what happens when i try to code after having a few pints at the pub!! Forgot about the old extra space/line before/after the php markers! :oops: Found an extra blank line at the end of the offer_price.php in the languages folder. Should have remembered that from back with my first OSC install! Quote
Ajeh Posted October 11, 2002 Author Posted October 11, 2002 Spoke too soon. Tried the Offer Price email and got the following error when submitting the email (url=parts/catalog/offer_price_submit.php?action=send): Warning: Cannot add header information - headers already sent by (output started at /xxx/xxx/xxx/xxx/xxx/xxx/html/parts/catalog/includes/languages/english/offer_price.php:29) in /xxx/xxx/xxx/xxx/xxx/xxx/html/parts/catalog/includes/functions/general.php on line 23 Here I was so thrilled to have it working! :( See if there are spaces or blank lines beneath the ?> at the bottom of /includes/languages/english.php Quote
Guest Posted October 14, 2002 Posted October 14, 2002 Linda: Any thoughts on the Company Name thingee??? With all the great coding and improving you're doing, need to talk you into getting the "company name" thing straightened out. There really needs to be an option to get the company name not just turned on for entry, but turned on for display in all the order/cart screens, all the admin screens, on the email confirmations, and on the invoice and picking list. Also need to be able to change the default admin screen sorts, searches to do it by a choice of company or name. Hard to believe that more people haven't pushed harder for this. I would think there are a reasonable number of stores that are selling predominantly to business customers and have to have that info. I've tried to hack a few spots with only mixed results. With what I've seen you do with your hacks, I'm sure you could do it right! Here's hoping!!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.