Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2007
    Posts
    2
    Plugin Contributions
    0

    Default Buy Now button from outside of store

    I've been searching for this information in the forums and FAQs for about an hour and I can't find anything that directly answers this question (I'm sure its there I just can't find it).

    How can I set up a Buy Now button on a page outside of m Zen Cart store. I have a page that has a list of products that is currently using PayPal Buttons and gets a fair amount of traffic. I want to change the page as little as possible and have the buttons take the customer directly to zencart checkout with only the selected product in the cart.

    Any links or help would be appreciated. Thanks.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Buy Now button from outside of store

    Zen Cart is not designed to work the way you are describing. It is designed to be the whole store. You can modify the look and feel of the ZC template to match just about any site design.

  3. #3
    Join Date
    Sep 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Buy Now button from outside of store

    I understand what you are saying, but it doesn't really answer my question. I will have a store with all of the items in the store and set up as a regular Zen Cart Store. Has to do with how to keep my existing page active in addition to the store running the way it was intended to be run.

    My question is, in addition to the normal usage of Zen Cart, can buy now buttons be added to my site outside of Zen Cart (and how). I know the cart isn't designed to work this way so is there a hack or has anyone done this in any way before.

    Thanks

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Buy Now button from outside of store

    The buy now button is just an image, what important is the submit form goes with it. You can easily copy that, changes the info to suit that specific item:
    Code:
    <form enctype="multipart/form-data" method="post" action="http://www.yourstore.com/index.php?main_page=product_info&products_id=692&action=add_product" name="cart_quantity">
    
        Add to Cart: <input type="text" size="4" maxlength="6" value="1" name="cart_quantity"/><br/><br/><input type="hidden" value="692" name="products_id"/><input type="image" title=" Add to Cart " alt="Add to Cart" src="includes/templates/TEST/buttons/english/btn_buy.gif"/>          
    </form>
    I took out some other parts that are not needed in your case, but basically that's what you need. You can also write a very simple php function that takes the products_id produces that link for you.

    Regards.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Buy Now button from outside of store

    Ben,
    Zen-Cart cannot control sessions and other cookies when going in and out of its "domain". I think you would be better served(especially with Zen's PayPal Express checkout) to have the link to your older page changed to point to a similar representation in Zen. The link will be the same on the current site and (with a little customization) look nearly identical to the older. All while keeping the likelihood of crashing the database at a minimum.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. v139h Changing BUY NOW button to SPONSOR NOW in one category
    By tomig in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 9 Sep 2015, 12:25 AM
  2. v153 How to remove javascript buy now button from homepage featured images
    By sports guy in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Jan 2015, 03:02 AM
  3. Adding item to cart from a button outside of the store.
    By dwolfe in forum General Questions
    Replies: 1
    Last Post: 27 Jan 2011, 02:38 PM
  4. Remove Price from Product Listing but Keep Buy Now Button.
    By maineiac13 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Sep 2008, 09:43 PM

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