![]() |
Re: Can't get extra fields to show in other places
{foreach from=$product.extra_fields item=v}
{if $v.active eq "Y" && $v.value ne ""} {if $v.field eq "Swatch"} {$v.value} {/if}{/if} {/foreach} replace swatch with your extra field name |
Re: Can't get extra fields to show in other places
Wanted to show extra field Pack in the product list, Xcart 4.5
Edited the file products_list.tpl in skin/ideal_comfort/customer/main/ added the code right after this code - {if $config.Appearance.display_productcode_in_list eq "Y" and $product.productcode ne ""} <div class="sku">{$lng.lbl_sku}: <span class="sku-value">{$product.productcode|escape}</span></div> {/if} Here is the code that I used - Pack: {$product.extra_fields[2].field_value} {foreach from=$product.extra_fields item=v} {if $v.active eq "Y" && $v.value ne ""} {if $v.field eq "Pack"} {$v.value} {/if}{/if} {/foreach} Thanks for your help - |
Re: Can't get extra fields to show in other places
in XC 4.5.1 I did the following which works:
Created new file in <skin>/modules/Extra_Fields/ product_extrafields_list.tpl: {foreach from=$product.extra_fields item=v} {if $v.service_name eq $xtrafieldservicename and $v.active eq "Y" and $v.field_value} <div> <span class="descr">{$v.field}: </span> <span class="descr">{$v.field_value}</span> </div> {/if} {/foreach} Called this file from products_list.tpl using: {if $active_modules.Extra_Fields} {include file="modules/Extra_Fields/product_extrafields_list.tpl" xtrafieldservicename="ORCHESTRATION"} {/if} If this helps you, maybe you can help me....I need to figure out how to show the same extra field data in the cart, this is important because it allows the customer to confirm that they have the exact right product in their cart before they start the check out process. Anyone can help? |
Re: Can't get extra fields to show in other places
Thanks this worked perfectly for me.
|
Re: Can't get extra fields to show in other places
any chance of getting the extra fields to show up on the order details page in admin end this would be a great feature
|
All times are GMT -8. The time now is 05:10 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.