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)

pengrus 03-27-2005 06:33 PM

Thank you, Jon.

I purchased the ezCheckout for now. I have finished the installation, and have a couple of questions:

1. It seems the ezcheckout page still use quite a lot default css variables from the default orange theme skin (skin1.css) such as the link, and font color and the price color, etc. How can I link it to my custom skin css that's on the Customer page?

2. The buttons like Checkout and Submit on the ezCheckout page are different from my custom skin's buttons. I am using Fashion Mosaic skin. I think this is also related to question 1, it links to skin1.css instead of skin1_customer.css.

Edited: I found that on the home_checkout.tpl , we need to replace the {#CSSFile#} with skin1_customer.css to solve above problem

Could you please help?

Thank you very much!

Jon 03-27-2005 07:31 PM

Change:

Code:

<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">

to:

Code:

<link rel="stylesheet" href="{$SkinDir}/skin1_customer.css">

pengrus 03-27-2005 07:44 PM

Thank you, Jon. Beautifully done... I just checked walmart.com, officedepot.com and amazon.com and realize they all have very simplified check out process like yours. I learned a lot from your mod. Thank you very much!

Jon 03-30-2005 09:00 PM

For users of 4.0.13 there's an update needed for ezUpsell.

The cart.php code is different.

Open cart.php

Find:
Code:

#
# Redirect
#
if($mode=="add" and $productid) {
    if(!empty($active_modules['SnS_connector'])) {
          func_generate_sns_action("AddToCart", $productid);
    }
    if($config["General"]["redirect_to_cart"]=="Y") {
          func_header_location("cart.php");
    } else{
          if(!empty($HTTP_REFERER)) {
              func_header_location($HTTP_REFERER);
          } else {
              func_header_location("home.php?cat=$cat&page=$page");
          }
    }
} elseif (!empty($is_sns_action)) {


REPLACE with:

Code:

#
# Redirect
#
if($mode=="add" and $productid) {
    if(!empty($active_modules['SnS_connector'])) {
          func_generate_sns_action("AddToCart", $productid);
    }
    #if($config["General"]["redirect_to_cart"]=="Y") {
    #    func_header_location("cart.php");
    #} else{
    #    if(!empty($HTTP_REFERER)) {
    #          func_header_location($HTTP_REFERER);
    #    } else {
    #          func_header_location("home.php?cat=$cat&page=$page");
    #    }
    #}
    if($mode=="add" and $productid) {
          func_header_location("added.php?cat=$cat&productid=$productid&amount=$amount");
    }
} elseif (!empty($is_sns_action)) {


pokeey 03-31-2005 06:03 PM

Jon doing that gives me a "file not found."

Anyway I emailed you earlier for install. (sheermiracle)

I did EZ-Cart no problem but EZ-Upsell has me stumped ](*,)

Chris

Jon 03-31-2005 08:45 PM

^ Just emailed you about it.

kalmaster 04-01-2005 07:21 AM

Hmm... I haven't had any problems with the MOD
Thanks alot guys!

pokeey 04-01-2005 10:45 AM

Jon,

Payment sent dude and Thankx. :wink:

Chris

Jon 04-01-2005 11:05 AM

^ All done.

Took some trouble shooting, but found that the problem was simply that home_main.tpl did not have the ezUpsell code implemented in it.

I modified your cart.php to put in the required redirect, updated your home_main.tpl, and ensured that everything is working.

You'll also want to reimplement the language variables as per the installation instructions. If you'd like to PM me admin details I will do this for you also.

Oh, and you may want to also update your signature with 4.0.13 ;)

pokeey 04-01-2005 11:48 AM

Jon,

Thank you!

Quote:

You'll also want to reimplement the language variables as per the installation instructions
I didn't get install instructions. So I was "winging it."

Here's the page:<blockquote>
versions of 4.0.x, specifically the 4.0.12 branch.

Please note that this will override the option in your admin section to redirect to the cart.php or not. You will however be able to easily disable this mod if for any reason you need to do so in the future.

To contact us please visit: http://www.websitecm.com/contact/
[/quote]

The 4.0 link went no where. Just back to the folder. Hmph?

I'll pm you my details

Thanks again.

Chris


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

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