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

Okay
  Public Ticket #3758554
Functionality Question
Open

Comments

  • Diogo Vilaça started the conversation

    Hello,

    We've bought your plugin to add products that can be bought in addition to other product on our website. But we would like to do the following:

    - When changing the quantity of the main product, the additional product also changes to the same quantity. Eg.: If I've added 2 units for the main product and  I want to have the additional product also, it will have to add 2 units. automatically. 

    How can we do that? 

    Thank you!

  •  1,222
    Dustin replied

    Hi Diogo,

    You can enable Sync quantity here:

    5848635145.png

    Best regards,
    Dustin

  • Diogo Vilaça replied

    Hello Dustin!

    Thank you so much!

    But, is it possible to make it default for every product or do I have to enable the option to each one?


    Thank you again!

  •  1,222
    Dustin replied

    Please add the custom code below. (How to add custom code? ↗):

    add_filter( 'woobt_sync_qty', '__return_true' );

    Then, all your products will have "Sync Quantity" enabled, whether you checked this checkbox or not.

    Best regards,
    Dustin

  • Diogo Vilaça replied

    Thank you so much Dustin!

    One last question 😅

    Is it possible to have a popup or some message to ask the user if he really doesn't want to add the additional product if he has only added the main product to cart?

    Thank you!

  •  1,222
    Dustin replied

    Our plugin doesn't have this feature yet.

    You can add a catch-eye message before FBT products using our free plugin: https://wordpress.org/plugins/wpc-smart-messages/. For example:

    9681437962.png

    9285754083.png

    Best regards,
    Dustin