Email Recommend to a friend link does not open in popup

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
Tue Jul 02, 2013 2:44 pm
Reply with quote
Report this post
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
User avatar
Fresh Boarder

teitbite
Wed Jul 03, 2013 3:07 am
Reply with quote
Report this post
Hi

Can You please show me an example ? I do not see it on our demo.
User avatar
Moderator

GK User
Wed Jul 03, 2013 8:22 pm
Reply with quote
Report this post
For example:
http://demo.gavick.com/joomla25/storebo ... ils-layout
Below the product's name and right of the manufacturer there is an email icon.
If you click it, it should open in a popup window but it doesn't
User avatar
Fresh Boarder

teitbite
Fri Jul 05, 2013 11:43 pm
Reply with quote
Report this post
Hi

Please try edit /html/com_virtuemart/productdetails/default.php and add this somewhere at the top of this file:

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


let me know if this makes a difference.
User avatar
Moderator

GK User
Wed Jul 10, 2013 8:06 am
Reply with quote
Report this post
This line already exists in that file.
The problem also exist in your demo. If you click in the first 2-3 seconds the popup opens correctly.
But if you let the page to fully load, then the link does not open in a popup.
User avatar
Fresh Boarder

teitbite
Fri Jul 12, 2013 3:21 am
Reply with quote
Report this post
Hi

Ok. I'm reporting this to programmers.
User avatar
Moderator

GK User
Fri Jul 12, 2013 7:45 am
Reply with quote
Report this post
Thank you! I will wait for a solution!
User avatar
Fresh Boarder

teitbite
Mon Jul 15, 2013 8:15 am
Reply with quote
Report this post
Hi

Sorry. I've made a mistake while reporting this to programmers and did not attaché it to a live person. My bad. I will let you know as soon as I get an answer.
User avatar
Moderator

teitbite
Tue Jul 16, 2013 11:44 am
Reply with quote
Report this post
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.
User avatar
Moderator

GK User
Tue Nov 26, 2013 12:41 am
Reply with quote
Report this post
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.



Hi Teitbite,
Got your reply email. SO here I am. :)

On the above statement, my gk.scripts.js only goes up to 211 lines. ANd that script (ie..."document.getElements('.modal').removeEvents();") is nowhere in there.

Just to update you on my latest find by the way from my original email msg to you regarding my "email to a friend" not working on the products page, but yet the article pages I had created, it was working fine. Well anyways, I discovered two things.....that if you One: go to VM's Configurations>Templates and under the section for "Activate Css Styles & Javascripts", Uncheck "Using the VirtueMart jQuery" as shown here. (My only question here Teitbite, is won't I need this on later by the way???)
Screen Shot 2013-11-25 at 6.06.34 PM.png


and Two: go to Components>K2 and click on "Parameters", under "Layout and Views" Tab select the latest version "Load v1.10x(remote copy)" in the contextual menu under "Using the VirtueMart jQuery".
Screen Shot 2013-11-25 at 6.28.14 PM.png


After you configure these two aforementioned things above, suddenly the "email to a Friend" button works on my products page. But!!!!....now there's a new problem. it opens up not as a popup but as a whole page where as in targeting itself and it looks nothing like the form I saw in my article page when I clicked on it from there where it had worked fine. as shown here >
Screen Shot 2013-11-25 at 6.32.48 PM.png
User avatar
Senior Boarder

GK User
Tue Nov 26, 2013 1:19 am
Reply with quote
Report this post
This the form I get now from the products page, unlike the article page which works fine, this one is nothing like it.
ANd plus if you fill it out and email to yourself, the email you get does not show pic or link. Instead you get "email from" and a header with name and address??? LOL!

Here's the full page the form comes out as.

Screen Shot 2013-11-25 at 7.11.20 PM.png
User avatar
Senior Boarder

GK User
Tue Nov 26, 2013 1:30 am
Reply with quote
Report this post
As a bonus, here's the email I would receive If I send to myself.

ReceivedEmail.png
User avatar
Senior Boarder

teitbite
Tue Nov 26, 2013 2:07 am
Reply with quote
Report this post
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.
User avatar
Moderator

GK User
Tue Nov 26, 2013 2:22 am
Reply with quote
Report this post
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.



But I did update my VM to the latest V2.0.24c. And Joomla 2.5.16. I'll resend you my login info. By the way you do mean update Joomla template, not the actual SHop&Buy template by Gavic....right??? I'm confused now! :?

If you actually do mean the template I'm using from Gavick ie...Shop&Buy, then I'm worried! Because the last time I tried uprading I lost all of my custom parameters. So how can I upgrade without losing that?? Please advise.

Thanks,
Mario
User avatar
Senior Boarder

teitbite
Tue Nov 26, 2013 8:47 pm
Reply with quote
Report this post
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.
User avatar
Moderator

GK User
Tue Nov 26, 2013 11:38 pm
Reply with quote
Report this post
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.


Hmmmmm....its says on that page the the latest version of Shop&Buy is 3.10, while mine is still 3.9.2. But yet you said that because of this file "gk.scripts.js", only having 211 lines in it, that mine is out of date, And also I don't see any of that file in the list below of upgrades I'm suppose to replace with. :? So I'm confused. Should I just go ahead and upgrade to 3.10 plus add these files listed below or will that be done automatically once I upgrade the template?

For upgrade please replace following files with the new ones:

- css/joomla.css
- css/typography/typography.style1.css
- css/typography/typography.style2.css
- css/typography/typography.style3.css
- css/typography/typography.style4.css
- css/typography/typography.style5.css
- css/typography/typography.style6.css
- html/com_virtuemart/cart/default.php
- html/com_virtuemart/cart/default_pricelist.php
- html/com_virtuemart/cart/select_payment.php
- html/com_virtuemart/cart/select_shipment.php
- html/com_virtuemart/category/default.php
- html/com_virtuemart/orders/details.php
- html/com_virtuemart/orders/list.php
- html/com_virtuemart/productdetails/default.php
- html/com_virtuemart/user/edit_orderlist.php
- html/com_virtuemart/user/edit_shopper.php
- html/com_virtuemart/user/login.php
- templateDetails.xml
User avatar
Senior Boarder

GK User
Tue Nov 26, 2013 11:41 pm
Reply with quote
Report this post
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.



Oh and I think thats the wrong link. That link leads to the 3.9.2 version. Here's the link to the latest version, v3.10. Cheers! :)

https://www.gavick.com/updates.html?tas ... 64&catid=4
User avatar
Senior Boarder

GK User
Wed Nov 27, 2013 3:39 am
Reply with quote
Report this post
Ok Teitbite,

I figured no matter what I have to upgrade my template so I did. But as I suspected, all of my tweaks were gone but luckily I was able to recover and re-tweak them and thanks to your advise on another thread you helped us in, I did have most of them saved already in my override.css. So I'm good and the template is upgraded to 3.10 now.

But new problem arrised now: WHen I activate Fancybox, the add to cart does not add anything. The cart is empty! :(

So whats up, how do we fix that?

Thanks,
Mario
User avatar
Senior Boarder

GK User
Wed Nov 27, 2013 4:17 am
Reply with quote
Report this post
Hi Teitbite,

Just noticed that the upgrade did not contain more lines in the file "gk.scripts.js". It is still 211 lines in old and new version. Even re-checked the files I downloaded from Gavick and it confirms the same number of lines. Can you please re-check that file too to make sure its as it should be?

thanks,
Mario
User avatar
Senior Boarder

GK User
Wed Nov 27, 2013 1:28 pm
Reply with quote
Report this post
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.
User avatar
Fresh Boarder

GK User
Wed Nov 27, 2013 2:10 pm
Reply with quote
Report this post
Hi Teitbite,

Here's my latest update since my last post having updated my shop&buy template. Which by the way did not update the file gk.scripts.js to have more than 211 lines as previous. So I don't know whats up with that.

Anyways to continue, I managed to add this script as you had suggested <?php JHTML::_('behavior.modal'); ?> , and what it did was allow me to use Fancybox now, whereas before it was inoperable and rendered my add to cart inoperable as well. Now they're both fine and I have every button checked as active except for "Using the VirtueMart jQuery"
Screen Shot 2013-11-27 at 8.08.10 AM.png

If I check it as active, it renders the Mail to Friend inoperable as I had mentioned previously.

So only problem remaining still is to get this "Mail to Friend" button to work properly. Right now it still just opens up a form into a parent page and not a pop-up, and its the wrong form too.

Have you had a chance to login and take a look at my files yet by any chance?

Thanks,
Mario
User avatar
Senior Boarder

GK User
Wed Nov 27, 2013 2:24 pm
Reply with quote
Report this post
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.



Thats because you'll need to update joomla and VM separately. If you go to your joomla control panel, it'll tell you if a new update is available in one of the icons shown. Just click on it to update. Same thing with VM if you open up VM under components. It'll say it in the lower left-hand corner of its interface. Just click on that to update. Be sure to update VirtueMart-aio also any-time you update VM.

Cheers,
Mario
User avatar
Senior Boarder

GK User
Wed Nov 27, 2013 4:08 pm
Reply with quote
Report this post
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?
User avatar
Fresh Boarder

GK User
Wed Nov 27, 2013 6:10 pm
Reply with quote
Report this post
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?



Yes, and you can also just go to components > choose VM-aio and download latest version from there. Then install from Extension Manager. :D
User avatar
Senior Boarder

teitbite
Wed Nov 27, 2013 6:36 pm
Reply with quote
Report this post
Hi

A big discussion :) First thing, the gk.script.js . We have missed the point where a fix for this part was to remove some lines from this file, that's why it has less lines and that means that the version You have is updated with this fix already.

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).
User avatar
Moderator

GK User
Thu Nov 28, 2013 10:31 am
Reply with quote
Report this post
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).



I already installed it and its clear you really need to know how to use this thing cause its not that straight forward unless you know Js. Could you please give us a step by step. I'm afraid a lot of us here don't know js or php well enough to create our own script that easily, even less how to use this plugin. Would appreciate a walk-through, if you don't mind, for us newbies. :S

Thanks,
Mario
User avatar
Senior Boarder

teitbite
Mon Dec 02, 2013 10:40 am
Reply with quote
Report this post
Hi

Acctually 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).
User avatar
Moderator

GK User
Mon Dec 02, 2013 10:44 am
Reply with quote
Report this post
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).


I believe I've don that already. Would appreciate it if you'd take a look and see if you have any luck with it. I already sent you the login info with other comments to your email yesterday. Can you please take a look?.

Thanks,
Mario
User avatar
Senior Boarder

teitbite
Tue Dec 03, 2013 12:06 pm
Reply with quote
Report this post
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.
User avatar
Moderator

GK User
Tue Dec 03, 2013 4:29 pm
Reply with quote
Report this post
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.



Wow! I'm stunned and impressed! I just checked it out on my site before stopping by here at the forum to see any latest updates, and had no idea you worked on it until I clicked on it and saw that you had cause it works now. It was a wonderful surprise to see! Thank you so Much again! The button now shows a Pop-Up window which it did not do before. So thanks for that ! :)

But I don't know if you had a chance to test the send to a friend by emailing to yourself the product page though? Right now the email you receive doesn't contain picture nor description or the link back to the product page which was the second part of the problem too. In the Article page I sent forwarded to you in the email. you'll see when you try the same to send to yourself, you get everything (eg...link, who's it from, etc...). So theres something going on with the products page where we're not getting the same info. Can you please check that out as well?

And again...A Million Thanks Teitbite! You're the best! :)
User avatar
Senior Boarder

teitbite
Wed Dec 04, 2013 11:08 am
Reply with quote
Report this post
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.
User avatar
Moderator

GK User
Wed Dec 04, 2013 11:49 am
Reply with quote
Report this post
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.


But then why is there not even a link at least? In the article page, if you send to yourself it works, yet products pages not even a link.
See.... https://vainakache.com/index.php/compon ... er-article
User avatar
Senior Boarder

teitbite
Thu Dec 05, 2013 10:12 am
Reply with quote
Report this post
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.
User avatar
Moderator

GK User
Thu Dec 05, 2013 10:23 am
Reply with quote
Report this post
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.



Hi Teitbite!

No worries man! Sincere Thanks for all your help thus far!I truly appreciate it. Thanks! Enjoy your holidays! :)
User avatar
Senior Boarder

teitbite
Fri Dec 06, 2013 5:10 am
Reply with quote
Report this post
Hi

Thank You. I wish a happy holidays to You as well :)
User avatar
Moderator

GK User
Thu Mar 13, 2014 12:42 am
Reply with quote
Report this post
HI teitbite,

Hope all is good with you. Its been awhile.

As you know already, the "Recommend to a friend" link popup works now, but when you send it or forward it....say to yourself, the email received does not contain a pic or link to the product you're trying to share. Instead its showing what looks like parts of an invoice with different email address not your own but of the site administrators email plus mailing address info which should not be there. And I did sign in as a different customer with different email address to that of the admin just to make sure. .

Any clues to whats happening here and how to resolve this?
Here's the link to my site so you can try it out for yourself and see what I mean. http://vainakache.com/

Thanks,
Mario
User avatar
Senior Boarder

teitbite
Thu Mar 13, 2014 9:47 pm
Reply with quote
Report this post
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.
User avatar
Moderator

GK User
Fri Mar 14, 2014 12:41 am
Reply with quote
Report this post
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.



I see. Well thanks for your reply Teitbite. I truly appreciate it. Just FYI...I went to VirtueMarts website, found that their developers do not answer or help anyone there. Its forum is quite useless and full of un-answered dead posts. So no one there really to help I'm afraid. You guys get massive points for at least trying. These guys at VM don't really seem to care. :(

Best,
Mario
User avatar
Senior Boarder

teitbite
Fri Mar 14, 2014 11:11 pm
Reply with quote
Report this post
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.
User avatar
Moderator

GK User
Sat Mar 15, 2014 12:42 am
Reply with quote
Report this post
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.



Well thats good to know that they are in new developments, I'm always updating my VM to the latest version, but that still doesn't exclude or excuse the fact that they still offer no help to its users via their forum whenever one encounters a bug or anything that requires a fix. Their forum really sucks, and there's no other place I know of I can really go to that can address anything concerning VM. Do you know of any other site?

Thanks,
Mario
User avatar
Senior Boarder


cron