I've been using Zen cart for work for the last couple of years and am now using it for my own site. Usually, if I have a question i can find it pretty easily searching the forums or tutorials, however I'm stumped by this one - hence my first post...
I want to create a link next to the option name and limit it to show only if the option name is 'Theme'... here's an example:
Originally I thought to edit this section includes/modules/MYTEMPLATE/attributes.php (line 589):
This was the only place that I could find in this file where the option name was printed out. The problem is that I'm not sure where to add my statement...Code:if ($show_attributes_qty_prices_icon == 'true') { $options_name[] = ATTRIBUTES_QTY_PRICE_SYMBOL . $products_options_names->fields['products_options_name']; } else { $options_name[] = '<label class="attribsSelect" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '">' . $products_options_names->fields['products_options_name'] . '</label><br />'; }
I tried adding:
if ($show_attributes_qty_prices_icon == 'true') {
$options_name[] = ATTRIBUTES_QTY_PRICE_SYMBOL . $products_options_names->fields['products_options_name'];
} else {
$options_name[] = '<label class="attribsSelect" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '">' . $products_options_names->fields['products_options_name'] . '</label><br />';Code:if ($options_name[] == 'Theme'){ $options_name[] = '<label class="attribsSelect" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '">' . $products_options_names->fields['products_options_name'] . '<a href="#">My Link</a></label><br />'; }else{
This just made the entire page disappear...
Any thoughts on how to get this to work would be greatly appreciated! :)




