| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Can't get extra fields to show in other places | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() {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
__________________
X-cart - 4.3.2 loads of mods and custom code |
|||||||
#12
|
|||||||
|
|||||||
![]() 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 - |
|||||||
#13
|
|||||||
|
|||||||
![]() 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?
__________________
David Coggan Carolyn Nussbaum Music Company X-Cart v4.5.4 Gold + LiteCommerce v2.2.41 (previous 6 years) |
|||||||
|
#14
|
|||||||||
|
|||||||||
![]() Thanks this worked perfectly for me.
__________________
Live Version : 4.5.2 Licensed Products: X-Cart Gold Ability Theme CDSEO xCMS Abandoned Cart Food Packaging Scotland |
|||||||||
#15
|
|||||||
|
|||||||
![]() any chance of getting the extra fields to show up on the order details page in admin end this would be a great feature
|
|||||||
|
|||
X-Cart forums © 2001-2020
|