• Resolved tejasrinivasvk

    (@tejasrinivasvk)


    The price displayed is not changing according to the variation selected.

    However, there are nuances:

    1. The price displayed changes in its mother site: https://woo-sensationally-blue-lollapalooza.wpcomstaging.com/

    2. It shows “From X” even after the variation is selected. For now, I removed “From” Prefix Using your Plugin

    3. On this site, (gofroots.in) the single product page, price is displayed twice

    Kindly help me fix this issue.

    More info that might be useful:
    LiteSpeed cache is activated on gofroots.in.

    I think it also Minifies JS, CSS Etc. But it also gives option to exclude certain classes. The two Screenshots:
    (https://drive.google.com/file/d/1w040HGmp-1Iv9X-fUkQk-SHl52eropNf/view?usp=sharing ; https://drive.google.com/file/d/1N4218sjgDzyQRSiI6jfRvWu03KQnOGO0/view?usp=sharing ). However, I don’t think this might be an issue as for admin view of site, all optimizations are disabled but the variation price isn’t being changed even from the admin view of the site.

    I make sure to flush all caches for every single change I make to the website, including settings in any plugin.

    I entered exactly this wrapper based on the support threads here (Please check if I have kept the Comma in the correct place):

    .product.product-type-variable .col-inner, .product

    It still isn’t working.

    Kindly give me your email so that I can send my admin access.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter tejasrinivasvk

    (@tejasrinivasvk)

    More information:

    4. It is working inside a single product page somehow (It didn’t work previously). But still, the price is being shown twice.

    5. After using this code snippet, for some reason it is showing the price correctly too, at only one place on the single product page, but it isn’t working at Shop/Home/Search/Category Pages. This is still working on all places on the mother site: https://woo-sensationally-blue-lollapalooza.wpcomstaging.com/

    Code snippet:

    add_action( 'woocommerce_variable_add_to_cart', 'bbloomer_update_price_with_variation_price');
    
    functionbbloomer_update_price_with_variation_price() {
    
       global$product;
    
       $price= $product->get_price_html();
    
       wc_enqueue_js( "    
    
          $(document).on('found_variation', 'form.cart', function( event, variation ) {  
    
             if(variation.price_html) $('.summary > p.price').html(variation.price_html);
    
             $('.woocommerce-variation-price').hide();
    
          });
    
          $(document).on('hide_variation', 'form.cart', function( event, variation ) {  
    
             $('.summary > p.price').html('" . $price . "');
    
          });
    
       " );
    
    }

    More Important Info:

    The mother site uses Amulet Theme while gofroots.in uses twenty-twenty-four theme.

    I don’t think CSS/JS Minify etc might be an issue since I have deactivated the plugin now, but the variation price is still not working.

    Plugin Author WPXtension

    (@wpxteam)

    Hi,

    I hope you are doing well today.

    Please remove all the snippets(variation price-related) you are using on your site to avoid any unexpected behavior.

    Unfortunately, changing the variation price on the shop/archive page is not a feature of our plugin. Our plugin is intended to work on the single product page after the variation is changed. However, it will display the From prefix on the shop/archive page.

    Here is our support link: https://wpxtension.com/support-ticket/

    Best Regards

    Thread Starter tejasrinivasvk

    (@tejasrinivasvk)

    Thanks for the response – Kindly notice this:
    My website shows the Product variation dropdown even on the Home/Archive and all other pages.

    The Price displayed changes according to the Variation selected on its mother site on all pages due to your plugin. Mother site link: ?https://woo-sensationally-blue-lollapalooza.wpcomstaging.com/. The only difference is the theme, The Mother site uses a paid Amulet Theme, while gofroots.in uses a free twenty-twenty-four theme.

    I have a feeling that adding the correct wrappers would help. Kindly also tell me where exactly to put the commas. Please help.

    Status as of now:

    Scenario 1:

    Without changing anything, with these settings:
    https://drive.google.com/file/d/1Hr30DCla8im4dbh7WL1JoFjIYZ2-j7jN/view?usp=sharing

    It shows a single price on the single product page, which dynamically changes according to the variation selected, but the price doesn’t change on all other pages even when the Variation dropdown selection is changed.

    Scenario 2:
    With both of these:

    .product.product-type-variable .entry-summary

    Added to product wrapper and this:

    .product.product-type-variable .upsells .price

    Added to price class, its not working even on the single product page – I mean One price (the second one) is changing, but the upper one which generally shows the price range, is showing only the minimum price now which doesn’t change according to the variation selected.

    Scenario 3:

    With only this added to the product wrapper:


    .product.product-type-variable .upsells .price

    Results same as scenario 1, It shows a single price on the single product page, which dynamically changes according to the variation selected, but the price doesn’t change on all other pages even when the Variation dropdown selection is changed.

    Scenario 4:

    Even Just this on product wrapper:

    .product

    & this on price class

    .product.product-type-variable .upsells .price

    is not working.

    Scenario 5:

    .product.product-type-variable .col-inner

    This to product wrapper is also not working.

    Kindly help. Share your email address so I can send you my admin details if needed.

    Thread Starter tejasrinivasvk

    (@tejasrinivasvk)

    its actually working now for some mysterious reason – I think JS & CSS minify created an issue.

    Plugin Author WPXtension

    (@wpxteam)

    Hi,

    I hope that you are doing great. I am glad that the issue is resolved.

    If you allow us, we would love to change the status of this ticket to resolved.

    Is there anything else we can help you with?

    Thank you

    Thread Starter tejasrinivasvk

    (@tejasrinivasvk)

    I closed the ticket and marked it resolved. Thank you!

    But now We have a new issue. I am opening it on a separate thread.

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