Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2008
    Posts
    21
    Plugin Contributions
    0

    Default How can I rename the "add to cart" to "checkout now"?

    How to add "check out" button on: http://hopmanhome.com/zen/index.php?...&products_id=2
    (in stead of the add to the cart button)

    Thanks for your help!

  2. #2
    Join Date
    Oct 2005
    Posts
    106
    Plugin Contributions
    0

    Default Re: How to add checkout button

    Go to:

    includes/languages/english/button_names.php

    edit around line 30:
    Code:
    Line #30 : define('BUTTON_IMAGE_IN_CART', 'button_in_cart.gif');
    and change to

    Code:
    Line #30 : define('BUTTON_IMAGE_IN_CART', 'button_checkout.gif');
    Save and upload to your server. Make sure to use the override directory otherwise it will get overwritten during an upgrade. Simply create a folder using your template name (such as classic) and upload your button_names.php file to that folder.

  3. #3
    Join Date
    Mar 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: How to add checkout button

    I have made the change and indeed the button changed from "add to cart" to "check out"

    http://hopmanhome.com/zen/index.php?...03df4ce2c06976


    I guess the next step is to change the functionality since it still land on the shopping cart if you press on the check out button.

    How to do that?

  4. #4
    Join Date
    Oct 2007
    Location
    Safford, AZ
    Posts
    323
    Plugin Contributions
    0

    Default Re: How to add checkout button

    You're wanting the button changed, which you have done. But also you want the item to be added to the cart and the customer to be taken directly to Checkout? Do you have other products for sale? Or maybe other products will be available one day? Reason I ask is by taken them directly to the Checkout you are basically saying you can't buy anything else. If you do offer more products then the customer would have to leave the Checkout and go back into your store to buy more stuff.

    Just my thoughts
    Steve
    Zen cart version: 1.3.9h

  5. #5
    Join Date
    Mar 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: How to add checkout button

    I do not have other products to sale.

    The question is how to implement it?

  6. #6
    Join Date
    Oct 2007
    Location
    Safford, AZ
    Posts
    323
    Plugin Contributions
    0

    Default Re: How to add checkout button

    I just tried the following and it worked.

    Make sure your Admin -> Configuration -> My Store -> Display Cart After Adding Product = True

    Open file:

    /includes/init_includes/init_cart_handler.php

    Look for the following:

    PHP Code:
    if (DISPLAY_CART == 'true') {
        
    $goto =  FILENAME_SHOPPING_CART
    Change: FILENAME_SHOPPING_CART to FILENAME_CHECKOUT_SHIPPING

    Once this is done and your customer clicks that button to add the item to the cart, it adds it and takes them directly to Checkout. Since Checkout requires a login process, it asked for a username/password on my site. Maybe yours is setup different and it will not ask.

    Make a backup of that file before doing anything. If this doesn't work or it's wrong advice, you will be able to just restore the backup file and be back to where you are now.
    Steve
    Zen cart version: 1.3.9h

 

 

Similar Threads

  1. Replies: 3
    Last Post: 12 Mar 2015, 03:13 PM
  2. Replies: 0
    Last Post: 17 Mar 2010, 05:24 PM
  3. Replies: 2
    Last Post: 11 Feb 2010, 09:13 PM
  4. How to Rename "1ea" in Shopping Cart to "1x"?
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 May 2009, 12:53 PM
  5. Change "Buy Now" to "Add to Cart"
    By supplyman in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Mar 2008, 03:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR