Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › WooCommerce Booking System Compatibility
- This topic has 7 replies, 2 voices, and was last updated 8 years, 10 months ago by Soft79.
- AuthorPosts
- January 3, 2018 at 2:15 pm #2445paulParticipant
I have a client who’s current booking system does not work as expected with this plugin. They wish to add coupons so their clients can receive 1 free child with every full paying adult, e.g. 1 adult 1 child free, 2 adults 2 children free etc.
Is this plugin compatible with the WooCommerce Booking System, in order to achieve the above?
January 3, 2018 at 4:58 pm #2446Soft79KeymasterI have never tested it in combination with any booking plugin. Which one do you use and what problem do you have?
January 4, 2018 at 8:58 am #2447paulParticipantIt’s the Pinpoint Booking System plugin. All works as expected, however this booking system does not show the quantities correctly in the client’s basket. For example when 2 bookings are made it shows 2 bookings, quantity 1, rather than quantity 2. So I cannot apply the coupons as needed, since the coupon only sees 1 booking when there is indeed 2.
January 4, 2018 at 10:56 am #2449Soft79KeymasterHi, I just investigated the source of the free version of Pinpoint a bit. Discount rules like you described are not be possible without custom development.
January 4, 2018 at 11:04 am #2451paulParticipantYes that’s right, which is why I need to know if this Coupon extension will work as expected with WooCommerce Booking System plugin ? Is there a demo of the two together I can see?
January 4, 2018 at 11:08 am #2452Soft79KeymasterNo, but you can download the free version of the plugin here.
The PRO version is the same, but with additional files for the additional functionality. You need good PHP knowledge to achieve what you want. Take a look at class-woocommerce-cart.php of the Pinpoint plugin to get a hint of the cart_item data they use.
January 5, 2018 at 2:43 pm #2461paulParticipantThank you for your help. Is there anyway way I can check the basket includes x2 of product A and x2 of product B before a coupon is applied with this plugin?
January 8, 2018 at 1:21 pm #2468Soft79KeymasterThis snippet shows you how to iterate the cart contents:
$items = WC()->cart->get_cart(); $product_names=array(); foreach($items as $item => $cart_item) { $product = $cart_item['data']; $quantity = $cart_item['quantity']; } - AuthorPosts
- You must be logged in to reply to this topic.