Totally Zenned
- Join Date:
- Apr 2007
- Location:
- Ontario, Canada
- Posts:
- 1,733
- Plugin Contributions:
- 14
Twitch Attribute Button
UPDATED for ZC 1.53 - Twitch Attribute Button
(Yes it works with ZC 1.51 also - line numbers are slightly different)
Lets add a shortcut button to the attributes_controller on the product listing page, and the product page!
admin/includes/modules/category_product_listing.php
replace line 28 with:
<td class="smallText" align="left">
replace line 41 - 42 with:
?>
<a href="<?php echo zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, '', 'NONSSL') ?>"><?php echo zen_image_button('button_edit_attribs.gif', IMAGE_EDIT_ATTRIBUTES); ?></a>
</td>
This will now drill down to the associated attribute if there is one attached already.
admin/includes/modules/product/collect_info.php
replace line 321 - 324
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_PRICED_BY_ATTRIBUTES; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('products_priced_by_attribute', '1', $is_products_priced_by_attribute) . ' ' . TEXT_PRODUCT_IS_PRICED_BY_ATTRIBUTE . ' ' . zen_draw_radio_field('products_priced_by_attribute', '0', $not_products_priced_by_attribute) . ' ' . TEXT_PRODUCT_NOT_PRICED_BY_ATTRIBUTE . ' ' . ($pInfo->products_priced_by_attribute == 1 ? '<span class="errorText">' . TEXT_PRODUCTS_PRICED_BY_ATTRIBUTES_EDIT . '</span>' : ''); ?>
</td>
</tr>
Code is included for anyone that would prefer the native 'attribute change' split screen additional step.
**
Enjoy.**