| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
send_to_friend.tpl pop up | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() I have a simple solution I use.
add this to the end of send_to_friend.php before the final } func_header_location("thankyoupage.php"); this will load thankyoupage.php after a succesful submit. you can stylize this page all you like.
__________________
v4.1.8 GOLD |
|||||||
#12
|
|||||||||
|
|||||||||
![]() Thank you, Luxor!
__________________
~ Andrea Beight |
|||||||||
#13
|
|||||||||
|
|||||||||
![]() Here are the steps that I followed to get this working in 4.1.9 based on other posts in this thread. I just thought someone else might find it helpful to have everything in one place. Let me know if I missed anything.
![]() 1. Place pop-up link somewhere in skin1/customer/main/product.tpl Code:
2. Place this pop-up script in <head> section of skin1/customer/home.tpl (just a free script I found online - credits are in place): Code:
3. In send_to_friend.php: Add: Code:
Replace (only if you want a custom thank you page): Code:
4. In product.php: Replace: Code:
with: Code:
5. Alter your skin1/customer/main/send_to_friend.tpl file to have the look and feel that you want. Mine looks like this: Code:
6. If you want a custom thank you page, create a new file called thankyou.php and upload it to the root x-cart directory.
__________________
~ Andrea Beight |
|||||||||
|
#14
|
|||||||||
|
|||||||||
![]() Here's a quick question if anyone knows - I'm now attempting to turn the pop up link into a button, but it isn't working because I have brackets within brackets:
Code:
Is there a way around this? ![]()
__________________
~ Andrea Beight |
|||||||||
#15
|
|||||||
|
|||||||
![]() maybe try...
Code:
__________________
xcartmods.co.uk |
|||||||
#16
|
|||||||||
|
|||||||||
![]() Thank you, Phil! That works!!
![]()
__________________
~ Andrea Beight |
|||||||||
#17
|
|||||||
|
|||||||
![]() I'm having trouble with this code in 4.1.10. My popup window just displays the product page, no "Send To Friend " template. Should it work in 4.1.10?
__________________
X-Cart 4.0.9: Development Mode |
|||||||
#18
|
|||||||||
|
|||||||||
![]() Thanks for the mod.
There are a couple of changes I had to make to Andrea's summary in post #13 to get it to work for me. 1 - The code for product.php needs to add the ".tpl" after: func_display("customer/main/send_to_friend.tpl",$smarty); (Soleag - this could explain it not working for you if you used this code) 2. In the modified code for skin1/customer/main/send_to_friend.tpl, the send button did not work for me, I believe, because some javascript is missing. I added this before the </head>: Code:
This could be because I am using a shadowbox and not the popup javascript. Maybe the popup still finds the common.js with a popup. I'm not sure.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#19
|
|||||||
|
|||||||
![]() Hi, not sure what I’m doing wrong but for some reason my popup window displays template of product page instead of sent_to_friend. Could anybody help me with it. Many thanks
__________________
Tanya x-cart version: 4.1.7 4.1.9. 4.2 |
|||||||
#20
|
|||||||||
|
|||||||||
![]() Check the 4th step in post 13 of this thread.
Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
|
|||
X-Cart forums © 2001-2020
|