Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter lbmaqes

    (@lbmaqes)

    Hi.

    Thank you for the reply. I will try the steps you suggested. Meanwhile, I implemented this temporary CSS fix in case anyone else has the same issue.

    /* Hide wrong symbol when PLN is active */
    body.woocommerce-multi-currency-PLN .woocommerce-Price-currencySymbol {
    display: none !important;
    }

    /* Append correct symbol after amount (right-with-space layout) */
    body.woocommerce-multi-currency-PLN .woocommerce-Price-amount.amount::after {
    content: “zł”;
    }

    And just for info – we are using Bricks builder and theme 🙂

    Have a nice day <3

    Thread Starter lbmaqes

    (@lbmaqes)

    Hi 🙂

    I fixed it with a code. However, I think it would be a valuable feature to have in a future version.

    Here is the code, in case someone needs it as well, in the meantime.

    Have a nice day <3

    /**
    * Prevent coupons from stacking on top of bulk/dynamic pricing discounts.
    *
    * By default, WooCommerce only blocks coupons on "sale" products (products where is_on_sale() = true).
    *
    * This snippet fixes that by checking if the product’s current cart price
    * is lower than its regular price. If it is, we assume a bulk/dynamic discount
    * has already been applied and we block the coupon for that product.
    *
    * Result:
    * - Coupon will still work on normal-priced products in the cart.
    * - Coupon will be ignored for bulk/dynamic discounted products.
    *
    * Drop this in your child theme’s functions.php or a code/snippet plugin.
    */
    add_filter('woocommerce_coupon_is_valid_for_product', function ($valid, $product, $coupon, $cart_item) {
    if ( ! $valid ) {
    return $valid;
    }

    $regular = (float) $product->get_regular_price();
    if ($regular <= 0) {
    return $valid; // skip if no regular price to compare
    }

    $current = (float) $product->get_price();

    // If the current price in cart is less than the regular price,
    // that means some bulk/dynamic discount was applied → block coupon.
    if ( $current > 0 && $current + 0.0001 < $regular ) {
    return false;
    }

    return $valid;
    }, 10, 4);
    Thread Starter lbmaqes

    (@lbmaqes)

    It works now 🙂

    Thank you very much! Have the ✨bestsest day✨

    Thread Starter lbmaqes

    (@lbmaqes)

    Thank you for your quick reply.

    The translations are now working, but the “pcs for” is still not translating.

    The button now says “Få 10 pcs for 20.00 /pr stk”

    This is how my translations are setup. It should be “stk for”

    Get – Få
    pcs for – stk for
    Per Piece – /pr stk
    Per Quantity – /pr stk

    Thread Starter lbmaqes

    (@lbmaqes)

    Hi. Yeah I expected you to say that. I dont want to do that as the TI wishlist shows the number of people that added the product to their wishlist. Which serves as social proving – I guess an idea for your plugin as well 🙂

    I will try to fix it somehow, thanks for your time <3

    Thread Starter lbmaqes

    (@lbmaqes)

    Hi again 🙂
    I’ve tried disabling all plugins and all code snippets, but with no change. We are currently working on a staging website as we are building a new one. So the home directory is .com/new. We have one other plugin that does not work because of that. Could that be the problem here as well?
    – Together with loading of the backend and saving changes – On the sold out product page – the button for subscribing does not work either. Like i fill it in and nothing happens when I click subscribe.
    Front-end example

    Thanks 🙂

    Thread Starter lbmaqes

    (@lbmaqes)

    Hi. Thank you for the reply. I know about that but we have over 700 products and 4 domains. Is there a way to do it automated through JavaScript conditions for example?

Viewing 7 replies - 1 through 7 (of 7 total)