VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kilombo on February 04, 2022, 16:27:33 PM

Title: Add products to cart staying on the same page.
Post by: kilombo on February 04, 2022, 16:27:33 PM
Good afternoon everyone,

This is a question that had been answered already for a lot of VM versions, but not for the latest... and i'm strugling to sort it out.
I'm editing padded.php
Already tried this 2 options, and none of them work.

//echo '<a class="' . $vmbtn . ' ' . $vmbtnsec . ' javascript:void(0);" href="' . $this->close_facebox . '" >' . vmText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
echo '<a class="continue_link" href="javascript:void(0);" onclick="jQuery.fancybox.close();" >' . vmText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';


Currently using Joomla! 3.10.5  and VirtueMart 3.8.8 10472

Thanks in advance people.
Title: Re: Add products to cart staying on the same page.
Post by: Jörgen on February 04, 2022, 18:11:31 PM
Click outside the popup and You will stay on the same side...

Clicking continue will take you to the current category. Is that Your problem ? What happens  with your changes ?

Jörgen @ Kreativ Fotografi
Title: Re: Add products to cart staying on the same page.
Post by: Studio 42 on February 05, 2022, 20:05:33 PM
Are you usure you use fancybox ?
Perhaps a link to your website so we can check ?
Title: Re: Add products to cart staying on the same page.
Post by: kilombo on February 06, 2022, 12:55:49 PM
Yeah mate, i am, please check it out.
https://www.reparacaomobile.pt/pt/
I don't know what i'm missing in here.
Title: Re: Add products to cart staying on the same page.
Post by: GJC Web Design on February 06, 2022, 13:02:40 PM
wrong file ... there's no JS attached to the the link

I always put a html comment at the top of my overrides so I'm sure I'm in the right file