My first ZenCart tip

April 25, 2007

main_template_vars.php

This file is how to actually show the new descriptions on the page. Without editing this file, the stuff will go into the database, but it won’t be displayed. This is step number one in actually displaying the information you need.


$sql = "select p.products_id, pd.products_name, pd.products_description, p.products_quantity, p.products_image,

becomes:


$sql = "select p.products_id, pd.products_name, pd.products_description, pd.products_description2, p.products_model, p.products_quantity, p.products_image,

Then this part:


require(DIR_WS_MODULES . zen_get_module_directory('product_prev_next.php'));

$products_name = $product_info->fields['products_name'];
$products_model = $product_info->fields['products_model'];
$products_description = $product_info->fields['products_description'];

Gets additional lines to look like:


require(DIR_WS_MODULES . zen_get_module_directory('product_prev_next.php'));

$products_name = $product_info->fields['products_name'];
$products_model = $product_info->fields['products_model'];
$products_description = $product_info->fields['products_description'];
$products_description2 = $product_info->fields['products_description2'];

And finally, you need to edit your actual template file for the products to display the text…

Pages: 1 2 3 4 5 6 7 8 9 10

View Comments

Sorry, comments are now closed on this post. You may thank the spammers for that one. But if you have any questions, please feel free to email me and ask - maybe it'll make for a good update in a future post. :)