| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Send to Friend on product pages. | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#2
|
|||||||
|
|||||||
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. |
|||||||
#3
|
|||||||||
|
|||||||||
i would definitely be interested if it works for 3.2.1
Thanks ! |
|||||||||
#4
|
|||||||||
|
|||||||||
BOOMER! Very slick!
Are major modifications required? v3.2.1
__________________
Xcart V4.5.5 Gold seaCOAST "Live FREE or DIE!" |
|||||||||
#5
|
|||||||
|
|||||||
Hi Boomer
Hi Boomer,
I also am interested in learning how to do that. Please email or pm me thanks! Japanchick |
|||||||
#6
|
|||||||||
|
|||||||||
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?
__________________
Xcart V4.5.5 Gold seaCOAST "Live FREE or DIE!" |
|||||||||
#7
|
|||||||
|
|||||||
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
__________________
X-Cart Versions: 4.1.10 and 4.2.0 |
|||||||
#8
|
|||||||||
|
|||||||||
Quote:
I actually tried that and got an "error on page".
__________________
Xcart V4.5.5 Gold seaCOAST "Live FREE or DIE!" |
|||||||||
#9
|
|||||||||
|
|||||||||
Okie so I'm feeling nice today, hopefully the favor can be returned in some way.
First create a new file called sendtofriend.php under xcart/customer/ Code:
Next we need to let smarty know what template to use: [skin1]/common_templates.tpl add the following after the first if statement: Code:
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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#10
|
|||||||||
|
|||||||||
Forgot to mention you also need to create two other files under [skin1]/mail
First file: [skin1]/mail/sendtofriend.tpl Code:
Next: [skin1]/mail/sendtofriend_subj.tpl Code:
Sorry about that NOTE: Ooops I forgot to add a / in between mail and sendtofriend.tpl and sendtofriend_subj.tpl sorry about that.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|