Dear Sirs,
In your Storebox template, when in the product page, the email link for recommending the product to a friend (next to the manufacturer) does not open in a popup window.
Is there an easy way to fix that?
Best Regards,
George Angelopoulos
<?php JHTML::_('behavior.modal'); ?>
Please edit file : /templates/gk_storebox/js/gk.scripts.js
Line: 260 towards end of file.
Remove code:
document.getElements('.modal').removeEvents();
Also as a side note user needs to be logged in to use refer a friend link to prevent spamming.
please install latest VM and latest template update. And make sure that in VM configuration fancybox is enabled. They forgot to use different JavaScript code for fancybox and default modal.
teitbite wrote:Hi
Got an answer. Two answers
- Code: Select all
Please edit file : /templates/gk_storebox/js/gk.scripts.js
Line: 260 towards end of file.
Remove code:
document.getElements('.modal').removeEvents();
Also as a side note user needs to be logged in to use refer a friend link to prevent spamming.
other programmer added after that:
- Code: Select all
please install latest VM and latest template update. And make sure that in VM configuration fancybox is enabled. They forgot to use different JavaScript code for fancybox and default modal.
You may try any them.
teitbite wrote:Hi
The fact that Your gk.scripts.js has only 211 lines means that You are using an old version of the template. There've been multiple changes in VM since this time and also template was update with some fixes to match this changes. Please install the newest version of the template and send me an access to joomla panel and ftp. I'll see what can be wrong.
teitbite wrote:Hi
Unfortunately I mean updating Shop & Buy template, but there is no need to worry. Here You can see all informations about the last update: https://www.gavick.com/updates.html?tas ... 44&catid=4 along with a list of the files where changes has been made, so there is no need to install whole template again just overwrite the mentioned files via ftp.
teitbite wrote:Hi
Unfortunately I mean updating Shop & Buy template, but there is no need to worry. Here You can see all informations about the last update: https://www.gavick.com/updates.html?tas ... 44&catid=4 along with a list of the files where changes has been made, so there is no need to install whole template again just overwrite the mentioned files via ftp.
abrys wrote:hello guys, I'm looking at your conversation and come up with this questions: I want to update StoreBox template. In changelog they say it includes new version of virtuemart and joomla but how is this possible as there is only a few files to replace and I'm pretty sure they don't update the whole Joomla and VM. Should we first manually update Joomla, then VM and then replace the files from template update package?
Actually I did it already, I've replaced the files but neither Joomla or VM have been updated.
mgrmn wrote:Be sure to update VirtueMart-aio also any-time you update VM.
Cheers,
Mario
abrys wrote:mgrmn wrote:Be sure to update VirtueMart-aio also any-time you update VM.
Cheers,
Mario
How to do it? Manually download AIO and upload using extensions install page?
teitbite wrote:Hi
Than I believe the not working "Send to a friend" is because of a jQuery incompatibility. Please try use jQuesy Easy plugin to automaticaly remove all jQuery libraries and replace it with one. I believe version 1.7 would be best for VM. If this will not start to work after this, than I think the fastest option would be to override the popup provided and create and own version (using for example the article-working-one script).
teitbite wrote:Hi
Actually the plugin is pretty simple. All You need to do is to install it and enable and if the problem is a conflict with multiple jQuery libraries loaded at the same time than this plugin will resolve it. Please just try to set it as a last in order than as first (i do not remember exactly where this plugin developers are recommending this be used).
echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend', false,true,false,'class="recommened-to-friend"');
echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend', false,true,false,'class="modal" rel="{handler: \'iframe\', size: {x: 700, y: 550}}"');
teitbite wrote:Hi
I've used FTP access. Edited file /html/com_virtuemart/productdetails/default.php and replaced line:
- Code: Select all
echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend', false,true,false,'class="recommened-to-friend"');
to
- Code: Select all
echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend', false,true,false,'class="modal" rel="{handler: \'iframe\', size: {x: 700, y: 550}}"');
Looks like it's working now.
teitbite wrote:Hi
I'm glad You like it
Not working popup could be cause by our template (still not sure if it was a template or not), but template have not changed anything in recomment functionality. I can see mail send has almost none informations about the product, but I believe it has to be configured somewhere. Unfortunatelly I'm not a VM expert, so it would be better if You ask Virtuemart developers about this.
teitbite wrote:Hi
The recommend to a friend from Your example is an element of Content Component and the one in product page is a Virtuemart Component. Those are 2 different things and require a different codding. Hopefully the one in VM can be configured, unfortunately I'm not VM expert and do not know.
teitbite wrote:Hi
Unfortunately not. This is connected with Virtuemart strictly. We have not made any override to this functioality, so You need to ask VM developers about that. Sorry, but I'm not a VM expert.
teitbite wrote:Hi
I think they are not developing it anymore. Just some fixes. There will be a new version of VM along with joomla 3.5, so they are probably working on this already.