• Resolved mellow1

    (@cdsigns)


    We have a product set up with an add one, 1 choice. And another add on where multiple can be selected. Both have additional costs. These costs have been provided in the backend. Screenshot-2021-04-07-at-20-04-03

    Only in the add to cart modal / pop up, the extra costs are not showing.

    It does show in the shoppingcart, but the .75 extra you need to pay for Jalapeno pepers, is not visible in modal.

    Can you please help us?
    Screenshot-2021-04-07-at-20-02-54

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    Please provide the website menu page URL where we can check the issues directly.

    Are you using any filter to hide the addons whose price is 0. If so, it could be result of that one. Need to check the condition properly. May be its interpreting 0.75 as 0. We don’t see any other reason behind this issue.

    Let us know.

    Thanks & Regards,
    Team WP Scripts

    Thread Starter mellow1

    (@cdsigns)

    Hi,

    Thank you very much for the fast reply and great support.
    You earlier provided us with a filter to hide free add on-prices.

    You provided this code, which is currently used on that site:

    function f_wfs_popup_addon_price( $price_html, $addon_id, $raw_price) {
    	if( intval( $raw_price ) == 0 ) {
    		echo '';
    	} else {
    		echo $price_html;
    	}
    }
    add_filter( 'wfs_popup_addon_price', 'f_wfs_popup_addon_price', 10, 3 );
    Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    Please replace intval with floatval on 2nd line. That should fix the problem.

    Regards,
    Team WP Scripts

    Thread Starter mellow1

    (@cdsigns)

    Hi,

    This works like a charm, thank you very much!

    Thread Starter mellow1

    (@cdsigns)

    Hi @wpscripts ,

    Unfortunately a new problem occurs if we change the floatval for the intval

    Screenshot-2021-04-10-at-16-43-49

    The prices are doing strange things with the decimals in the cart.
    If we change the code back to intval everything is fine again with the prices in the cart but the 0.75 add on is missing.

    Can you help us out please?

    • This reply was modified 3 years, 11 months ago by mellow1.
    Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    The code we provided is specifically for that particular location (to show the prices in addon). It does not apply to any other place in whole system. Can you please specify what is the error you are facing in cart ?

    Regards,
    Team WP Scripts

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add onn price missing from pop up’ is closed to new replies.