CameraTek Posted December 30, 2010 Share Posted December 30, 2010 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 advanceAndy Link to comment Share on other sites More sharing options...
evolution.x Posted March 14, 2012 Share Posted March 14, 2012 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 More sharing options...
CameraTek Posted March 14, 2012 Author Share Posted March 14, 2012 Hi evolution, Unfortunately I didnt manage to do it, but if you find a way, could you please post it on here. Andy Link to comment Share on other sites More sharing options...
evolution.x Posted March 23, 2012 Share Posted March 23, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now