Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Posts
    134
    Plugin Contributions
    0

    Default anyone know the php code for the 'add to cart' button

    so i can add it in on another page.

    thanks

  2. #2
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: anyone know the php code for the 'add to cart' button

    This perhaps:

    Code:
    <?php
    echo $display_button;
    ?>
    ..but wait for someone else to confirm.
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

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

    Default Re: anyone know the php code for the 'add to cart' button

    The button display needs to occur inside a <form> or it will be just a pretty graphic that does nothing useful. Look at a file that currently uses the add to cart for an example of how to do that, like tpl_product_info_display.php.

 

 

Similar Threads

  1. Has anyone thought about moving the add to cart button up the page?
    By Mynorsdc in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Feb 2011, 11:47 PM
  2. Anyone know how to align text for EZ pages from the Admin???
    By tclayla in forum Customization from the Admin
    Replies: 11
    Last Post: 15 Jan 2009, 03:15 AM
  3. how to add the add-to-cart-button to the new products box on the home page?
    By ebloger in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Nov 2008, 10:30 AM
  4. Does anyone know where the shopping cart is in css?
    By jmelwak in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Aug 2007, 10:05 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