X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Easy Checkout Mod for X-Cart 3.5.x and 4.0.x (https://forum.x-cart.com/showthread.php?t=9085)

Jon 11-03-2004 12:13 PM

^ Not positive this will work, but I think it will.

Open your cart.php

Find:

Code:

$smarty->display("customer/home_checkout.tpl");

Replace with:

Code:

if ($mode == "checkout") {
          $smarty->display("customer/home_checkout.tpl");
} else {
          $smarty->display("customer/home.tpl");
}


Jon 11-03-2004 12:14 PM

Re: Help needed please !!
 
Quote:

Originally Posted by a1deano
Hi all i need some help, ive been trying to edit some customer order templates. The ones a customer recieves by e-mail when an order has been placed/processed and completed.
i went to mail/order_customer_complete.tpl , just wanted to change a few things on there and i got this message -

Fatal error: Smarty error: [in mail/order_data.tpl line 11]: syntax error: invalid
attribute name: '=' (Smarty_Compiler.class.php, line 1512) in /home/a1dean/public_html/Smarty-2.6.3/Smarty.class.php on line 1082

I am totally lost, this happened with all the order_customer templates
although when i do a test run buying an item paying etc, all e-mail appear
to be fine, but i want to edit a few things out.
any one got any ideas please.

Jon i need some code and need to know where to place can i pm you !!


Probably means that you edited the templates incorrectly. Try restoring and attempting to edit over again. Feel free to PM me and I will assist you if I can.

a1deano 11-03-2004 02:10 PM

Hi jon, went upto my public_html and found cart.php but i couldn't find the code $smarty->display("customer/home_checkout.tpl");
i looked twice but can't find it anywere !!

adpboss 11-03-2004 02:22 PM

You have to own this mod to use many of the changes Jon has listed.

a1deano 11-03-2004 02:27 PM

have you got any other ideas what i have done wrong, i havn't done to much work to my cart so if i have to do a re-install then i will.
serve me right for messing about with code when i only know basic html !!
Going to try going backwards and getting rid of stuff ive done to see if i can find were ive gone wrong, thanks guys for your help, appreciated

adpboss 11-03-2004 02:32 PM

Deano here is a suggestion.

Always copy your file to your local PC by FTP. Then edit it on your desktop. When you go to re-upload it to the server, rename your old file filename_OLD.tpl (or php) first. that way you can always delete the new file and just remove the _old from the original and you are back to good.

a1deano 11-03-2004 02:46 PM

think i will take that advice, as before i should of made sure i made back up copies first, my fault, but if any you do find the could what ive done wrong that would be great, or if you advise i will do a fresh install
regards Dean

Jon 11-03-2004 03:01 PM

Just open up your x-cart tar.gz file using winzip.com

Find:

mail/order_data.tpl

Extract it.

Upload it over your current file. No need to reinstall everything.

a1deano 11-04-2004 02:15 AM

Jon cheers for that, your a life saver, i did use the "restore file" button on a lot of these files last night to see if i could reverse the problem, but it didn't reverse what i had done, This taught me a small but valuable lesson
back backups first !!! think the thurst for knowledge and know how is a dangerous thing when you only have basic html knowledge your still trying to learn more, seem to get yourself in more mess sometimes than you were in the first place.
cheers you guys

adamsteinhoff 11-04-2004 07:44 AM

Quote:

Originally Posted by Jon
^ Not positive this will work, but I think it will.

Open your cart.php

Find:

Code:

$smarty->display("customer/home_checkout.tpl");

Replace with:

Code:

if ($mode == "checkout") {
          $smarty->display("customer/home_checkout.tpl");
} else {
          $smarty->display("customer/home.tpl");
}



Jon,

I don't see anything in my cart.php that looks like that, but I did find this:

Code:

func_display("customer/home_checkout.tpl",$smarty);

Do I need to do something with that?

Thanks,

Adam


All times are GMT -8. The time now is 05:57 PM.

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