graham23s Posted November 15, 2008 Share Posted November 15, 2008 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 More sharing options...
.josh Posted November 15, 2008 Share Posted November 15, 2008 You coded a fully functioning shopping cart, and yet can't figure out if there's a way to not factor one variable into an equation? Link to comment https://forums.phpfreaks.com/topic/132820-e-commerce-advise/#findComment-690753 Share on other sites More sharing options...
graham23s Posted November 15, 2008 Author Share Posted November 15, 2008 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 More sharing options...
corbin Posted November 15, 2008 Share Posted November 15, 2008 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 More sharing options...
graham23s Posted November 15, 2008 Author Share Posted November 15, 2008 Hi Mate, yeah, we don't like asking for more than is absolutely needed on shipping (our friend is shipping 80+ orders a day) he says its the shipping you mainly make the money on aswell as the prodeucts! cheers Graham Link to comment https://forums.phpfreaks.com/topic/132820-e-commerce-advise/#findComment-690883 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.