A Few Bugs - by labargemedia - on WordPress WooCommerce support

This topic has 10 replies, 2 voices, and was last updated 7 years, 2 months ago ago by Olga Barlow

  • Avatar: labargemedia
    labargemedia
    Participant
    January 25, 2017 at 22:54

    Hello,

    We’re experiencing a few bugs and I’m wondering if you could help:

    a. “Add to cart” Ajax isn’t working. With it turned on, if I add to cart on a product index page or a single product page, some of the items lighten a bit (opacity) like it’s being added to the cart. But nothing pops up and the cart doesn’t refresh automatically with the new items in the cart. If I just refresh the page manually, everything is there correctly. It just seems like a bug or something with the Ajax animation? If I turn that off in settings, it refreshes the page and adds everything to the cart like it should be. Seems to be isolated to the Ajax. I’ve turned the Ajax on so you can see the issue. Happens in both Chrome and Firefox.

    b. Some product info doesn’t show up in the cart widget on a single product page: http://dev.labargemedia.com/ryans/product/5-20-spirits-bourbon-whiskey/. It shows the name of the product and image, but the price isn’t listed there or the quantity in the cart.

    c. On the backend of the site, I’ve noticed errors like this before when completing some tasks:

    Warning: sprintf(): Too few arguments in /home/lmdev/public_html/ryans/wp-content/themes/ryans/framework/version-check.php on line 154

    For example, if I try to delete a product, it shows that warning at the top of the page. Sometimes it also adds this in as well:

    Warning: Cannot modify header information – headers already sent by (output started at /home/lmdev/public_html/ryans/wp-content/themes/ryans/framework/version-check.php:154) in /home/lmdev/public_html/ryans/wp-includes/pluggable.php on line 1179

    This only happens when I select several items (products, users, etc) and try to delete them. If I just delete the product by itself, doesn’t seem to happen. Same thing happens if I try to restore a bunch at the same time. Thoughts?

    Please, contact administrator
    for this information.
    9 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 26, 2017 at 17:34

    Hello,

    Could you, please, provide me FTP access. We see js error after adding to cart and need to find out what causes this issue.
    Also, please, do the backup of your site and DB and tell me if I can update theme to the latest version?

    Regards

    Avatar: labargemedia
    labargemedia
    Participant
    January 31, 2017 at 17:00

    Thanks so much. Sorry, I didn’t get notified that there was a reply to this thread in my email so I’m just now seeing it.

    So a couple days ago it seemed like the error messages I was seeing disappeared…I don’t remember doing anything on my end, but it could have been that an update for Woocommerce or something resolved it. I haven’t seen it in a few days…so I’ll count that one as resolved until I do again 🙂

    I just updated the theme to the latest version (it’s now 3.7). I’m using a child theme as well, but I’m guessing that doesn’t have to be updated.

    Yeah, if you could take a look at what might be causing the ajax issues, that’d be great. It doesn’t seem like the “ajax” add to cart function works on any store area (single product page, archives, shortcodes, etc). It does look like the “Add to Wishlist” function works fine though…

    Also, the prices are still missing from the sidebar “cart” widget. I can see them if I Firebug inspect it, but they’re not displaying for some reason.

    Also, final question. I installed two different “name your price” tools on the site (including the Yith Name Your Price plugin) and they don’t seem to work for some reason (but do on other client’s sites). I can fill out the price amount I want to use (it’s a user entered field) and add it to the cart, but the cart shows it as a free item or as $0.00…even if the price was something larger ($35 say). Here’s a link to the “name your price” product:

    http://dev.labargemedia.com/ryans/product/giftcard-custom-amount/

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 2, 2017 at 16:29

    Hello,

    1) Add the following code in custom CSS

    .mini_cart_item .quantity {
        opacity: 1;
        letter-spacing: 0;
    }

    2) I have checked this product with default WooCommerce theme Storefront and see the same situation https://infinit.io/_/3pHHcpg

    Regards

    Avatar: labargemedia
    labargemedia
    Participant
    February 2, 2017 at 16:32

    Okay, thanks. I’ve tried a couple different “Name Your Price” plugins and nothing seems to work correctly. I’ll keep searching.

    That CSS fixed the amount in the mini cart.

    However, I’m still wondering what’s happening with the “Ajax” add to cart features of the site. This is a pretty large bug for us that we really need to resolve before the site is launched.

    Thanks.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 2, 2017 at 18:12

    Hello,

    Oh, sorry, my bad. I have disabled Ajax in theme options (E-Commerce > Single Product) to test coupon issue. Check now and take my apologies.

    Regards

    Avatar: labargemedia
    labargemedia
    Participant
    February 2, 2017 at 18:51

    Sorry, no…one of my original issues was that the ajax function for adding to the cart wasn’t working sitewide. It’s still not working. You had mentioned needing FTP access because you were seeing some JS error or something. Can you tell me why the ajax function for adding things to the cart isn’t working still?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 3, 2017 at 15:53

    Hello,

    This issue caused by your custom code in Promo Popup area http://prntscr.com/e40vrg Jquery is called twice (our theme and your code) and causes problem.

    Regards

    Avatar: labargemedia
    labargemedia
    Participant
    February 3, 2017 at 15:59

    I see. Do you have recommendations of something I could modify or change so that there aren’t any conflicts?

    Also, the final bug I’m seeing is one that only happens in Firefox. When I click the “wishlist” button on a single product, the “added to wishlist” state of the button jumps up about 20px. This doesn’t happen in Chrome (it stays in the same place for the “empty” and “filled” states), but in Firefox it jumps up. I could easily bring it down through css, but that would cause it to be too low in Chrome. Are you able to see what I’m referring to?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 6, 2017 at 10:34

    Hello,

    Unfortunately, fixing of user’s code is not included in our support.

    To Fix the wishlist issue add the following code in custom CSS
    .single-product-right .product-information-inner .yith-wcwl-add-to-wishlist a{letter-spacing:0;}

    Regards

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.