Edit File: items_list_row.override.tpl
{if $product.extra.buy_together} {assign var="conf_price" value=$product.price|default:"0"} {assign var="conf_subtotal" value=$product.display_subtotal|default:"0"} {assign var="conf_discount" value=$product.extra.discount|default:"0"} {assign var="conf_tax" value=$product.tax_value|default:"0"} {assign var="_colspan" value=4} {assign var="c_product" value=$product} {foreach from=$order_info.products item="sub_oi"} {if $sub_oi.extra.parent.buy_together && $sub_oi.extra.parent.buy_together == $product.cart_id} {capture name="is_conf"}1{/capture} {math equation="item_price * amount + conf_price" amount=$sub_oi.extra.min_qty|default:"1" item_price=$sub_oi.price|default:"0" conf_price=$conf_price assign="conf_price"} {math equation="discount + conf_discount" discount=$sub_oi.extra.discount|default:"0" conf_discount=$conf_discount assign="conf_discount"} {math equation="tax + conf_tax" tax=$sub_oi.tax_value|default:"0" conf_tax=$conf_tax assign="conf_tax"} {math equation="subtotal + conf_subtotal" subtotal=$sub_oi.display_subtotal|default:"0" conf_subtotal=$conf_subtotal assign="conf_subtotal"} {/if} {/foreach} {cycle values=",table-row" name="class_cycle" assign="_class"} <tr class="valign-top {$_class}"> <td class="valign-top"> {if $product.is_accessible}<a href="{"products.view?product_id=`$product.product_id`"|fn_url}" class="product-title">{/if}{$product.product nofilter}{if $product.is_accessible}</a>{/if} {if $product.extra.is_edp == "Y"} <div class="right"><a href="{"orders.order_downloads?order_id=`$order_info.order_id`"|fn_url}"><strong>[{__("download")}]</strong></a></div> {/if} {if $product.product_code} <p>{__("sku")}: {$product.product_code}</p> {/if} {hook name="orders:product_info"} {if $product.product_options}{include file="common/options_info.tpl" product_options=$product.product_options}{/if} {/hook} {if $smarty.capture.is_conf} <p><a class="cm-combination combination-link" id="sw_conf_{$key}"><i class="icon-right-dir dir-list" title="{__("expand_sublist_of_items")}" id="on_conf_{$key}"></i><i class="icon-down-dir dir-list hidden" title="{__("collapse_sublist_of_items")}" id="off_conf_{$key}"></i>{__("buy_together")}</a></p> {/if} </td> <td class="right">{include file="common/price.tpl" value=$conf_price}</td> <td class="center"> {$product.amount}</td> {if $order_info.use_discount} {assign var="_colspan" value=$_colspan+1} <td class="right"> {include file="common/price.tpl" value=$conf_discount}</td> {/if} {if $order_info.taxes && $settings.General.tax_calculation != "subtotal"} {assign var="_colspan" value=$_colspan+1} <td class="center"> {include file="common/price.tpl" value=$conf_tax}</td> {/if} <td class="right"> <strong>{include file="common/price.tpl" value=$conf_subtotal}</strong></td> </tr> {if $smarty.capture.is_conf} <tr class="{$_class} hidden" id="conf_{$key}"> <td colspan="{$_colspan}"> <div class="box"> <table class="table table-width"> <tr> <th>{__("product")}</th> <th>{__("price")}</th> <th>{__("quantity")}</th> {if $order_info.use_discount} <th>{__("discount")}</th> {/if} {if $order_info.taxes && $settings.General.tax_calculation != "subtotal"} <th>{__("tax")}</th> {/if} <th>{__("subtotal")}</th> </tr> {foreach from=$order_info.products item="product" key="sub_key"} {if $product.extra.parent.buy_together && $product.extra.parent.buy_together == $c_product.cart_id} <tr {cycle values=",class=\"table-row\"" name="gc_`$gift_key`"} style="vertical-align: top;"> <td> {if $product.is_accessible}<a href="{"products.view?product_id=`$product.product_id`"|fn_url}">{/if}{$product.product|truncate:50:"...":true nofilter}{if $product.is_accessible}</a>{/if} {if $product.product_code} <p>{__("sku")}: {$product.product_code}</p> {/if} {hook name="orders:product_info"} {if $product.product_options} {include file="common/options_info.tpl" product_options=$product.product_options} {/if} {/hook} </td> <td class="center nowrap"> {include file="common/price.tpl" value=$product.price}</td> <td class="center nowrap"> {$product.amount}</td> {if $order_info.use_discount} <td class="right nowrap"> {if $product.extra.discount|floatval}{include file="common/price.tpl" value=$product.extra.discount}{else}-{/if}</td> {/if} {if $order_info.taxes && $settings.General.tax_calculation != "subtotal"} <td class="center nowrap"> {include file="common/price.tpl" value=$product.tax_value}</td> {/if} <td class="right nowrap"> {include file="common/price.tpl" value=$product.display_subtotal}</td> </tr> {/if} {/foreach} <tr class="table-footer"> <td colspan="10"> </td> </tr> </table> </div> </td> </tr> {/if} {/if}
Back to File Manager