Jump to content

E-Commerce advise


graham23s

Recommended Posts

Hi Guys,

 

I have coded a fully functioning shopping cart, everything works great! the thing is we haven't gone down the route of assigning weights to each product (around 900) is there a way i can assign a delivery price without using weights at all?

 

cheers for any advise

 

Graham

Link to comment
https://forums.phpfreaks.com/topic/132820-e-commerce-advise/
Share on other sites

lol i know it sounds crazy! you can update, edit delete the lot! as we are now getting live orders in it's the shipping cost that is hampering us, i set it to a flat rate:

 

if (customers country != UK) then international shipping applies etc

 

but if they order 1 bottle its X , if they order 10 bottles its still X so we are loosing out on the shipping.

 

cheers

 

Graham

 

 

Link to comment
https://forums.phpfreaks.com/topic/132820-e-commerce-advise/#findComment-690759
Share on other sites

Well, you'll need to store the weights for each items in the database (or just use what you feel will be an average weight of things ordered, although if you do that, you'll be screwing some customers over, and they probably won't like that).  Then, you will take that weight, and find out if it's foreign or national shipping.

 

So, where x is the weight, c is the cost per weight (country independent in the formula since it would be set somewhere else, and it would be factored into it then), it would simply be shipping = x*c.

Link to comment
https://forums.phpfreaks.com/topic/132820-e-commerce-advise/#findComment-690810
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.