• Resolved saliw

    (@saliw)


    Is there any way to disable the price display in add-ons (and those add-ons in cart)? I know the price field can be left empty, but this still displays (0.00); I’d like no price at all.
    Also, do you have any timescales for the add-ons integration, which would allow an alternative to radio buttons?
    Many thanks.

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

    (@wpscripts)

    Hello,

    Thank you trying out the plugin.

    Hiding the price is there in the plugin yet. But we are thinking to give this option in upcoming version to hide add-ons price and hide list of add-ons in bottom cart. But Woocommerce will show them in the default cart.

    I didn’t get the timescale question, can you please explain a bit.

    Thanks & Regards
    Team WP Scripts

    Thread Starter saliw

    (@saliw)

    Thank you for your response. I wanted some products to have options. For example, say the product is chicken with a choice of flavours (ideally I wanted this as a drop down). The chicken would come with two side orders (from a list) included in price; these could be radio buttons, but with no price against them, even a zero amount. Does that make sense?

    Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    We have added the filters to hide the price for addons. As well as the addons in the cart also can be hidden with the next version.

    But a dropdown can not be added at this moment. All the side orders you can add as radio buttons or checkboxes.

    Thanks & Regards,
    Team WP Scripts

    Thread Starter saliw

    (@saliw)

    Thank you. When do you expect the next version will be released? As far as the dropdowns are concerned, you said in an earlier topic:

    “But, as people are requesting for this, we might reconsider to provide an admin option to use woocommerce dropdowns without converting them to Radio Buttons.”

    Again, any timescales on this?

    Many thanks.

    Plugin Author WP Scripts

    (@wpscripts)

    Hello @saliw

    Next version is planned for this weekend. This version is going to have more number of bug fixes and more filters added to it for various small tweaks, there won’t be any new feature.

    Regarding the Dropdown, it’s not properly analyzed yet. We can definitely check various aspects of this and plan to add it, but i can’t give you a particular date for it yet.

    Sorry for the inconveniences.

    Thanks & Regards,
    Team WP Scripts

    Plugin Author WP Scripts

    (@wpscripts)

    Hello @saliw ,

    With the latest version 1.1.4 you can hide the prices and as well as the addons on cart area.

    To hide the price of 0 amount addons,

    function fs_addon_price_filter( $price, $term_id, $raw_price ) {
    	if ( $raw_price == '0.00' ) {
    		echo '';
    	} else {
    		echo $price;
    	}
    }
    add_filter( 'wfs_popup_addon_price', 'fs_addon_price_filter', 20, 3 ); 

    To hide the price of all addons,

    function fs_addon_price_filter( $price, $term_id, $raw_price ) {
    	echo '';
    }
    add_filter( 'wfs_popup_addon_price', 'fs_addon_price_filter', 20, 3 ); 

    To hide addons on Cart area,
    add_filter( 'wfs_show_cart_addon_items', '__return_false' );

    You need to add these codes to you theme function file.

    Please give us good review if this plugin is helpful to you.

    Thanks & Regards,
    Team WP Scripts

    colorpixels.net

    (@colorpixelsnet)

    HI,

    To hide addons on Cart area (for the price of 0 amount addons),
    add_filter( ‘wfs_show_cart_addon_items’, ‘__return_false’ );

    I added in funcation.php of my child theme, but still, 0 is showing on the cart page.

    Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    This filter is only for the cart area of Food Store plugin that comes on bottom part of the menu page. If you are asking about WooCommerce cart page, it won’t work there.

    Regards,
    Team WP Scripts

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘price display in add-ons’ is closed to new replies.