Results 1 to 10 of 13

Hybrid View

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

    Default Re: Adding "add to cart" button to featured products

    That is a considerable chunk of code, and could not just be dropped into the line as shown above. Look in /includes/templates/template_default/templates/tpl_product_info_display.php to find the section that builds the price/add. It incrementally puts together bits of code; you can probably transfer the section to a point above the "text" line, accumulating the output in a variable like
    $add_code .= ...
    and then insert
    . $add_code
    in the text output.

    A caution: the code in tpl_product_info_display.php may depend on some variables being loaded with current database query info, and may not work properly in another file. If that is the case, you will have to get that info from the database, which is a whole other subject.

  2. #2
    Join Date
    Nov 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Adding "add to cart" button to featured products

    Does anyone know how to make the Buy it Now button show up in the Featured products sidebox? The trick above works fine, but I want the button visible on the front page as well as on the featured products page. Here is my link: http://xn--godpbunn-d0a.no/

    Thanks,

    Kristian

  3. #3
    Join Date
    Nov 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Adding "add to cart" button to featured products

    Oh, and it doesn´t necessarily have to be the Featured products, like this: http://livedemo00.template-help.com/...3586/index.php It could be the specials, like this one (which also has it on the featured products): http://www.templatemonster.com/demo/33534.html
    I just want one or two products in a sidebox with the Buy it Now button and to choose which ones...

    Any help appreciated

    Kristian

  4. #4
    Join Date
    Nov 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Adding "add to cart" button to featured products

    OK, I found this:

    http://www.zen-cart.com/index.php?ma...oducts_id=1904

    and now I am closer to what I want

 

 

Similar Threads

  1. v150 Adding "Add to cart"-Button or product in a document-general
    By Dave1st in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Sep 2014, 01:35 PM
  2. Adding Qty Box to Cross Sell above "Add to Cart" button
    By bigstore in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Mar 2012, 06:37 PM
  3. Replies: 26
    Last Post: 19 Feb 2010, 02:56 AM
  4. Replies: 12
    Last Post: 17 Jul 2009, 01:26 AM
  5. Help adding "Add to Cart Button"
    By ZuluRose in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Oct 2006, 05:56 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