| ||||||||||
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 |
#111
|
|||||||||
|
|||||||||
Quote:
sendtofriend.php NOT send_to_friend.php Here's an updated sendtofriend.php file that SHOULD be 4.0.x compatible, I've not tested it but, it all essesence should be the only part of the mod that needs to be updated, mainly the func_display() function call at the end instead of $smarty->display(); Code:
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#112
|
|||||||
|
|||||||
Hi Lionel,
thanks for your reply. I changed require "./auth.php"; to require "../auth.php"; But now I got this error: Warning: main(send_to_friend.php): failed to open stream: No such file or directory in /usr/home/bardolino/domains/bardolino.nl/public_html/xcart/customer/sendtofriend.php on line 17 Warning: main(): Failed opening 'send_to_friend.php' for inclusion (include_path='/usr/home/bardolino/domains/bardolino.nl/public_html/xcart/include/templater: in /usr/home/bardolino/domains/bardolino.nl/public_html/xcart/customer/sendtofriend.php on line 17 Any ideas?
__________________
Version 4.0.14 |
|||||||
#113
|
|||||||
|
|||||||
Hi Boomer,
I also tried your modification, but got this error: Warning: main(./auth.php): failed to open stream: No such file or directory in /usr/home/bardolino/domains/bardolino.nl/public_html/xcart/customer/sendtofriend.php on line 6 Fatal error: main(): Failed opening required './auth.php' (include_path='.:/usr/local/lib/php') in /usr/home/bardolino/domains/bardolino.nl/public_html/xcart/customer/sendtofriend.php on line 6 After changing: require "./auth.php"; to require "../auth.php"; I got the same error as I described in my post to lionel.. There should be .. in stead of just one . right?
__________________
Version 4.0.14 |
|||||||
#114
|
|||||||
|
|||||||
Never mind! I uploaded the Boomer sendtofriend.php file again, refreshed and the error was gone.
Thanks!!!
__________________
Version 4.0.14 |
|||||||
#115
|
|||||||
|
|||||||
Btw lionel, I am using your send_to_friend.tpl page, looks great with the image en text, thanks!
__________________
Version 4.0.14 |
|||||||
#116
|
|||||||
|
|||||||
I got no errors anymore and assumed it was working... i was wrong. When i triend to mail a product and clicked on send, I got this error:
Not Found The requested URL /xcart/customer/product.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. What should i change?
__________________
Version 4.0.14 |
|||||||
#117
|
|||||||||
|
|||||||||
Quote:
You'll need to update the paths in the mod to just product.php and NOT customer/product.php as this was a pre 4.0.x file structure.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#118
|
|||||||
|
|||||||
Hi Boomer,
Yes, thats what I thought, but I searched every file, but I can't find a line that contains[customer/product/php] anywhere... Can you give me a hint to where /what i should search?
__________________
Version 4.0.14 |
|||||||
#119
|
|||||||
|
|||||||
(I mean: customer/product.php)
__________________
Version 4.0.14 |
|||||||
#120
|
|||||||
|
|||||||
Boomer's updated code did not work for me on 4.18. I had to reuse the one I posted.
__________________
X-Cart Gold 4.0.17 [unix] X-Cart Gold 4.0.18 [unix] |
|||||||
|
|||
X-Cart forums © 2001-2020
|