| ||||||||||
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 |
#42
|
|||||||||
|
|||||||||
well this is a great mod.
would be nice to have {$product.product|escape} {$product.descr|truncate:255:"...":true} Included in the email. I tried this but couldnt wrap my head around it...
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#43
|
|||||||
|
|||||||
Boomer, I did what you suggested but then I have this error.
Can't write template cache in the directory: /templates_c. Please check if it exists, and have writable permissions. I check my /templates_c folder rights and it has 777. Do you have any hints? Tks, Ming |
|||||||
#44
|
|||||||||
|
|||||||||
Updated sendtofriend.php file for 3.5.0 (this should do the trick ):
Code:
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#45
|
|||||||
|
|||||||
Hi Boomer,
Thank for you such speedy respone. After trying out the new sendtofriend.php, I was able to send out an email but the email subject line & message body look like below. It doesn't populate the data. Any solution to that. Thanks in advance! -Ming {$contact.firstname} {$contact.lastname} has recommended a product to you. {if $contact.body ne ""} {$contact.body} {/if} Checkout the product link below for more details: http://www.EntrustResources.com/store/customer/product.php?productid={$contact.productid} {include file="mail/signature.tpl"} |
|||||||
#47
|
|||||||
|
|||||||
Thanks for a great mod, just got a "little" error over here:
Warning: main(/smarty.php) [function.main]: failed to create stream: No such file or directory in /web/sites/mydir/mysite.com/shop/customer/sendtofriend.php on line 6 Fatal error: main() [function.main]: Failed opening required '/smarty.php' (include_path='.:/usr/local/lib/php') in /web/sites/mydir/mysite.com/shop/customer/sendtofriend.php on line 6 Anyone that got any ideas what could have caused this...?? |
|||||||
#48
|
|||||||
|
|||||||
Various,
To get around it, I had to put require $xcart_dir."../smarty.php"; instead of require $xcart_dir."/smarty.php"; Having said that, I am now stuck on "Can't write template cache in the directory: /templates_c. Please check if it exists, and have writable permissions" error message, which I can't for the life of me get rid of. I don't know if you'll have the same problem..... Regards Jacob
__________________
Version 3.5.1 (Unix) |
|||||||
#49
|
|||||||
|
|||||||
Ok, I've GOT IT SORTED.
To get around it, you need to remove/comment out the lines require $xcart_dir."/smarty.php"; and require $xcart_dir."/config.php"; This has fixed the "Can't write template cache in the directory: /templates_c. Please check if it exists, and have writable permissions" error messages that I was getting. Regards Jacob
__________________
Version 3.5.1 (Unix) |
|||||||
#50
|
|||||||||
|
|||||||||
To update for 3.5.0 if your getting a funny error of:
"Can't to find template engine!" Edit the sendtofriend.php file and adjust the includes: Code:
replace with: Code:
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|