• Resolved kabarovsky

    (@kabarovsky)


    The plugin adds “FREE” badge in the cart for free added products so I’m wondering if there’s like PHP logic that I can use in my cart template to add some more custom stuff there?

    Like if( free product added by plugin) { do stuff… }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • sangeethasrinivasan

    (@sangeethasrinivasan)

    Hi,

    Thank you for reaching out.

    To check whether the free product is added by Discount Rules for Woocommerce plugin, you can check for the key?wdr_free_product?on cart item array.

    For example:
    if(isset($cart_item['wdr_free_product'])){
    // do your stuff here
    }

    Hope this answers your question.

    Feel free to reach out in case of any further queries.

    Thanks
    Team Flycart

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin related PHP logic in the cart’ is closed to new replies.