HELP ... manufacturer popup in product details not working

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Aug 25, 2013 2:16 pm
Reply with quote
Report this post
Storebox 3.9.1 - VM 2.0.22b

Product Details view.

The popup link for manufacturer is not working. no pop-up, it opens a new site without layout.

The same also happens on your demo gk_storebox site.

If I switch in virtuemart configuration to "fancybox" ... ask a question is not working as a pop-up, but the manufacturer does

How to fix ?
User avatar
Fresh Boarder

teitbite
Sun Aug 25, 2013 2:56 pm
Reply with quote
Report this post
Hi

Please edit /html/com_virtuemart/productdetails/default.php and add this code on top of this file:

Code: Select all
<?php JHTML::_('behavior.modal'); ?>
User avatar
Moderator

GK User
Sun Aug 25, 2013 3:48 pm
Reply with quote
Report this post
that worked thanks

teitbite wrote:Hi

Please edit /html/com_virtuemart/productdetails/default.php and add this code on top of this file:

Code: Select all
<?php JHTML::_('behavior.modal'); ?>
User avatar
Fresh Boarder

teitbite
Mon Aug 26, 2013 10:37 pm
Reply with quote
Report this post
Hi

Thanks for trying it. I have one more user I'm going to propose the same solution. Now I'm sure it works.
User avatar
Moderator

GK User
Wed Sep 04, 2013 3:05 pm
Reply with quote
Report this post
Hi ... I´m back with that issue - it worked, than it did not.

When I impletmented your modal at the top of the page, it seemed to work, but actually it´s not.

The thing is, if you clicked it once, it does not work - use the back browser button, and click again, it works.
So, something is not loaded properly or at the right moment. I must say, it´s very annoying. You check this and turn off that in the virtuemart configuration and then the ask-a-question pop-up is working but not the manufacturer pop-up is not, or the other way around. I have spend quiet some time on that, frustrating. And it´s happening on your storebox demo template too, so I consider it a gavick bug or a bug in virtuemart carried on by gavick ... not really important. But, how to fix it ?

thanks d.
User avatar
Fresh Boarder

GK User
Wed Sep 04, 2013 3:59 pm
Reply with quote
Report this post
@slaborie,

For me, popups are working while page is loading/reloading, once page loaded completely script then removes modal function. If its the same problem try below.

File: templates/gk_storebox/js/gk.scripts.js
Line: End of file.

Original code:
Code: Select all
window.addEvent('load', function() {
setTimeout(function() {
document.getElements('.modal').removeEvents();
document.getElements('.ask-a-question').removeEvents();
}, 2000);
});


Replace with below:
Code: Select all
window.addEvent('load', function() {
setTimeout(function() {
document.getElements('.ask-a-question').removeEvents();
}, 2000);
});
User avatar
Platinum Boarder

GK User
Wed Sep 04, 2013 4:20 pm
Reply with quote
Report this post
Well ... if I ever meet you in person I do owe you a beer.

Thanks ... why is that function there anyway ? For now I disabled the whole block, at least I know where and what, just in case ...
User avatar
Fresh Boarder

GK User
Thu Sep 05, 2013 12:57 am
Reply with quote
Report this post
I believe for ask a question link we have added the required js in template file and removed the modal call in gk.scripts.js file and probably by accident we have also removed normal modal action.

See you around...
User avatar
Platinum Boarder


cron