View Single Post
  #1  
Old 07-27-2006, 06:25 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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}: {capture name=po}{include file="modules/Product_Options/display_options.tpl" options=$products[prod_num].product_options is_plain='Y'}{/capture}{$smarty.capture.po|escape}{/if}"> {* BEGIN COMMENT OUT SKU DISPLAY AT CHECKOUT *} {* {if $products[prod_num].productcode}{$products[prod_num].productcode}{else}#{$products[prod_num].productid}{/if}. *} {* END COMMENT OUT SKU DISPLAY AT CHECKOUT *} {$products[prod_num].product|truncate:"40":"...":true} </A></TD>
I want to insert the "variant" color option -- like this mockup:
[image removed]

I thought the code that I used on cart.tpl to display the color variant:
Code:
{if $products[product].product_options ne ""} {include file="modules/Product_Options/display_options.tpl" options=$products[product].product_options} {/if}
Would work here -- but nothing displays. Yes, I put it in the same <td> as the product...

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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote