Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: Update quantity in cart not updating

    Also, just realized - check your includes/modules/pages/shopping_cart/header_php.php and make sure you have the following lines:

    Code:
    $buttonUpdate = '';
        if (SHOW_SHOPPING_CART_UPDATE == 1 or SHOW_SHOPPING_CART_UPDATE == 3) {
            if (!$showFixedQuantity) {
                $buttonUpdate = zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT);
            } else {
                $buttonUpdate = zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT, 'style="opacity: 0.25" disabled="disabled"');
            }
        }
        $buttonUpdate .= zen_draw_hidden_field('products_id[]', $products[$i]['id']);
    
        $productArray[$i] = [
            'attributeHiddenField' => $attributeHiddenField,
            'flagStockCheck' => $flagStockCheck,
            'flagShowFixedQuantity' => $showFixedQuantity,
            'linkProductsImage' => $linkProductsImage,
            'linkProductsName' => $linkProductsName,
            'productsImage' => $productsImage,
            'productsName' => $productsName,
            'productsModel' => $productsModel,
            'showFixedQuantity' => $showFixedQuantity,
            'showFixedQuantityAmount' => $showFixedQuantityAmount,
            'showMinUnits' => $showMinUnits,
            'quantityField' => $quantityField,
            'buttonUpdate' => $buttonUpdate,
            'productsPrice' => $productsPriceTotal,
            'productsPriceEach' => $productsPriceEach,
            'rowClass' => $rowClass,
            'buttonDelete' => $buttonDelete,
            'checkBoxDelete' => $checkBoxDelete,
            'id' => $products[$i]['id'],
            'attributes' => empty($attrArray) ? false : $attrArray,
        ];

  2. #12
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: Update quantity in cart not updating

    Thanks for all suggestions, I found that if I replace tpl_shopping_cart_default.php in the Bootstrap template with the same file from the default template then it's working. So now I guess I just have to find exactly what is missing/wrong in that file.

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

    Default Re: Update quantity in cart not updating

    Warning to those who know how to dig around. Stay out of the stylesheets.

    You have lots of problems on the site other than just the update.

    One category's products all result in 404

    A non-zencart stylesheet is placing the add to cart form on top of all your product descriptions.

    One of them is dangerous and not a part of a standard ZC load.

    All of this could have been discovered earlier if you had followed the Posting Tips.
    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. #14
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: Update quantity in cart not updating

    Yes indeed this is a work in progress. The site is not live yet, I just took it out of maintenance mode so people here could take a look at it regarding the update problem.
    The add to cart form is on top of the description on all product pages right now I believe.

    But I'm surprised about "One category's products all result in 404", on which category do you see that?

    Also, "One of them is dangerous and not a part of a standard ZC load", please let me know which one you mean and why it's dangerous.

    "Posting Tips" please let me know what you are referring to here, thanks.

    Much appreciated, thanks a lot!

  5. #15
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: Update quantity in cart not updating

    Quote Originally Posted by dbltoe View Post
    Warning to those who know how to dig around. Stay out of the stylesheets.
    Do you mind clarifying this? What dangers lurk, other than a misaligned element?

    One category's products all result in 404
    I'll assume it's USB To Serial where the descriptions link to static URLs which probably just haven't been enabled yet.

    A non-zencart stylesheet is placing the add to cart form on top of all your product descriptions.
    You mean the bootstrap template stylesheets? I believe Cindy made it like that for easier updating...
    I don't see any other stylesheets being loaded other than the ones that are distributed with the template...


    One of them is dangerous and not a part of a standard ZC load.
    A dangerous stylesheet?

    With all due respect, such vague and misleading posts don't benefit anyone. If you think something's DANGEROUS (and we all know what that word means), elaborate it straight away and help the person fix it, don't leave them hanging. If it breaks layout, it's not dangerous, it's just something that needs to be fixed.
    For example, product page for model STE-232 (I won't post the link so search engines don't pick it up) shows the CSS error, but it's a simple fix - for some reason there's an added line in stylesheet.css:
    Code:
    .productDescription {
      width: 210%;
      margin-top: 25px;
    }
    Removing that line will fix the overlap. These are simple mistakes, but not something I'd call dangerous...

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

    Default Re: Update quantity in cart not updating

    It's not included in the bootstrap mod and, if you access using the basic URL of the stylesheet, a trojan is launched.

    Being grouped with the cloudflare files, one might assume....

    As far as Posting Tips, every time you start or answer a thread, you are presented with the Posting Tips. When you started this thread, you actually had to delete the reminder to use them.

    Also, USB to Serial Adapter
    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.

  7. #17
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: Update quantity in cart not updating

    Quote Originally Posted by dbltoe View Post
    It's not included in the bootstrap mod and, if you access using the basic URL of the stylesheet, a trojan is launched.

    Being grouped with the cloudflare files, one might assume....
    The bootstrap css file is being loaded from cdn.jsdeliver.net (one of the most trusted sources), the npm indicates it's coming directly from the official npm registry and the integrity SRI hash exists and is valid.
    I don't know where you got the trojan alert form, but it's definitely not from that CSS file.

    As far as Posting Tips, every time you start or answer a thread, you are presented with the Posting Tips. When you started this thread, you actually had to delete the reminder to use them.
    Yeah, but most has been said, at least the information that matters... PHP version is the only thing we don't know, but even if it were php 10.5 and MySQL 11.3 running on CentOS 17 that was released in 2050, it wouldn't change the fact that the form doesn't contain products_id hidden field(s) so there's nothing to process.

    My money is on includes/modules/pages/shopping_cart/header_php.php

  8. #18
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: Update quantity in cart not updating

    My money's with you on this one as well.

    I still wonder why the .net is resolving to .com.

    And, the more posting tips the easier for some of us to help.

    Not everyone here is as familiar with an area without "looking" at it. Didn't someone say, "knowledge is power"?

    IMHO, if the Posting Tips are included with at least the opening of a post, the answer can be reached much faster.

    Likewise, if someone joins a thread with a "similiar" problem, we know from the start that the likelihood of similar is not always true. Again, in such cases, posting tips answers would probably get us to a resolution quicker.

    Don't make me research all the times you have asked for a display log. ;-) (smilies are down apparently)
    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.

  9. #19
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: Update quantity in cart not updating

    Quote Originally Posted by balihr View Post
    The bootstrap css file is being loaded from cdn.jsdeliver.net (one of the most trusted sources), the npm indicates it's coming directly from the official npm registry and the integrity SRI hash exists and is valid.
    I don't know where you got the trojan alert form, but it's definitely not from that CSS file.


    Yeah, but most has been said, at least the information that matters... PHP version is the only thing we don't know, but even if it were php 10.5 and MySQL 11.3 running on CentOS 17 that was released in 2050, it wouldn't change the fact that the form doesn't contain products_id hidden field(s) so there's nothing to process.

    My money is on includes/modules/pages/shopping_cart/header_php.php
    Thanks, that answered all my questions and concerns, except solving the actual problem of course

    I do see:

    $buttonUpdate .= zen_draw_hidden_field('products_id[]', $products[$i]['id']);
    and
    'buttonUpdate' => $buttonUpdate,

    in

    includes/modules/pages/shopping_cart/header_php.php

    so apparently that isn't the problem.

    But as I mentioned earlier, when I replace:

    includes/templates/bootstrap/templates/tpl_shopping_cart_default.php

    with

    includes/templates/template_default/templates/tpl_shopping_cart_default.php

    Then the update button works, but the layout gets mixed up. So there must be something missing/wrong in that file. I guess? Just can't seem to find the exact missing link.

  10. #20
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: Update quantity in cart not updating

    Seems like I found a solution, not sure if it's the correct way of fixing this, but in tpl_shopping_cart_default.php it looks like the update action function was in the wrong table cell, so I moved:

    <span class="qtyUpdateCell text-center d-none d-sm-table-cell"><?php echo (!empty($product['buttonUpdate'])) ? $product['buttonUpdate'] : ''; ?></span>

    in line 121 to line 116. So line 116 no looks like this:

    <span class="qtyUpdateCell text-center d-none d-sm-table-cell"><?php echo (!empty($product['buttonUpdate'])) ? $product['buttonUpdate'] : ''; ?></span></div>

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. shopping cart - hide the Cart Quantity Update button when not needed
    By dause in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 1 Oct 2009, 04:28 AM
  2. Not able to update product quantity in shopping cart
    By bstoppel in forum General Questions
    Replies: 5
    Last Post: 3 Aug 2009, 06:15 PM
  3. Shopping cart quantity not updating in Firefox
    By DML73 in forum General Questions
    Replies: 0
    Last Post: 12 Nov 2008, 05:13 PM
  4. Update Cart button not updating cart
    By nathancarnes in forum General Questions
    Replies: 10
    Last Post: 24 Apr 2007, 08:50 PM
  5. Quantity in cart does not update correctly. Why ?
    By carlocas in forum General Questions
    Replies: 3
    Last Post: 21 Mar 2007, 06: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