• This topic has 2 replies, 2 voices, and was last updated 6 years ago by marc.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3097
    marc
    Participant

    Hi there, i wish to achieve this function:

    – When customer buys product A, they can only choose free gift for Product X Only

    – When customer buys product B, they can only choose free gift for Product Y Only

    Currently, when they buy product A, they can choose Product X & Y, how do i limit the free gift ?

    please help, thank you
    Marcus

    #3102
    Soft79
    Keymaster

    Using PHP you can use the filter woocommerce_coupon_get__wjecf_free_product_ids to change the free product ids according to the cart contents.

    #3103
    marc
    Participant

    hi thanks for the reply,

    i have no idea how to do that though, do you have step by step instructions?
    or a video ?

    thank you

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