Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1120
    Gerard
    Participant

    Hi, I have a website that sells personalised greeting cards. You buy these cards in multiples ranging from 10 to 200. I want to have a coupon that adds 25 free cards on every order of cards 50 and over. This applies to all of the products. Can I do this with your plugin? I have purchased the PRO version but I am not sure if I can do this. Your help would be appreciated. Thanks – Gerard

    #1125
    Soft79
    Keymaster

    Hi Gerard,

    You can use the wjecf_bogo_product_amount_for_coupon filter for that. Please enable multiplication of the coupon, set min amount of matching products to 50, enable BOGO for the cards and use a snippet similar to this:

    add_filter( 'wjecf_bogo_product_amount_for_coupon',
    'wjecf_bogo_product_amount_for_coupon', 10, 2 );
    
    function wjecf_bogo_product_amount_for_coupon( $amount, $coupon ) { 
      if ( $coupon->code == 'COUPON_CODE_HERE' ) { 
        $amount *= 25;
      } 
      return $amount; 
    } 
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.