Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default [Done 2.0] Update Cart button incorrectly displayed (1.3.8a)

    I've just noticed that the Update Cart button is displayed on the shopping_cart page when Show Shopping Cart - Update Cart Button Location is set to 1 or 3 in the admin and Products Quantity Box Shows is set to No, Do not show Quantity Box for the product in question.

    This button should not display (next to each product) if the quantity box is not visible.

    Please let me know if you require any further information.

    All the best,

    Alex

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Update Cart button incorrectly displayed (1.3.8a)

    Yea, alex, could you give us your URL? And maybe a .........."see that button there?......it shouldn't be there".................or something like that?
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Update Cart button incorrectly displayed (1.3.8a)

    I'm currently working on a development server so cannot provide a URL.

    However, I'll try to replicate this issue with a fresh install of 1.3.8a, which should be good enough.

    I'll post back with an update soon.

    Regards,

    Alex

  4. #4
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Update Cart button incorrectly displayed (1.3.8a)

    Sure, that should work if you can duplicate the problem. Let us know when you get it set up.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Update Cart button incorrectly displayed (1.3.8a)

    Two possible changes:

    This one will remove the incorrect "update" button next to un-editable quantities on individual lines/rows in the cart:
    /includes/modules/pages/shopping_cart/header_php.php
    around line 140 add && !$showFixedQuantity as shown here:
    Code:
      $buttonUpdate = ((SHOW_SHOPPING_CART_UPDATE == 1 or SHOW_SHOPPING_CART_UPDATE == 3) && !$showFixedQuantity ? zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT) : '') . zen_draw_hidden_field('products_id[]', $products[$i]['id']);
    The following change should only be made if all your products are set to not allow quantity editing, as it does NOT take into consideration the fact that you might have a *mixed* combination of editable vs non-editable options in your cart ... so, use with caution:
    /includes/templates/YOUR_TEMPLATE/tpl_shopping_cart_display.php
    similar change, but with additional parentheses:
    Code:
    <?php
    // show update cart button
      if ((SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) && !$showFixedQuantity) {
    ?>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: [Done 2.0] Update Cart button incorrectly displayed (1.3.8a)

    Hi DrByte,

    Sorry for not being able to test this on a clean install of 1.3.8a.

    Looks like you've got things sorted!

    Thanks for the fix. :)

    All the best,

    Alex
    Posted via Mobile Device

 

 

Similar Threads

  1. v139h Quantity and Add to cart button badly displayed.
    By ilmarchez in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 May 2012, 05:07 PM
  2. Login Page displayed incorrectly using IE
    By oldgeorge in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jul 2008, 10:11 AM
  3. New Product Box - Border too big, displayed incorrectly
    By dsepshun in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Feb 2007, 08:18 PM
  4. Add to cart button not being displayed
    By cindy8756 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Sep 2006, 05:54 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR