8 replies [Last post]
MegaChriz's picture
Offline
Joined: 12/07/2009
Juice: 99

My client wants to display the shipping costs for a product on the product page. The webshop is going to use only one shipping method and the products are only selled national.
I tried to create my own module, but I can not yet find a way to retrieve the shipping costs if the product is known. I looked into the module files, but it seems to be hard to find the right function to call. How can I fix this problem?

johnvb's picture
Offline
Joined: 10/07/2010
Juice: 3
Re: Display shipping quotes on the product page

Same problem here. My client has a small product list with a flat rate shipping for each item. They would like to display in the product page something like Price: £10.00 + £2.00 P&P.
It seems overkill that the shopper has to go to checkout then click the button to calculate shipping rates in this instance.

jdln's picture
Offline
Joined: 03/08/2010
Juice: 184
Re: Display shipping quotes on the product page

Subscribing.

fehin's picture
Offline
Joined: 12/17/2008
Juice: 151
Re: Display shipping quotes on the product page

I'm trying to figure out how to do this too.

mcfilms's picture
Offline
Joined: 01/31/2011
Juice: 29
Similar Issue

Although my needs are even simpler. I just need every product over $49.99 to display "SHIPS FREE". Sounds easy, but I don't see how to do it.

jdln's picture
Offline
Joined: 03/08/2010
Juice: 184
Re: Similar Issue

I would have thought you could use conditional php to check is the price field has a value over 49.99 and show the text if this is the case.

mcfilms's picture
Offline
Joined: 01/31/2011
Juice: 29
Interesting!

Interesting. Are you suggesting I use the custom price module (http://drupal.org/project/uc_custom_price) to inject the php I need to display "SHIPS FREE"?

I guess I can see how to evaluate the price, but how and where could I trigger this message?

jdln's picture
Offline
Joined: 03/08/2010
Juice: 184
Re: Interesting!

I would just do it in a template tpl file, probably node-product.tpl.php.

mcfilms's picture
Offline
Joined: 01/31/2011
Juice: 29
Genius

That's right, GENIUS. Because then I can control the placement of where this message goes and put any divs around it I need.

Can you tell I am more familiar with searching for modules than writing php?

Well, I'm off to try and learn what to write and where to put it. I have already added some of my taxonomy terms as a "Keywords" section at the bottom of the product. So I hope doing this isn't too much more difficult.

Thanks for pointing me in the right direction.