Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3588677
Incorrect price display when using Extra Product Options
Open

Comments

  • Stefan started the conversation

    Hello,

    I've recently bought "WPC Frequently Bought Together" and wish to use it on my site.

    On my site I also use "Extra Product Options & Add-Ons for WooCommerce" (by theme complete) - https://codecanyon.net/item/woocommerce-extra-product-options/7908619

    This plugin also changes the display for Final price and calculates price when you change quantity. 

    I want the price to change when I add products from "FBT" so I use the custom selector from the settings and I have it set to ".price.amount.final" so it changes the Final price from Extra Product.

    The problem is that Final price is no longer updated when I change quantity, unless I have an addition product from FBT selected. You can test it here: https://kitlumanari.ro/shop/recipient-lumanari-sticla-315ml-galben-mat/

    If you change quantity, notice that final price doesn't update. If you select an additional product from FBT and then change quantity, notice that the final price now changes. 

    I need the final price to also update even if the FBT products are not selected. Other than that the plugin works perfectly. 


    Thank you! 

  • Stefan replied

    It seems that remove "&& Count > 0" from here fixes the issue.


      // change the main price
      if ((woobt_vars.change_price !== 'no') && (atc_button !== 'separate')) {
        if (parseInt($products.attr('data-product-id')) > 0 && count > 0) 
          $price.html(
              woobt_price_html(total_ori_regular, total_ori) + ori_price_suffix);
        } else {
          $price.html($products.attr('data-product-price-html'));
        }
      }

    I think that count does not increment unless a FBT product is selected. So it doesn't count the main product if a FBT is not selected.

  •  767
    Janilyn replied

    Hi Stefan,

    Thank you for contacting WPClever Support Forum. We have received your feedback.

    I have sent the information to our developers so that they can investigate and make adjustments in the future update of our plugin if needed.

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent