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)

zefon 12-17-2004 12:22 PM

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.

Jon 12-17-2004 01:17 PM

Look for the track.js code.

zefon 12-17-2004 01:23 PM

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.

Jon 12-17-2004 02:01 PM

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.

GM 12-28-2004 03:17 AM

Nice mod Jon... I liked it so much, I built my own :wink: 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! :D

cotc2001 12-28-2004 03:41 AM

Do we get a preview before you live live GM :D

GM 12-28-2004 03:56 PM

I am live... :wink:

dalmuti 12-29-2004 08:16 PM

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

dalmuti 12-30-2004 06:04 AM

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

dalmuti 12-30-2004 12:02 PM

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

Thanks again Jon!

Louise
http://www.birdshopper.com


All times are GMT -8. The time now is 12:40 AM.

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