Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newbie needs some help with setup


DataMouse

Recommended Posts

Posted

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

Posted

 

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....

:(

Posted
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)

Posted

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

Posted
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

Posted

"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

Posted
"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?

Posted
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).

Posted

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?

Posted

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.

Posted

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

?>

Posted
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?

Posted

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

Posted

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?

 

:)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...