Totally Zenned
- Join Date:
- Sep 2004
- Posts:
- 2,309
- Plugin Contributions:
- 1
How to access a product variable in tpl_product_info_display
I'm attempting to display (echo) a product related variable on tpl_product_info_display.php
<?php echo ('<li>' . $products_name . '</li>') . "\n"; ?>
<?php echo ('<li>' . $products_virtual . '</li>') . "\n"; ?>
<?php echo ('<li>' . $products_quantity . '</li>') . "\n"; ?>
The first and last variables above echo fine but $products_virtual does not.
$products_virtual and $products_quantity exist in the same database table ('products').
So I suspect the $products_virtual variable is not included in the product array available to tpl_product_info_display.php
As I am just a PHP coder wannabe I'm not sure how to proceed.
Any suggestions on how to to pull a specific variable from the 'products' table (e.g. $products_virtual) and make available to product_info_display ?
Woody