Happy Children's Day 2020! Up to 50% OFF Storewide!
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest

[SOLVED]"Display modal popup upon 'Add to cart'" doesn't work!
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [SOLVED]"Display modal popup upon 'Add to cart'" doesn't work!

[SOLVED]"Display modal popup upon 'Add to cart'" doesn't work! 6 years, 4 months ago #16529

The title say it all: When I press 'Add to cart' button on any product, I don't receive any notification like in the demo of template - demo.smartaddons.com/#sj-hitech .

Display modal popup upon 'Add to cart' is checked in VirtueMart control panel!

This thing is annoying me to much! I WANT TO SEE A POPUP NOTIFICATION WHEN I PRESS 'ADD TO CART' BUTTON. I already tried a new fresh install of the template, but the result is the same. How in the demo works, but after a fresh install no???

So, please somebody help me! Many thanks in advance!

Re: "Display modal popup upon 'Add to cart'" doesn't work! 6 years, 3 months ago #16568

Ok, after I updated VirtueMart to the latest version (for now) 2.0.26d, it seems that components/com_virtuemart/assets/js/facebox.js file is not loaded when the "Add to cart" button is pressed. I concluded that because I get an error in /components/com_virtuemart/assets/js/vmprices.js file:

Uncaught TypeError: Cannot read property 'settings' of undefined --> vmprices.js:89


To prevent this error, I modified the following lines (88 - 93) from /components/com_virtuemart/assets/js/vmprices.js file:

                   } else {
							$.facebox.settings.closeImage = closeImage;
							$.facebox.settings.loadingImage = loadingImage;
							//$.facebox.settings.faceboxHtml = faceboxHtml;
							$.facebox({ text: txt }, 'my-groovy-style');
                    }


with the following:

                    } else {
						$.getScript("/components/com_virtuemart/assets/js/facebox.js", function(){
							$.facebox.settings.closeImage = closeImage;
							$.facebox.settings.loadingImage = loadingImage;
							//$.facebox.settings.faceboxHtml = faceboxHtml;
							$.facebox({ text: txt }, 'my-groovy-style');
						});
                    }


and now the problem is solved!
Last Edit: 6 years, 3 months ago by radu. Reason: Just a bad mood...
The following user(s) said Thank You: yennt

Re: [SOLVED]"Display modal popup upon 'Add to cart'" doesn't work! 6 years, 3 months ago #16854

  • yennt
  • OFFLINE
  • Moderator
  • Posts: 1365
  • Karma: 20
Thank Radu Rădeanu,

Best Regards,
  • Page:
  • 1
Time to create page: 0.37 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.
Happy Children's Day 2020! Up to 50% OFF Storewide

Suggested Posts

(/)
Result not found!

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes