Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default hide add to cart' quantity box

    i use latest version of zen cart

    i have looked hard for this solution, but, strangely, cannot find info

    i would just like to hide the add to cart' quantity box displayed in product info

    but, i still want quantity box to show on shopping cart

    any ideas?

    matt

  2. #2
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: hide add to cart' quantity box

    Admin->Configuration->Product Info

    Product Quantity Box Status - Adding New Products -> set to 0

    If I recall this will only work for new products being added. I had the opposite problem at one point when I decided I wanted the box to display on all my products. If I remember correctly I had to run an SQL query to update everything that already existed.
    Last edited by khopek; 23 Sep 2010 at 02:11 PM.

  3. #3
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default Re: hide add to cart' quantity box

    hi khopek

    thanks for that

    there are two settings here, 0 and 1 (not True/False) so I set to 1, it was 0, but quantity box is still showing (see attached).

    So, i am going to edit tpl_product_info_display.php, give the quantity input box a class, then display none in stylesheet and then wrap the 'Add to cart' text in a span and then display none in css.

    A little long winded for what seems should be something quite simple

    if anyone knows an easier way that would be great

    i try not to alter code as much as poss

  4. #4
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default Re: hide add to cart' quantity box

    actually, no need to wrap the 'Add to cart' text in a span and display none as can just delete in english.php language file

  5. #5
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: hide add to cart' quantity box


  6. #6
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default Re: hide add to cart' quantity box

    hi

    the only problem with this is that the quantity box is then taken off of the shopping cart page - i want to take it off product info page only, this way if people really do want to order more than one of the same they can via the shopping cart page.

    matt

 

 

Similar Threads

  1. Add to Cart button replaced by quantity box
    By jwebster8 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Aug 2010, 06:37 PM
  2. Hide Add To Cart box if mod shows on Product Page
    By ryanb4614 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 9 Nov 2009, 12:28 AM
  3. Add to Cart/Quantity box not showing up
    By red_hatorade in forum Basic Configuration
    Replies: 4
    Last Post: 5 Oct 2009, 01:23 AM
  4. Add to Cart Quantity box
    By mOdit2me in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 15 Jan 2009, 10:22 PM
  5. Add to Cart Quantity Box missing
    By brodieaus in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Jun 2008, 05:55 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