Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Can't get extra fields to show in other places

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 08-24-2011, 03:16 PM
 
7thdesire 7thdesire is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 115
 

Default 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
__________________
X-cart - 4.3.2 loads of mods and custom code
Reply With Quote
  #12  
Old 08-08-2012, 03:41 AM
 
dennisvon dennisvon is offline
 

Member
  
Join Date: Feb 2006
Posts: 21
 

Default 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 -
__________________
Version 4.4.2
www.smokeinn.com
Reply With Quote
  #13  
Old 08-08-2012, 10:07 AM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default 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?
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote

The following user thanks tartaglia for this useful post:
David-Allan (08-13-2012)
  #14  
Old 08-13-2012, 02:00 AM
  David-Allan's Avatar 
David-Allan David-Allan is offline
 

eXpert
  
Join Date: Oct 2011
Location: Scotland, UK
Posts: 313
 

Default Re: Can't get extra fields to show in other places

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
Reply With Quote
  #15  
Old 12-14-2013, 06:27 PM
 
carmatswarehouse carmatswarehouse is offline
 

Newbie
  
Join Date: Sep 2012
Posts: 4
 

Default 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
__________________
Version: 4.5.2
www.matscar.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:34 PM.

   

 
X-Cart forums © 2001-2020