X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Send to Friend on product pages. (https://forum.x-cart.com/showthread.php?t=216)

B00MER 11-15-2002 08:25 AM

Also here is how I am linking it in the [skin1]/customer/main/product.tpl

Note that I created my own send2friend.tpl button. You can replace this with a text link if you want. :wink:

Normen 12-15-2002 02:04 PM

B00MER, i get the following error while using your script:

Code:

Warning: Smarty error: unable to read template resource: "mail/sendtofriend.tpl" in /opt/content/luckylenn.nl/HTML/store/Smarty-2.1.1/Smarty.class.php on line 546

I literally copy/paste your scripts and followed the instructions .. do you have an idea what goed wrong?

problem URL is: http://www.luckylenn.nl/store/

B00MER 12-15-2002 02:20 PM

Norman please see the note I added on the mail templates, I forgot to provide the / inbetween the mail and the template name(s).

cyberactive 12-16-2002 02:25 AM

Nic one Boomer.

But errr....

I get an access denied error....

FishBookStore 12-28-2002 08:11 PM

Great job
 
Works for me. :D

I did add <? in the first line of sendtofriend.php

http://www.fishbookstore.com/xcart/customer/product.php?productid=16133&cat=251&page=1

B00MER 12-28-2002 09:09 PM

I fixed the <? posting on the .php file, sorry about that. :wink:

indymart 01-03-2003 08:10 AM

Hi,
When i test send to friend i got :
Access denied !
You are not allowed to access that resource!
How can i fix it?
Thank you.

yamz 02-05-2003 10:16 PM

????
 
boomer, same as Norman? What do you mean about the /? in front of what?

:?

Please Help!

B00MER 02-06-2003 07:53 AM

The main reason you are possibily getting the error is you need to make sure all the filenames and locations are correct, If my post is somewhat misleading please let me know and I will reimplement it with the latest version of x-cart to see if it is still working correctly.

hth. :wink:

yamz 02-06-2003 08:59 AM

You were right!
 
Thanks Boomer, hopefully not coming off like a nag! You were right, had the sendtofriend.tpl in the wrong dir.

8O oops!

Thanks Again!


All times are GMT -8. The time now is 04:35 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.