X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Tell-A-Friend (https://forum.x-cart.com/showthread.php?t=14245)

Jazzer 05-28-2005 06:49 PM

Tell-A-Friend
 
In the middle of developing a new site for a client (not live yet). If you go to the following url [/url]http://www.inspiringheart.com/home.php[/url] you will see a Tell-A-Friend Link in the bottom right hand corner.

The client wants a quick form on a static page where an email address is inserted and automatically sends the home page url to the recipient....much the same as the tell-a-friend for products but this one is just for the home page.

I could use javascript but I don't want an email window to open I want the message sent automatically.

Thanks in advance for your help. :)

instinctual 05-30-2005 04:25 PM

the reason...
 
Well, you could use the built-in send 2 friend that's in x-cart....by just including that .tpl into your homepage or static embedded page.

But keep in mind that the send to friend that's built into x-cart gets the productid from the page it's being sent from - so if there's no product on a page (that's why it's integrated into the product detail page) then you have to add a hidden input into the send to friend templates - something like <input type="hidden" name="productid" value="productid"> - but since you only want to send them the homepage url you'll have to play with this a bit - passing it a url instead of a product id.

Jazzer 06-05-2005 04:57 AM

Thanks, I'll play with it when I get a chance and let you know how it turns out. :)


All times are GMT -8. The time now is 11:18 PM.

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