Zen Cart Logo
Forums / General Questions / Issue with Adding Multiple fields to product display. Works on listing but not produc

Issue with Adding Multiple fields to product display. Works on listing but not produc

Views: 998

Results 1 to 3 of 3
30 Apr 2014, 8:26 PM
#1
timhersh avatar

timhersh

Zen Follower

Join Date:
Aug 2008
Posts:
274
Plugin Contributions:
0

Issue with Adding Multiple fields to product display. Works on listing but not produc

Hello,

I have searched the forums and wasn't able to find an exact answer to what I needed. I did find the option to add a single text field to the product though. I used that and edited it to allow me to add three new fields to the products. It works 90%

I have it so that I can enter the values through the admin and it shows up on the listing page for the category. See this link below and you will notice the first product has a 'shank' 'diameter" and 'flute value"....this part works great

http://vermontindexable.com/indexable-tools/index.php?main_page=index&cPath=5_36_37&zenid=c3aab9deb466cb6a6e091feed993a3c6

BUT, i am unable to get those values to show up on the product display page. I can ONLY get the value for the very first one to show up BUT I have the exact same code for the second one. Any ideas?

Here is my code that is in tpl_product_info_display.php

Diameter: <?php echo ($products_short_desc4); ?>

<br>
Shank:    <?php echo ($products_short_desc); ?>

As you can see from this link the Shank value shows up but not the Diameter value--- but it does show up on the listing page? Using the same field name products_short_desc4)

http://vermontindexable.com/indexable-tools/plunge-milling-c-5/weldon-shank-coolant-style-c-5_36/below-12-plunge-mill-drill-c-5_36_37/weldon-shank-coolant-style-p-30.html?cPath=5_36_37&zenid=c3aab9deb466cb6a6e091feed993a3c6

thank you in advance

1 May 2014, 7:12 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Issue with Adding Multiple fields to product display. Works on listing but not produc

You seem to have corrected this
Would you post your solution so that others finding this thread will find it

1 May 2014, 7:13 PM
#3
timhersh avatar

timhersh

Zen Follower

Join Date:
Aug 2008
Posts:
274
Plugin Contributions:
0

Re: Issue with Adding Multiple fields to product display. Works on listing but not produc

kobra:

You seem to have corrected this
Would you post your solution so that others finding this thread will find it

thanks, just figured it out. I had to add the new items to the template_vars file. Added that and it fixed it