Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
grahamgr3

Shipping With Ecommerce2 Example

Recommended Posts

In the ecommerce2 example is how shipping is covered handled. I am wondering how we code our php scripts to know how to calculate shipping for multiple products per order, by weight, size, etc. How do we do that, in the glossary I don't see a section that covers shipping.

Share this post


Link to post
Share on other sites

I thought I discussed this a bit in the book. It really depends upon many things--types of products, business model, etc. As a general rule of thumb, if the types of products vary greatly, I'd recommend using a third-party service that calculates shipping costs for you. You'd post a request to their API with the salient details and then get shipping costs in return. This would then dictate what kind of information you'd need to store along with the products: specifically size and weight. 

 

But the short version is you either take the easy route, charging a flat amount (which has its downsides), or you'll want to use a third-party service that can accurately calculate shipping costs for you. 

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...