Send to Friend on product pages.
If anyone is interested I currently have a simple method to allow users to send products to their friends email address's with a direct link back to the product. If anyone wants such a feature get in touch with me and will work on details, as I'll provide a walk through, with code snippets. This was done with version 3.2.0, but can be done to older versions as well.
|
Send to friend
Hi,
I'd really appreciate it if you'd show me how to add this 'send to a friend' link to my site (www.nothingbutgifts.com). Thanks a lot for your time, I really appreciate it, Kind Regards, Chirin. |
i would definitely be interested if it works for 3.2.1
Thanks ! |
BOOMER! Very slick!
Are major modifications required? v3.2.1 |
Hi Boomer
Hi Boomer,
I also am interested in learning how to do that. Please email or pm me thanks! Japanchick |
I have a very nice javascript tell-a-friend script that works great in html pages.
I'm not sure how to make it work with the product.tpl though. You have to put the <script></script> tag at the beginning which points the the .js file of the tell-a-friend script. The only problem is that in the product.tpl there is already a <script> line. Is it possible to define both <script>'s? Anyone know? |
Hi SeaCoast,
You should be able to include two scripts in the head. I would probably keep them completely separate including enclosing each in it's own {literal} tags. ATKOgirl |
Quote:
I actually tried that and got an "error on page". :? |
Okie so I'm feeling nice today, hopefully the favor can be returned in some way. :roll:
First create a new file called sendtofriend.php under xcart/customer/ Code:
<?php Next we need to let smarty know what template to use: [skin1]/common_templates.tpl add the following after the first if statement: Code:
{elseif $main eq "sendtofriend"} Now create a new file under [skin1]/customer/sendtofriend.tpl and paste the following: Code:
Edit the contents of the template to your liking. And please make a donation as this wasn't a quick easy task, I just see so many are requesting such that would be easier to deal in a mass way, I'm just asking for some help for my time. If you can't get all this working, please email me. |
Forgot to mention you also need to create two other files under [skin1]/mail
First file: [skin1]/mail/sendtofriend.tpl Code:
{$contact.firstname} {$contact.lastname} has recommended a product to you. Next: [skin1]/mail/sendtofriend_subj.tpl Code:
{config_load file="$skin_config"}{$contact.firstname} {$contact.lastname} has recommended a product to you at {$config.Company.company_name}{*$lng.eml_contact_us_subj*} Sorry about that :wink: :!: NOTE: Ooops I forgot to add a / in between mail and sendtofriend.tpl and sendtofriend_subj.tpl sorry about that. |
All times are GMT -8. The time now is 01:11 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.