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

Extra fields in quick_view.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-12-2012, 05:57 AM
  David-Allan's Avatar 
David-Allan David-Allan is offline
 

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

Default Extra fields in quick_view.tpl

Hi Guys,

I'm trying to add an extra field in my quick_view.tpl file.

Here is what I am trying to use but it doesn't seem to want to work. Does anyone have any tips on how to get this to show the info from the array please?

Code:
<div class='grid_6'><b>Quantity:</b></div><div class='grid_6'>{$extra_fields.field_value}</div><div class='clearing'></div>

Here is what the debug console shows for the data i'm looking for:

Code:
{$extra_fields} Array (37) 0 => Array (9) fieldid => "2" provider => "1" field => "Product Description" value => "" active => "Y" orderby => "1" service_name => "SERVICE_NAME01" field_value => "Case of 500 items" is_value => "Y"

This is what i'm trying to output
Code:
field_value => "Case of 500 items"

Any help would be very much appreicated
__________________
Live Version : 4.5.2
Licensed Products:
X-Cart Gold
Ability Theme
CDSEO
xCMS
Abandoned Cart
Food Packaging Scotland
Reply With Quote
  #2  
Old 07-12-2012, 12:12 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Extra fields in quick_view.tpl

Try {$extra_fields.0.field_value)
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #3  
Old 07-12-2012, 12:20 PM
 
tartaglia tartaglia is offline
 

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

Default Re: Extra fields in quick_view.tpl

David-Allan,

Take a look at this post, I got it to work in a dev instance of 4.4.5 (with GREAT HELP from cherie!!) and I am about to try it again in 4.5.1. Hope this helps.
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
  #4  
Old 07-17-2012, 12:46 AM
  David-Allan's Avatar 
David-Allan David-Allan is offline
 

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

Default Re: Extra fields in quick_view.tpl

Quote:
Originally Posted by tartaglia
David-Allan,

Take a look at this post, I got it to work in a dev instance of 4.4.5 (with GREAT HELP from cherie!!) and I am about to try it again in 4.5.1. Hope this helps.

You never put the link in mate.

Quote:
Originally Posted by cherie
Try {$extra_fields.0.field_value)

This doesn't show anything either Cherie, thanks for the suggestion though.

Also on the subject of quick_view.tpl, I have been trying to add the quick_view button to the featured tabs on my site without much luck.

I added this to featured.tpl but it only shows the button but the button doesn't actually produce any results when pressed.
Code:
<p><button class="button" id="qv_{$product.productid}">{$lng.lbl_quick_view}</button></p>
__________________
Live Version : 4.5.2
Licensed Products:
X-Cart Gold
Ability Theme
CDSEO
xCMS
Abandoned Cart
Food Packaging Scotland
Reply With Quote
  #5  
Old 12-21-2012, 10:04 PM
 
tartaglia tartaglia is offline
 

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

Default Re: Extra fields in quick_view.tpl

Sorry. Here is the link to the post. http://forum.x-cart.com/showthread.php?t=47812
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:46 AM.

   

 
X-Cart forums © 2001-2020