Shopping Basket

 x 

Cart empty


Log In

Find Us Elsewhere

SSL

Forum Search

Keyword

Product Details open in Modal

  • wayner
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 years 9 months ago #3394 by wayner
Product Details open in Modal was created by wayner
Hi, I would like that when clicking on the Product Detail link would open in a Modal window. Is this possible and if so how.

Thank you in advance.

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

More
3 years 9 months ago #3397 by boggler
Replied by boggler on topic Product Details open in Modal
Hello, can you tell me which extension you are referring to? It is not possible to answer your question otherwise.

But I am sure it is possible.

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

  • wayner
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 years 9 months ago #3399 by wayner
Replied by wayner on topic Product Details open in Modal
The question relates to VM Product Snapshot. Sorry for confusion.

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

More
3 years 9 months ago #3400 by boggler
Replied by boggler on topic Product Details open in Modal
You will need to edit the vm2productsnapshot.php file, line 324:-
$list->addtocart_button = '<div class="addtocart-button"><a class="addtocart-button" href="'.$list->addtocart_link.'">'.$list->addtocart.'</a></div>';

change to
$list->addtocart_button = '<div class="addtocart-button"><a class="addtocart-button modal" href="'.$list->addtocart_link.'">'.$list->addtocart.'</a></div>';

Also at the top of the file, just after
	public function init()
	{

add
JHTML::_('behavior.modal');

so it says
	public function init()
	{
              JHTML::_('behavior.modal'); 
The following user(s) said Thank You: wayner

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

Moderators: boggler
Time to create page: 0.252 seconds

Donate to Us

If you like our extensions, consider making a donation to say thanks.