• Resolved semplicewebsite

    (@semplicewebsite)


    Good evening, I have a problem that I can’t solve in any way. I have a variable product that has 3 attributes: Size, Color and Fragrance. Only the first variant determines the price or size. If all other variants are combined with the size, the price does not change. My problem is this: since the price change is only shown if you select all the variants first, I would like the price change to be shown immediately when the first variant that determines the price changes without necessarily having to select the other variants. This is because the customer could get confused if by selecting the different size the price does not vary. Obviously if I enter the size as the last variant I would bypass the problem but it is not a correct order of the variants.

    Thank u in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • Can you give us a website so we can check ourself?

    Are you able to add any custom code? For example, ChatGTP did come up with jQuery example,

    $(document).ready(function() {

    $('#size-dropdown').change(function() {

    // Update price based on the selected size
    var selectedSize = $(this).val();

    // Perform logic to update the price // ...

    // Update the displayed price on the page
    $('#price-display').text('New Price: $' + calculatedPrice); });
    });

    Replace #size-dropdown and #price-display with the actual IDs or classes of your Size dropdown and price display elements.

    Thread Starter semplicewebsite

    (@semplicewebsite)

    A me occorre una soluzione globale per ogni singolo prodotto… chatGPT non aiuta

    If you can share your website, I can check the HTML structure and see if I can come up with an example. Please share multiple products URLs so I check if they have the same pricing HTML structure.

    Thread Starter semplicewebsite

    (@semplicewebsite)

    if you want I can share it in private…

    Sorry, this is against the rules. Next possible solution is that you find a developer who can create a custom code for you.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @semplicewebsite,

    By default, WooCommerce will only show the price change when all variants have been selected. However, you can achieve your desired functionality with the help of custom code or additional plugins like the WooCommerce Dynamic Pricing & Discounts plugin.

    This plugin enables you to set pricing rules based on product attributes, which should solve your issue. However, if you’re looking for a more perfect solution, you can seek help from the following:

    I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Price of First variation’ is closed to new replies.