Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009
    Posts
    84
    Plugin Contributions
    0

    Default Change Default in Attribute Controller

    Anyone know if there is a way to change the default in Attributes controller - Copy attributes to category.
    The default (radio button) is Delete first, then copy new attributes. I want to make the default Ignore and add only new attributes.

    Zen version 1.3.8a


    How should existing product attributes should be handled?
    Delete first, then copy new attributes
    Update with new settings/prices, then add new ones
    Ignore and add only new attributes

    Thanks

  2. #2

    Default Re: Change Default in Attribute Controller

    Edit file -
    "/public_html/admin(or whatever you've renamed your admin folder)/attributes_controller.php"

    in my file I had to edit two lines. 762 and 785 (yours maybe different numbers, but in the same vicinity). they should look like this

    (line 762) <td class="main" align="left"><?php echo TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_delete', true) . ' ' . TEXT_COPY_ATTRIBUTES_DELETE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore') . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE; ?></td>



    (line 785) <td class="main" align="left"><?php echo TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_delete', true) . ' ' . TEXT_COPY_ATTRIBUTES_DELETE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore') . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE; ?></td>

    You need to remove the highlighted ",true" and place it behind the 'copy_attributes_ignore' (or you can do the same for 'copy_attributes_update', also, but only in one place). Shown below

    (line 762) <td class="main" align="left"><?php echo TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_delete') . ' ' . TEXT_COPY_ATTRIBUTES_DELETE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore', true) . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE; ?></td>



    (line 785) <td class="main" align="left"><?php echo TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_delete') . ' ' . TEXT_COPY_ATTRIBUTES_DELETE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore', true) . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE; ?></td>


    This will cover both the "copy to product" and "copy to category".
    Hope this helps others, took me several hours.
    This can stop you from make a very bad deleting error.

 

 

Similar Threads

  1. v155 Attribute controller - error message when adding attribute values
    By rustwood in forum General Questions
    Replies: 8
    Last Post: 11 Jul 2016, 10:26 PM
  2. v151 Can we change currency in attribute controller?
    By maria82g in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 8
    Last Post: 15 Apr 2014, 01:43 PM
  3. v151 Applied fix-CHANGE-352 for Attribute Controller fail but didn't fix
    By LindeeG in forum Upgrading to 1.5.x
    Replies: 9
    Last Post: 15 Dec 2013, 07:07 AM
  4. Bulk change default attribute in mySQL?
    By RandyRand in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 21 Apr 2011, 11:38 PM
  5. How to change Default attribute with category?
    By wrinkles in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 7 Apr 2010, 05:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg