News:

Support the VirtueMart project and become a member

Main Menu

Add products to cart staying on the same page.

Started by kilombo, February 04, 2022, 16:27:33 PM

Previous topic - Next topic

kilombo

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.

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Studio 42

Are you usure you use fancybox ?
Perhaps a link to your website so we can check ?

kilombo

Yeah mate, i am, please check it out.
https://www.reparacaomobile.pt/pt/
I don't know what i'm missing in here.

GJC Web Design

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

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation