Forums / All Other Contributions/Addons / Numinix Extra Field instructions don't show new fields on product pages

Numinix Extra Field instructions don't show new fields on product pages

Views: 903

Results 1 to 5 of 5
7 Apr 2021, 10:32 PM
#1
joseph_m avatar

joseph_m

Zen Follower

Join Date:
Apr 2008
Posts:
150
Plugin Contributions:
0

Numinix Extra Field instructions don't show new fields on product pages

ZC 157c with Bootstrap template. Fresh install PHP Version: 7.1.33

I've added the Numinix Product Fields latest version found at:
https://www.numinix.com/zen-cart-plugins-modules-admin-c-179_250_373_164/numinix-product-fields-dl-800
(This is version 3.1.0 - the one found in the plugins form is 2.4.8)

The installation went great and I was able to make the changes necessary to make it work with music products. However, though everything seems to work well in the admin side, I am not able to show any field values on the product pages.

The readme states:

To display numinix product fields in product info page
Open includes/modules/YOUR_TEMPLATE/templates/YOUR_TEMPLATES/templates/tpl_product_info_display.php and find:

 <php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>

Add the following:

<!-- BEGIN NPF MODIFICATIONS -->
<?php
  if(count($numinix_fields_display ) > 0) { ?>
<?php foreach ($numinix_fields_display as $field => $value) {
    $field_name = ucwords(str_replace('_', ' ', $field));
 ?>
    <li><?php echo $field_name . ': ' . $value; ?></li>      
  <?php } ?>
<?php } ?>
<!-- END NPF MODIFICATIONS -->

I have made the necessary changes to my templates/tpl_product_info_display.php (templates/tpl_product_music _info_display.php in my case), but I am not getting any output to the store's product page.

I have also built my own custom field, and that is behaving the same way. Values are being stored in the database and are present when editing a product. But no matter what I try, neither extra field approach is producing values called to the store's product page.

8 Apr 2021, 3:45 PM
#2
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,972
Plugin Contributions:
8

Re: Numinix Extra Field instructions don't show new fields on product pages

there is a file in the plugin:

catalog/includes/templates/YOUR_TEMPLATES/product_info/extra_main_template_vars/extra_main_template_vars.php:22:

did you copy that file and move it here to:

catalog/includes/templates/YOUR_TEMPLATES/product_music_info/extra_main_template_vars/extra_main_template_vars.php:22:

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

8 Apr 2021, 4:50 PM
#3
joseph_m avatar

joseph_m

Zen Follower

Join Date:
Apr 2008
Posts:
150
Plugin Contributions:
0

Re: Numinix Extra Field instructions don't show new fields on product pages

carlwhat:

there is a file in the plugin:

catalog/includes/templates/YOUR_TEMPLATES/product_info/extra_main_template_vars/extra_main_template_vars.php:22:

did you copy that file and move it here to:

catalog/includes/templates/YOUR_TEMPLATES/product_music_info/extra_main_template_vars/extra_main_template_vars.php:22:

best.

Thank you for the reply. I had it at /includes/templates/bootstrap/product_info/extra_main_template_vars/extra_main_template_vars.php. I added the directory and file: /product_music_info/extra_main_template_vars/extra_main_template_vars.php. But it had no effect on output to the product page.

The new fields appear in music product creation pages but it appears they're not being saved for the Numinix fields. Returning to the product input page shows the fields empty after previously being filled. Might that indicate a database issue, or problem in collect_info.php?

8 Apr 2021, 5:57 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,117
Plugin Contributions:
56

Re: Numinix Extra Field instructions don't show new fields on product pages

What template is the site using?

8 Apr 2021, 6:01 PM
#5
joseph_m avatar

joseph_m

Zen Follower

Join Date:
Apr 2008
Posts:
150
Plugin Contributions:
0

Re: Numinix Extra Field instructions don't show new fields on product pages

lat9:

What template is the site using?

It's using the Bootstrap template.