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

Okay
  Public Ticket #3426426
(Feature request) Different component has different nutritional values. Nutritional values will add up when different components is selected
Closed

Comments

  • Soh K.T started the conversation

    Hello to the WPC team, 

    Appreciate the plugins, it has been flawless. However, I would like to explore the possibility on how to implement a feature where in the composite product page, different component has different nutritional values and nutritional values will add up when different components is selected and the total nutrition values will be displayed in a small section inside the composite product page and calculated in real time when the customer changes the qty.

    Here is already an established website that uses this exact feature that i described: https://tsquaredeats.com/products/custom

    For example:

    Almonds. Fats 10, fiber 15

    Cashew. Fats 5, fiber 10

    Walnuts. Fat 3, fiber 5 

    (Each ingredients has their own unique nutrition values)


    As an example flow, customer selects:

    Almonds x1, Cashews x1 >

    (Displayed in a section) Nutrition values: Fats 20, fiber 25 >

    Add to cart

    Another example if customer selects:

    Almonds x3, Walnuts x1

    (Displayed in a section) Nutrition values: Fats 33, fiber 50 >

    Add to cart


    Thank you WPC team again for the plugins! Hope to hear from you soon if is it possible to implement as such.

  •  767
    Janilyn replied

    Hi Soh K.T,

    Thanks for contacting us here and for your interest in our plugin.

    For your information, our plugin doesn't support conditional logic between components of a smart composite like that. All components are independent of each other so it's impossible to calculate the total values like that with our plugin, unfortunately. 

    Best regards.

    Janilyn T. - WPClever Support Agent