Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Apr 2011
    Location
    Montana
    Posts
    13
    Plugin Contributions
    0

    Default move add to cart button to above description

    Hello, I have searched but not found an answer for a question.

    I am using 1.3.9h and the template CSS is the only mod from the default.

    I want to change the add to cart button from the bottom of the description to just above the description. I have looked and tried a couple different config options in the admin but no change.

    Is this something I will need to modify in a template and if so which file?

    Thank for any help.

    Wade
    The Way is perfect... Be serene in the oneness of things. – The Third Chinese Patriarch of Zen
    25 years of zen under my belt, without the -cart.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: move add to cart button to above description

    As always, a link to your site would help us help you, but you might look at tpl_product_info_display.php.

  3. #3
    Join Date
    Apr 2011
    Location
    Montana
    Posts
    13
    Plugin Contributions
    0

    Default Re: move add to cart button to above description

    Thanks stevesh. My bad, I thought I had pasted it. I guess I need to proof read better before submitting.
    http://www.hilinerecords.com/shop/cd...at-the-tractor

    I created my template based on the classic template provided in the install. It did not contain the tpl_product_info_display.php file. I copied it to the folder in my template but I'm thinking the hook is not there to catch this file as it makes no difference to the generated page. The code for action=add_product is the first form on this page.

    Shoppers are not seeing the dropdown to select the option so I am thinking that having it at the top will make a difference.
    The Way is perfect... Be serene in the oneness of things. – The Third Chinese Patriarch of Zen
    25 years of zen under my belt, without the -cart.

  4. #4
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: move add to cart button to above description

    Copy the file
    templates/template_default/templates/tpl_product_info_display.php
    paste it in
    templates/YOU_CUSTOM_TEMPLATE/templates/tpl_product_info_display.php

    Move the code between
    <!--bof Add to Cart Box -->
    and
    <!--eof Add to Cart Box -->

  5. #5
    Join Date
    Apr 2011
    Location
    Montana
    Posts
    13
    Plugin Contributions
    0

    Default Re: move add to cart button to above description

    @keneso Thanks, that is what I had tried with no change. I moved it to several different places in the file.

    I see in the product_info file header "* Loaded automatically by index.php?main_page=product_info.<br />" When I open the index.php file I don't see any reference to that specific file but I do see "require($template->get_template_dir('main_template_vars.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/main_template_vars.php');"

    I am not new to .php manipulation but I am not a programer so I am not sure, but this looks like a hook for the templates for individual pages.

    Is this template not being found or referenced?

    I'm learning!
    The Way is perfect... Be serene in the oneness of things. – The Third Chinese Patriarch of Zen
    25 years of zen under my belt, without the -cart.

  6. #6
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: move add to cart button to above description

    Forget about the coment at the beginning of the file, and go look for the part of code I referenced.
    I am not so into the ZC code, but my understanding is that
    templates/YOU_CUSTOM_TEMPLATE/templates/tpl_product_info_display.php
    is loaded within the main template - the one that assmbles various chunks of code, from different places, and delivers the final page.

    you can move those parts, and in case add your own css to better control it, although in almost all cases the ZC css is more than enough.

    Again this is the file you need to work on
    templates/YOU_CUSTOM_TEMPLATE/templates/tpl_product_info_display.php

    and this is the chunk you should move up
    Move the code between
    <!--bof Add to Cart Box -->
    and
    <!--eof Add to Cart Box -->

  7. #7
    Join Date
    Apr 2011
    Location
    Montana
    Posts
    13
    Plugin Contributions
    0

    Default Re: move add to cart button to above description

    Yep, Yep, and nope.

    I have copied the file, I have moved the code, It made no difference. I moved different segments in the file (review, tell a friend) nothing I moved made a difference.

    I have looked at the similar questions below as well, same answer as I have been given here. Curious how when I did a search for those exact words none of them showed up in results.

    I'm wondering why what works for others will not work on mine.
    The Way is perfect... Be serene in the oneness of things. – The Third Chinese Patriarch of Zen
    25 years of zen under my belt, without the -cart.

  8. #8
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: move add to cart button to above description

    I jsut used firebug to do it, and it does work, might it be that you edit the dafault file, and have an override file, and that you upload the edited file in the default folder, rather than the CUSTOM override?

  9. #9
    Join Date
    Apr 2011
    Location
    Montana
    Posts
    13
    Plugin Contributions
    0

    Default Re: move add to cart button to above description

    Not a clue, I moved the file to the common folder and sideboxes just for process of elimination but no change in display.

    Gonna have to wait patiently on this one I guess.

  10. #10
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: move add to cart button to above description

    Not a clue, I moved the file to the common folder
    tpl_product_info_display.php doesn't go in the common folder. It goes in includes/templates/your_template/templates.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. add to cart above product description
    By maxy007 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Jan 2011, 09:36 AM
  2. Easy way to move product attribute selection above the "Add to cart" button?
    By shrimp-gumbo-mmmhhh in forum General Questions
    Replies: 3
    Last Post: 9 Jun 2010, 07:57 PM
  3. How can I move my attribute selections *above* the add-to-cart button?
    By JannyM in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 6 Nov 2008, 02:10 PM
  4. Product Display - Move Attributes above Add to cart
    By HOBOcs in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 2 Mar 2008, 09:55 PM
  5. having the qty+price+options+add to cart above description
    By starline in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Aug 2007, 04:41 AM

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