Results 1 to 6 of 6
  1. #1
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default How can I move this under price?

    I recently moved the price just above the "add" quantity box on the product page and I like it so much better. Now I think the "Free Shipping + No Minimum Purchase" would be more effective directly under the price. The font needs to be smaller, and I'm not sure if I want to continue to use Georgia or Verdana, but that can be tweaked once it's placed. Can someone please show me the code I should use to move it?

    #productPrices {
    font-size: 1.3em;
    margin-left: 75%;
    }


    #freeship {
    color: #ED3A84;
    font-family: georgia,serif;
    font-size: 100%;
    font-style: italic;
    font-weight: bold;
    }

    http://designerperfumesnob.authsafe....html?cPath=656

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: How can I move this under price?

    In includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php you would need to move

    <div id="freeship"> blah blah </div>

    to

    <div id="cartAdd">

    blah blah

    just before the closing </div>

    so it reads

    Code:
    <div id="cartAdd">
    
    blah blah
    
    <div id="freeship"> blah blah </div>
    </div>
    Backup that file before doing this!

    Then in your stylesheet add

    #freeship {
    color: #ED3A84;
    font-family: georgia,serif;
    font-size: 100%;
    font-style: italic;
    font-weight: bold;
    float: right;
    }

    You may need to break up "Free Shipping + No Minimum Purchase" into 2 lines ...

  3. #3
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: How can I move this under price?

    I need a small adjustment because the Add to cart and Free Shipping are sharing a line. I did the following:


    <div id="cartAdd">
    <?php
    echo $display_qty;
    echo $display_button;
    ?> <div id="freeship">FREE SHIPPING<br /> No Minimum Purchase </div>
    </div>


    and in stylesheet:

    #freeship {
    color: #ed3a84;
    font-family: georgia,serif;
    font-size: 1.3em;
    font-style: italic;
    font-weight: bold;
    float: right;}

    The strange thing is, for a moment it showed correctly. Just long enough for me to see that I needed a space between the Add To Cart and the Free Shipping text. Then the next thing I knew, they were sharing a line. When you show me how to make this adjustment, can you include how to make a single space between them. Thank you!

    http://designerperfumesnob.authsafe....en-p-3794.html
    Last edited by traytray; 5 Aug 2013 at 12:56 AM.

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: How can I move this under price?

    Quote Originally Posted by traytray View Post
    <div id="cartAdd">
    <?php
    echo $display_qty;
    echo $display_button;
    ?> <div id="freeship">FREE SHIPPING<br /> No Minimum Purchase </div>
    </div>
    ?><br /> <div id="freeship">FREE SHIPPING<br /> No Minimum Purchase </div>

  5. #5
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: How can I move this under price?

    Perfect! Thank you~

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

    Default Re: How can I move this under price?

    Quote Originally Posted by traytray View Post
    and in stylesheet:

    #freeship {
    color: #ed3a84;
    font-family: georgia,serif;
    font-size: 1.3em;
    font-style: italic;
    font-weight: bold;
    float: right;}
    Another problem with this is that you use #freeship. The # is reserved to designate an id and an id should be a singular occurrence on a page. You use the freeship designation twice on the product page.
    The quick solution is to change <div id="freeship"> on the product page to <div class="freeship"> and then change the stylesheet to .freeship which tells the stylesheet that freeship is a class that will be used more than once on a page.
    The SEs will be less confused.
    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. v139e How can I move the price field to the left
    By amnon_d in forum General Questions
    Replies: 1
    Last Post: 19 Mar 2012, 11:28 AM
  2. how can I move this?
    By alexdog1805 in forum Basic Configuration
    Replies: 3
    Last Post: 1 Oct 2010, 11:42 AM
  3. how can move this image?
    By fadi21 in forum Customization from the Admin
    Replies: 3
    Last Post: 23 Aug 2010, 03:50 PM
  4. How to move description to under price?
    By starrydesigns in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Jul 2008, 07:26 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