Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Easy Checkout Mod for X-Cart 3.5.x and 4.0.x

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #211  
Old 11-03-2004, 12:13 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

^ 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"); }
Reply With Quote
  #212  
Old 11-03-2004, 12:14 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default 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.
Reply With Quote
  #213  
Old 11-03-2004, 02:10 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default

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 !!
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #214  
Old 11-03-2004, 02:22 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

You have to own this mod to use many of the changes Jon has listed.
Reply With Quote
  #215  
Old 11-03-2004, 02:27 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default

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
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #216  
Old 11-03-2004, 02:32 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

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.
Reply With Quote
  #217  
Old 11-03-2004, 02:46 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default

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
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #218  
Old 11-03-2004, 03:01 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

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.
Reply With Quote
  #219  
Old 11-04-2004, 02:15 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default

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
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #220  
Old 11-04-2004, 07:44 AM
 
adamsteinhoff adamsteinhoff is offline
 

Member
  
Join Date: Sep 2004
Posts: 19
 

Default

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
__________________
X-Cart 4.0.3
PHP 4.3.8
OS Linux
Perl 5.006001
XML 1.95.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:38 AM.

   

 
X-Cart forums © 2001-2020