Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    590
    Plugin Contributions
    0

    Default Any easy way to make attribute images clickable?

    I wanted to add images for all my different product attributes, but realized that they are not clickable for the customer. It's intuitive to click on the picture to choose the product, so I'd like to add that. Is there any relatively simple way to do it?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,735
    Plugin Contributions
    17

    Default Re: Any easy way to make attribute images clickable?

    Couple of "options" come to mind. But basically would want to copy includes/templates/template_default/templates/tpl_modules_attributes.php to your own template directory if not already there so that it can be modified to suit. Basically you would be grouping the image section with the associated attribute.

    Alternatively, you could use an observer throughout the includes/modules/attributes.php file to couple the image with the desired selection.

    Would be important in either of those or any other solution to recognize/control how the change would impact other operations. E.g., if only want radio buttons on particular product to work this way, but radio buttons on others to work differently.

    Could also have a unique attribute type that is monitored by observer and only product with that attribute type would work the way you desire...

    There's a lot of flexible opportunities now in zencart. Plan accordingly.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Make additional images NOT clickable
    By Justrimless in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 5 Apr 2013, 04:14 PM
  2. v151 Make SubCategory images clickable links...
    By Primo Pipez in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Mar 2013, 05:04 AM
  3. Easy/Any way of gzipping javascript files
    By bottyz in forum General Questions
    Replies: 1
    Last Post: 17 Sep 2010, 04:18 PM
  4. any easy way to change all products to free shipping?
    By hungrytazman in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 8 Apr 2010, 10:59 PM
  5. Any way to make combos so both qty decreases?
    By Stobe in forum General Questions
    Replies: 2
    Last Post: 20 Feb 2007, 07:02 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR