X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Extra fields in quick_view.tpl (https://forum.x-cart.com/showthread.php?t=64271)

David-Allan 07-12-2012 05:57 AM

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

cherie 07-12-2012 12:12 PM

Re: Extra fields in quick_view.tpl
 
Try {$extra_fields.0.field_value)

tartaglia 07-12-2012 12:20 PM

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-Allan 07-17-2012 12:46 AM

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>

tartaglia 12-21-2012 10:04 PM

Re: Extra fields in quick_view.tpl
 
Sorry. Here is the link to the post. http://forum.x-cart.com/showthread.php?t=47812


All times are GMT -8. The time now is 03:54 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.