Show product description on cart_details.tpl
Hi,
I have been trying for hours now but I can't figure this out. I want to include the product description on the last page of the checkout process but it's simply not showing up. File: customer\main\cart_details.tpl In there I have the following code: Code:
{$product.product|truncate:"30":"...":true} I don't want to show $product.product as it's not desriptive enough. So, I thought I would simply replace it: Code:
{$product.descr} But of course it doesn't work. Anyone has any idea why this simply does not work? The code I am now using is from cart.tpl in which it works fine... Thanks in advance! Ps. This is from X-Cart v4.2.0, not the one from my signature. |
Re: Show product description on cart_details.tpl
It is in your customer\main\cart.tpl
Code:
<td class="details"> UPD For the last page of the checkout it is customer\main\cart_contents.tpl Code:
{foreach from=$products item=product name=products} |
Re: Show product description on cart_details.tpl
I am looking for the same fix. Did you get it resolved? If so, can you post the code you put in and where.
Thanks Quote:
|
Re: Show product description on cart_details.tpl
Did anyone manage to fix this. I am looking for a solution on how to display the descr in the cart details.
I'm also using fast lane checkout. |
Re: Show product description on cart_details.tpl
Got it!
Find the file include/func/func.cart.php In the file find the code: Code:
# Add this line to the product keys Code:
$product_keys[] = "descr"; Then in customer/main/cart_details.tpl you can add the {$products[prod_num].descr|truncate:"30":"...":true} where required. |
Re: Show product description on cart_details.tpl
Interesting Monkeyhead. Do you know if this works for 4.2.2?
|
Re: Show product description on cart_details.tpl
I haven't found this answer either. Anyone else know how to fix this in 4.2.2?
|
All times are GMT -8. The time now is 06:30 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.