Jump to content

Show shipping cost on product page


CameraTek

Recommended Posts

  • 1 year later...

Hi all,

Could anyone please help me out, I need to show the shipping cost on my product description page. What would be the code to call the price.

 

Cheers in advance

 

Andy

 

Apologies for digging up an old thread but did you manage to find the answer to your question?

Link to comment
Share on other sites

  • 2 weeks later...

Hi evolution,

Unfortunately I didnt manage to do it, but if you find a way, could you please post it on here.

 

Andy

 

Hi Andy,

 

I have managed to display the shipping cost for the item on the product page, with the help of Rocky!

 

I added the code below to product.php:

 

$carrier = new Carrier(33, intval($cookie->id_lang));
$shippingCost = $carrier->getDeliveryPriceByWeight($product->weight, 7);
$smarty->assign('shippingCost', $shippingCost);

 

Change "33" to your carier of choice and change "7" to the zone of your choice.

 

I then added the code below to product.tpl:

 

{convertPrice price=$shippingCost}

 

I am now trying to add this code to the product-list.tpl but cannot find the correct php file to add the $smarty variables? Any ideas?

 

Regards

 

Adam

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...