Question about product bundles (on zero)

Top WooCommerce & WordPress Plugins Forums Product XML Feeds for WooCommerce Question about product bundles (on zero)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #105892
    endre
    Participant

    Hi Omar,

    I am using Product Bundles by WooCommerce plugin from woocommerce.com and the price shown in XML feeds for bundle products (product_type = “bundle”) is always zero.
    [alg_product_price] = 0
    [alg_product_regular_price] = 0

    I have tried to get the price other ways and have found this:
    [alg_product_function function="get_price"] = 0
    [alg_product_meta name="_price"] gives the correct price.

    My question is: is there a way to set a fallback method to get product price if [alg_product_price] returns zero?

    I mean with an attribute “on_zero” like “on_empty”:

    [alg_product_price on_zero="{alg_product_meta name='_price'}" on_zero_apply_shortcodes="yes"]

    Thank you for your help.

    Best regards,
    Endre

    #105893
    WPWhale
    Moderator

    Hi Endre,

    I’m working on an updated version of the plugin to make this works for you, will let you know when it’s released.

    Omar

    #105894
    WPWhale
    Moderator

    Hi Endre,

    Thanks for waiting on this.

    Can you please update to 2.4.1 (just released) and then try this:

    [alg_product_sale_price on_zero="{alg_product_meta name='_regular_price'}" on_zero_apply_shortcodes="yes"]

    Hope this gets you the result you want, let me know please how it goes.

    Omar

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.