Change 'add to cart' to 'options' on category listing

  • Posts: 176
  • Thank you received: 5
7 years 5 months ago #282964

Is it possible to have all products show the 'options' button instead of 'add to cart' on the product listing page when there are no options other than quantity? If this can only be accomplished by editing the display templates can you let me know which template needs to be edited?

Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 83779
  • Thank you received: 13567
  • MODERATOR
7 years 5 months ago #282973

Hi,

That will require modifying some views.
I think a simple solution is to edit the listing_img_title view file of the "product" view (supposing that you're using an "image and title" product layout on the listing via the menu Display>Views and add such code at the beginning:
<?php $this->row->has_options = true; ?>

Please Log in or Create an account to join the conversation.

  • Posts: 176
  • Thank you received: 5
7 years 5 months ago #283453

Thank you. That did it :-)

Please Log in or Create an account to join the conversation.

Time to create page: 0.039 seconds
Powered by Kunena Forum