DataMouse Posted December 2, 2006 Posted December 2, 2006 Hi folks I've done my installation and got it up and running at www.DataMouse.biz/catalog I've changed the default image files to customise the look (a cheat, I know). However, I have a couple of issues. All of my products will be for download (no "physical" items). I've added the files to the downloads folder, added the descriptions (for some products) and set up the download options as per the instal guide. However, I get sent to a "shipping address" screen and I get this error when I try to checkout: Warning: Division by zero in /homepages/1/d163279975/htdocs/catalog/includes/classes/shipping.php on line 61 Warning: Division by zero in /homepages/1/d163279975/htdocs/catalog/includes/classes/shipping.php on line 62 Warning: Cannot modify header information - headers already sent by (output started at /homepages/1/d163279975/htdocs/catalog/includes/classes/shipping.php:61) in /homepages/1/d163279975/htdocs/catalog/includes/functions/general.php on line 33 I have absolutely no idea what this means. As a seperate issue, I'd really like to add a flash header to the OSC part (same as the rest of my site). The banner would be 780 x 170. How do I add this instead of the header image (on the left) and the "my account"/"cart contents"/"checkout" icons (on the right)? Thanks for any help you can offer. Danny I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
nvedia Posted December 2, 2006 Posted December 2, 2006 May be this can help you http://www.oscommerce.com/community/bugs,3...3+Compatibility
DataMouse Posted December 2, 2006 Author Posted December 2, 2006 May be this can help youhttp://www.oscommerce.com/community/bugs,3...3+Compatibility Thanks OSCCODER. This seems to be a search error. I'm not using search at all. I think that the issue is that my download folder/process isn't set up correctly - but I'm not sure where I've gone wrong.... :( I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
nvedia Posted December 2, 2006 Posted December 2, 2006 Which shipping module do you have on the cart?
DataMouse Posted December 4, 2006 Author Posted December 4, 2006 Which shipping module do you have on the cart? Sorry for the delay osccoder. Short answer is "I don't know". I just downloaded and installed whatever comes with the download :blink: You can have a look (www.DataMouse.biz/catalog or "www.Datamouse.biz/catalog (forward slash) admin" for the admin bit) (Don't want the spiders to pick up the address yet) I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
nvedia Posted December 5, 2006 Posted December 5, 2006 So, you are saying you do not have any modifications done on the shipping module? Any other module you have installed on the cart? In any case just print these lines of the file here and we can get going from there! Warning: Division by zero in /homepages/1/d163279975/htdocs/catalog/includes/classes/shipping.php on line 61 Warning: Division by zero in /homepages/1/d163279975/htdocs/catalog/includes/classes/shipping.php on line 62
DataMouse Posted December 5, 2006 Author Posted December 5, 2006 So, you are saying you do not have any modifications done on the shipping module?Any other module you have installed on the cart? In any case just print these lines of the file here and we can get going from there! Warning: Division by zero in /homepages/1/d163279975/htdocs/catalog/includes/classes/shipping.php on line 61 Warning: Division by zero in /homepages/1/d163279975/htdocs/catalog/includes/classes/shipping.php on line 62 Hi osccoder (thanks for getting back to me) >>you are saying you do not have any modifications done on the shipping module? Exactly right. The only changes I've made are to the graphics...and all I did with them was change the images (the filenames are the same). Would it be better to uninstall and see if there's someone that does a "paid" install? DataMouse I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
nvedia Posted December 5, 2006 Posted December 5, 2006 "paid" install?? You mean you might not have installed it properly? In any case please print the lines of the file I have mentioned.. Thanks
DataMouse Posted December 6, 2006 Author Posted December 6, 2006 "paid" install?? You mean you might not have installed it properly? In any case please print the lines of the file I have mentioned.. Thanks I followed the install instructions to a tee. It just seems odd that the download option doesn't seem to be working. As for printing the lines - I don't understand. I've printed them to my Lexmark, but I don't know how this will fix. Am I misunderstanding? I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
nvedia Posted December 6, 2006 Posted December 6, 2006 Well mate by printing I meant post the lines in the forum here so that I can see the source of error
DataMouse Posted December 6, 2006 Author Posted December 6, 2006 Well mate by printing I meant post the lines in the forum here so that I can see the source of error Sorry osccoder (I must come across as a right dipsh!t) I don't know what I'm doing with the PHP (does it show? :P ) I'll send the lines across when i get back to the computer with teh files (out of office at the mo). I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
DataMouse Posted December 7, 2006 Author Posted December 7, 2006 Hi osccoder These are lines 60, 61 and 62 from Shipping.php if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes $shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT); $shipping_weight = $shipping_weight/$shipping_num_boxes; Does this mean anything to you? I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
nvedia Posted December 7, 2006 Posted December 7, 2006 May be with SHIPPING_MAX_WEIGHT Whats its value?
DataMouse Posted December 7, 2006 Author Posted December 7, 2006 Normally 0.00. I thought this was an issue, so I changed it to 0.01. It shouldn't matter (I wouldn't have thoguht) as it's not being shipped. It's a download. I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
DataMouse Posted December 7, 2006 Author Posted December 7, 2006 I changed the weight to 1. I still get the error. I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
DataMouse Posted December 11, 2006 Author Posted December 11, 2006 osccoder? Are you still around...? I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
nvedia Posted December 11, 2006 Posted December 11, 2006 May be I have to see the site to tell you the exact problem
jdvb Posted December 11, 2006 Posted December 11, 2006 if no shipping ever aplies, change max weight to 9999999999999999999999999999999 or just disable the whole shipping module. also, product weight in adding products should also be set to 0 by default, any existing products with a weight should be set to 0 (ounces / kilo's whatever) if you still can't figure it out, just set replace those lines by these: if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes $shipping_num_boxes = 0; $shipping_weight = 0; edit: second error: remove any trailing spaces and or empty lines in: /homepages/1/d163279975/htdocs/catalog/includes/classes/shipping.php that follow before <?php or after ?>
DataMouse Posted December 12, 2006 Author Posted December 12, 2006 if no shipping ever aplies, change max weight to 9999999999999999999999999999999 or just disable the whole shipping module. also, product weight in adding products should also be set to 0 by default, any existing products with a weight should be set to 0 (ounces / kilo's whatever) if you still can't figure it out, just set replace those lines by these: if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes $shipping_num_boxes = 0; $shipping_weight = 0; edit: second error: remove any trailing spaces and or empty lines in: /homepages/1/d163279975/htdocs/catalog/includes/classes/shipping.php that follow before <?php or after ?> Hi jdvb - thanks for joining How do I remove the shipping module? Do I just delete it? I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
DataMouse Posted December 12, 2006 Author Posted December 12, 2006 If you need to see the "live" shop, check www.DataMouse.biz/catalog Login Name: Dummy Password: Dummy The Red Fire Icons are set up correctly (i believe). They're in the ball icons area DataMouse I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
DataMouse Posted December 12, 2006 Author Posted December 12, 2006 Okey dokey - we're getting somewhere :) The changing of the code fixed the error messages. However, now I still have to provide an address in order to receive the "goods" - not a download link. Can you help set up the download part, please? :) I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.