Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Jan 2011
    Location
    Michigan
    Posts
    23
    Plugin Contributions
    0

    help question Forcing Attribute selection int Add To Cart Box

    Using Zen Cart 1.3.9h
    I have been searching for days, going thru code, and altering mine, with no success.
    I want to force the select attribute inside of the add to cart area, as in These 2 sites.... http://www.sporthorseproducts.com/cotton-day-sheet.html and http://www.elitehorsewear.com/store/...products_id=21 .

    I have tried altering public_html\includes\templates\CUSTOM\templates\tpl_product_info_display.php with no results in the display, but the code changes and appears it should work. PLEASE HELP!!!

    My website, with attributes is...... http://greatlakesherbalife.com/index...products_id=66


  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Forcing Attribute selection int Add To Cart Box

    are you talking about if I click on the add to cart I will get a warning on the page and say, You have not selected an attribute value for packaging...

    Right now if you click on add to cart it chooses 90 tables by default..

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

    Default Re: Forcing Attribute selection int Add To Cart Box

    I'd suggest changing to dropdown and adding Please Select as default and for display only.
    Set Please Select to order 10 and the other selections to 20 and 30 respectively.
    All done in the Attribute Controller and should look like the image I posted in http://www.zen-cart.com/forum/showthread.php?t=99809
    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.

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

    Default Re: Forcing Attribute selection int Add To Cart Box

    If you want to force a conscious choice for an attribute and not just have a default, you can add a dummy option value called "Select" or whatever, and make it "default" and "display only". This will give a warning if they attempt to add to cart without choosing some real value.

  5. #5
    Join Date
    Jan 2011
    Location
    Michigan
    Posts
    23
    Plugin Contributions
    0

    help question Re: Forcing Attribute selection int Add To Cart Box

    I understand I have a default value set, I searched for that too, as a temporary option, but I still want my options to be inside the add to cart box, as is shown in the other 2 websites I mentioned.

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

    Default Re: Forcing Attribute selection int Add To Cart Box

    Okay, we were thinking you were after the "force attribute selection" rather than "force the attribute display to be in the add to cart box"...
    The sporthorse site actually has the add to cart inside the attributes wrapper. The elitehorsewear site has what I would consider to be the normal way of doing this: a new wrapper div that encloses both the attributes and the add to cart.

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

    Default Re: Forcing Attribute selection int Add To Cart Box

    Add <div id="attribAddBox"> just before <div id="productAttributes">, and just after the closing </div> of <div id="cartAdd">, add another </div> to close the new attribAddBox div.
    Then style #attribAddBox {} in your stylesheet as desired.

  8. #8
    Join Date
    Jan 2011
    Location
    Michigan
    Posts
    23
    Plugin Contributions
    0

    help question Re: Forcing Attribute selection int Add To Cart Box

    Quote Originally Posted by gjh42 View Post
    Add <div id="attribAddBox"> just before <div id="productAttributes">, and just after the closing </div> of <div id="cartAdd">, add another </div> to close the new attribAddBox div.
    Then style #attribAddBox {} in your stylesheet as desired.
    I cannot seem to find the file I need to alter. I used the look up in all files tool, and only found one file, doesn't seem to be the one I need to edit.

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

    Default Re: Forcing Attribute selection int Add To Cart Box

    \includes\templates\CUSTOM\templates\tpl_product_info_display.php

    If you have the name of your custom template folder where you say CUSTOM, the changes you make should take effect. If they do not, you are not getting the edited file uploaded correctly. And tpl_product_info_display.php is the file to edit.

  10. #10
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Forcing Attribute selection int Add To Cart Box

    Glenn,
    Quote Originally Posted by gjh42 View Post
    Add <div id="attribAddBox"> just before <div id="productAttributes">, and just after the closing </div> of <div id="cartAdd">, add another </div> to close the new attribAddBox div.
    Then style #attribAddBox {} in your stylesheet as desired.
    There is no <div id="productAttributes"> in this tpl_product_info_display.php file..
    But it is found default_template/ templates/ tpl_modules_attributes.php

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. I Want to Make the Attribute Selection Box Larger
    By Metalbiscuits in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Nov 2010, 08:51 PM
  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. Replies: 5
    Last Post: 2 Jan 2010, 08:44 PM
  4. Default Attribute Selection and Add to Cart
    By onurich01 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 17 Jul 2009, 05:47 PM
  5. Forcing the selection of an attribute
    By fastdc5 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 26 Apr 2009, 03:09 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