product detail in modal window?

  • Posts: 14
  • Thank you received: 0
13 years 2 weeks ago #29841

I'm putting a site together that has a relatively small number of items per category. The full category listing appears on the home page and includes a "add to cart" button for each item. If the client needs more information they click the image (or link) to go to the product detail page. Is there a way to set the link to load the product detail in a modal window instead of a new page?

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29864

Sure. You need to edit the file "listing_img_**" (** depends on the item box layout you're using) of the view "product" via the menu Display->Views and add
class="modal" rel="{handler: 'iframe', size: {x: 450, y: 480}}"

in the a HTML tags there and also add the line below at the top:
<?php JHTML::_('behavior.modal'); ?>

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

  • Posts: 14
  • Thank you received: 0
13 years 1 week ago #30001

Thanks Nicolas - works fine!

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

Time to create page: 0.057 seconds
Powered by Kunena Forum