Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Apr 2008
    Location
    Boston
    Posts
    148
    Plugin Contributions
    0

    Default Style arounf Add to Cart Plus Attributes

    I'd like to put a border around the add to cart AND the attibutes on the product page. I feel it will make it easier for the customer to know where to add with attributes. I see #cartAdd and .wrapperattribsOptions to style, but nothing for the whole area. This may be due to the old TM I used.
    NOTE: DO NOT USE TM. Creates WAY more issues than it's worth.

    Any help would be appreciated.

  2. #2
    Join Date
    Apr 2008
    Location
    Boston
    Posts
    148
    Plugin Contributions
    0

    Default Re: Style arounf Add to Cart Plus Attributes


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

    Default Re: Style arounf Add to Cart Plus Attributes

    Add a margin-top:50px to your #cartAdd, and border plus padding-top to your .wrapperattribsOptions

  4. #4
    Join Date
    Apr 2008
    Location
    Boston
    Posts
    148
    Plugin Contributions
    0

    Default Re: Style arounf Add to Cart Plus Attributes

    Thank you Keneso,
    Soooo close. It was fine until there are multiple attributes like this:

    http://keepsafeco.com/baby-safety-gates/outdoor-safety-gate-decks-porches


    Sorry for the ignorance. I appreciate your help. Can I get them all in the same box?
    Thank you

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

    Default Re: Style arounf Add to Cart Plus Attributes

    Then try adding a div with an id to your tpl_product_info_display.php file to enclose both the .wrapperattribsOptions and #cartAdd, then style that in the stylesheet.

  6. #6
    Join Date
    Apr 2008
    Location
    Boston
    Posts
    148
    Plugin Contributions
    0

    Default Re: Style arounf Add to Cart Plus Attributes

    Thank you again.
    Unfortunately you've now gone over my head.
    For now, I change the border back to only be around the #cartadd. I would like to box and border the add to cart along with all the attributes.
    If someone could give me a piece of code sample that might work I would be most appreciative.

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

    Default Re: Style arounf Add to Cart Plus Attributes

    Sorry.
    Please let me be more detailed - given TM hasn't changed too much, and left the comments on the file.

    Browse to includes/templates/TM_TEMPLATE/templates folder, in there you could/should have a file named tpl_product_info_display.php open it in a text editor like notepad++ (if you don't have it google for it), here you should see something like <!--bof Add to Cart Box --> before that you could add a
    <div id="myAddAttributeBox">,
    then you should have something like <!--eof Attributes Module --> after that you add
    </div>.
    After this you browse to includes/templates/TM_TEMPLATE/css folder, and open the stylesheet.css file in the editor, and add at the end of it
    Code:
    #myAddAttributeBox {
    border: 1px solid #FF0000;
    }
    Now you upload the two files in the respective folders to your server.
    You might need to tweak a little bit with the other rules to get it display like you need.

    NOTE
    In case you have hard time locating the tpl_product_info_display.php file, use the
    admin > tools > developer tool kit
    to search for either <!--bof Add to Cart Box -->, or <!--eof Attributes Module --> to locate it.

  8. #8
    Join Date
    Apr 2008
    Location
    Boston
    Posts
    148
    Plugin Contributions
    0

    Default Re: Style around Add to Cart Plus Attributes

    Above and beyond Keneso!! Thank you very much. It was just what I was looking to do.

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

    Default Re: Style around Add to Cart Plus Attributes

    You're welcome, glad you made it.
    You may want to add this to your stylesheet.css

    .attribsRadioButton {padding-left: 5px}
    Last edited by keneso; 26 Mar 2011 at 06:34 PM.

  10. #10
    Join Date
    Dec 2011
    Posts
    2
    Plugin Contributions
    0

    Default Re: Style arounf Add to Cart Plus Attributes

    hi all,

    i found this thread while doing a search on how to group my attributes. Following the posts here, i managed to put a border around the attributes, but what i really want to do is to have first 3 attributes in its own section or table, while the rest goes into another.

    Delivery table similar to this: http://www.fareastflora.com/detail.a...G-HBQ&PCD=PS02

    I am running an online florist and i would like to have the delivery date, time and message card show as one table and the other optional add ons as another table.

    just having picked up css and php in the past month, with no background in web development at all, i am very wary of making changes now that i have this site almost the way i want.

    would appreciate any advise or help anyone can provide here.

    my setup:

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Style Quantity Box and Add To Cart Button separately
    By k1ra in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Nov 2013, 06:49 AM
  2. add cost plus attribute/link attributes to options
    By wolfkin in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Jan 2010, 08:41 PM
  3. CSS add to cart button and style
    By UHU2 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 9 Nov 2008, 02:34 PM
  4. Can't take 'add to cart' button off, plus image not appearing on product page
    By Longster in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Oct 2008, 09:09 AM
  5. Changing Style of Quantity/Add To Cart
    By dave_nextexit in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Apr 2008, 08:01 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