Like ı written in title. How can we show product name and costs in terms_and_conditions.override.tpl? I need example codes.
[quote name='ooaykac' timestamp='1359468341' post='153920']
Like ı written in title. How can we show product name and costs in terms_and_conditions.override.tpl? I need example codes.
[/quote]
A particular product? All products? Products in the cart?
May be he is asking for the Particular product.
I am trying to save Terms popup after order successfuly placed.
I am trying to show product name, unit price and total price of items in cart. Actually, I can show some of them. But, I can't show sub total price of products (total price).
Here is my code in terms_and_conditions.override.tpl:
{foreach from=$cart.products item="product" key="key" name="cart_products"}
{assign var="obj_id" value=$product.object_id|default:$key}
{hook name="checkout:items_list"}
{if !$cart.products.$key.extra.parent}
{$product.product_id|fn_get_product_name}
{$product.amount}
{include file="common_templates/price.tpl" value=$product.price}
{include file="common_templates/price.tpl" value=$product.display_subtotal}
{/if}
{/hook}
{/foreach}
If I change this
foreach from=$cart[color=#ff0000].[/color]products [color=#808080](with dot)[/color]
to this
foreach from=$cart[color=#ff0000]_[/color]products [color=#808080](with underscore)[/color]
I can show sub total price of products. But when I try to save it, it disappear. But when I use $cart[color=#ff0000].[/color]products (with dot) I can save values. I just can't save $product.display_subtotal value.
Please. I need help.
I want to show and save products in the cart.