• Resolved arminghasemazar

    (@arminghasemazar)


    Hi. I’m using TranslatePress for my WooCommerce-based webshop. I have two languages: English and Persian (RTL). I have different product, where for some I have applied minimum quantity (two per each product) for purchasing. For this purpose, I’m using WooCommerce official plugin.

    While the site is in English, everything in the MENU page works perfect both for products with no minimum and products with minimum two quantity. They get added to cart with the minimum quantity set in admin. However, when I switch the language to Persian, in the MENU page, the products with minimum quantity gets added to cart with one quantity (regardless of the already-set quantity by admin). AJAX for these products also gets disabled (add to cart button refreshes the page). AJAX for no-minimum products works as it should.

    First, I though it might be the RTL functionality that causes such problem. I removed Persian and added Danish (LTR) but the same happened again. FYI, I’m using SHOP ISLE theme. So it seems that when the second language is on, the add-to-cart functionality doesn’t care about quantity. I already inspected the add-to-cart button for both languages and the elements are exactly identical (except for button labels). Furthermore, add-to-cart button style for quantity-driven products get changed comparing to no-quantity products. All of this problems only happen in the second language (regardless of being an RTL or LTR language).

    So for debugging, I tried to enable the following functionalities 1 by 1:
    – Fix missing dynamic content
    – Disable dynamic translation
    – Fix spaces between HTML attributes
    – Fix broken HTML

    So the last one did the trick the solved the problem. But it causes so many other problems, such as hiding some already-translated texts, changing some theme styles, etc. So I disabled that functionality.

    So I guess there is a incompatibility or conflict between TranslatePress and Woo min/max quantity functionality. Please also be advised that I’ve tried other min/max plugins and the same problem happens.

    Would you please help me solve this problem?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘problem with woo min/max quantity’ is closed to new replies.