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
  #271  
Old 12-17-2004, 12:22 PM
 
zefon zefon is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 86
 

Default

Quote:
Originally Posted by groovico
I.e if your easy checkout does not have your normal header/menu parts from home.tpl, then you need to add the tracking code to the cart.php pages too.

What tracking code am I looking for here? Nothing in the home.tpl stands out to me as marketing manager code.
__________________
X-Cart Gold 4.1.8
Reply With Quote
  #272  
Old 12-17-2004, 01:17 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

Look for the track.js code.
Reply With Quote
  #273  
Old 12-17-2004, 01:23 PM
 
zefon zefon is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 86
 

Default

Ok, I found it.

My track.js is referenced in bottom.tpl. It is called up in home.tpl using the { include file="rectangle_bottom.tpl" } tag.
__________________
X-Cart Gold 4.1.8
Reply With Quote
  #274  
Old 12-17-2004, 02:01 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

You'll probably have to add the track.js to skin1/customer/home_checkout.tpl also.

In your browser open up your cart.php with the ez checkout layout. View your source and see if it contains the track.js. If not added it to the file mentioned above.
Reply With Quote
  #275  
Old 12-28-2004, 03:17 AM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

Nice mod Jon... I liked it so much, I built my own I don't need a tracking code or any of the other upgrades I've read in this thread though because I basically just rearranged the cart. I built it in v4.09 and it checks out in three steps. I wouldn't have had the inspiration if it wasn't for you though, thank you!
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #276  
Old 12-28-2004, 03:41 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

Do we get a preview before you live live GM
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #277  
Old 12-28-2004, 03:56 PM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

I am live...
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #278  
Old 12-29-2004, 08:16 PM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default

Jon,

Purchased the mod today and I've followed all instructions. I am able to do an anonymous checkout with no problem but when I try to log in to complete an order I get this error (both from home.php login and checkout area:

Parse error: parse error, unexpected T_ELSE in /usr/home/birdshop/public_html/xcart/include/login.php on line 204

I am using Version 4.0.5 and this is what my login.php looks like that I am supposed to change but it doesn't look the same as in the instructions.

You have:
if ($login_type == "C" || $login_type == "B") {
if (!func_is_cart_empty($cart)) {
func_header_location($redirect_to."/cart.php");

I have:

if ($login_type == "C" || $login_type == "B") {
if (!func_is_cart_empty($cart)) {
if(strpos($HTTP_REFERER, "mode=auth") === false) {
func_header_location($redirect_to."/cart.php");

Can you tell me what I need to change to make the login work for registered users?

Please advise,

Louise
BirdShopper.com
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #279  
Old 12-30-2004, 06:04 AM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default

After reading back through the posts I found and tried this code for login.php and it works

if ($login_type == "C" || $login_type == "B") {
if($redirect2 == "checkout")
func_header_location($redirect_to."/cart.php?mode=checkout");
elseif (!func_is_cart_empty($cart)) {
if((strpos($HTTP_REFERER, "mode=auth") === false) && (strpos($HTTP_REFERER, "mode=checkout") === false)) {
func_header_location($redirect_to."/cart.php");

Thanks,

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #280  
Old 12-30-2004, 12:02 PM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default

Just a public THANKS to Jon for coming to my aid!

Thanks again Jon!

Louise
http://www.birdshopper.com
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
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 08:48 PM.

   

 
X-Cart forums © 2001-2020