![]() |
cart_details.tpl -- can I insert a variant in cart display?
Dear Brain Trust:
In /skin1/customer/main/cart_details.tpl (the page that has the final listing of items before checkout) - immediately after {$products[prod_num].product|truncate:"40":"...":true}: Code:
<A href="product.php?productid={$products[prod_num].productid}" title="{$products[prod_num].product|escape:"html"}{if $products[prod_num].product_options}: [image removed] I thought the code that I used on cart.tpl to display the color variant: Code:
{if $products[product].product_options ne ""} Anyone have an idea here? Doesn't everyone want to list the color variant of the item in their final shopping cart? has anyone done this? Thanks, Jeremy |
Look a few lines above where you want to insert the options to see how its done. The array index is [prod_num] instead of [product].
|
Quote:
This is exactly what I was trying to do (and it really should be stock, don't you agree? What customer would not want to see the color and/or size variant of the item they are buying? NOW -- can I ask HOW did you find out all the array index fields? Is there a master directory of what x-cart is keeping track of? Can you point me somewhere so that I can learn more about what is under the hood? Thanks for being here and contributing... Jeremy |
Quote:
Quote:
Quote:
Code:
{php}func_print_r($this->_tpl_vars);{/php} |
All times are GMT -8. The time now is 08:39 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.