adriannolt
Forum Replies Created
-
Thank you for the quick response. However, I don’t believe that will associate analytics lead source with the contact or add a new lead to Fluent CRM automatically when someone calls.
Hi,
You may find it here: https://pastebin.com/65W1p33c
No, that snippet works the same way. I need to check the “Allow Free Shipping” checkbox in order for the coupon to auto-apply.
Hi,
I pasted the code again and tested. If I enable “Allow Free Shipping” on the coupon, the coupon automatically applies as it should. But without that box checked, it does not apply. (I guess if the free shipping is not applied to other products in the cart, it’s OK to mark a ticket as free shipping, since shipping would not apply to a ticket anyway.) Is that the solution to this, or is there more work to be done before we can mark this as resolved?
Hi, I pasted the above code in my child theme’s functions.php. I cleared cache and did a round of testing, but did not notice any change in behavior. Here is the updated debug code:
{"result":"ok","coupons":{"3926":{"id":3926,"code":"online-ticket","amount":"3","date_created":{"date":"2019-06-12 12:11:49.000000","timezone_type":3,"timezone":"America\/Detroit"},"date_modified":{"date":"2019-07-01 15:34:49.000000","timezone_type":3,"timezone":"America\/Detroit"},"date_expires":null,"discount_type":"booking_person","description":"Online ticket purchase discount","usage_count":0,"individual_use":false,"product_ids":[1662,1658],"excluded_product_ids":[],"usage_limit":0,"usage_limit_per_user":0,"limit_usage_to_x_items":null,"free_shipping":false,"product_categories":[],"excluded_product_categories":[],"exclude_sale_items":false,"minimum_amount":"","maximum_amount":"","email_restrictions":[],"used_by":[],"virtual":false,"meta_data":[{"id":25998,"key":"_wjecf_products_and","value":"no"},{"id":25999,"key":"_wjecf_categories_and","value":"no"},{"id":26001,"key":"_wjecf_is_auto_coupon","value":"yes"},{"id":26002,"key":"_wjecf_apply_silently","value":"no"},{"id":26015,"key":"_wjecf_excluded_customer_roles","value":["shop_manager","scheduler"]}]}}}
Hi, just checking if the above debug code tells you what you need to know?
Does this provide what you need?
{“result”:”ok”,”coupons”:{“3926”:{“id”:3926,”code”:”online-ticket”,”amount”:”3″,”date_created”:{“date”:”2019-06-12 12:11:49.000000″,”timezone_type”:3,”timezone”:”America\/Detroit”},”date_modified”:{“date”:”2019-06-12 12:38:39.000000″,”timezone_type”:3,”timezone”:”America\/Detroit”},”date_expires”:null,”discount_type”:”booking_person”,”description”:”Online ticket purchase discount”,”usage_count”:0,”individual_use”:false,”product_ids”:[1662,1658],”excluded_product_ids”:[],”usage_limit”:0,”usage_limit_per_user”:0,”limit_usage_to_x_items”:null,”free_shipping”:false,”product_categories”:[],”excluded_product_categories”:[],”exclude_sale_items”:false,”minimum_amount”:””,”maximum_amount”:””,”email_restrictions”:[],”used_by”:[],”virtual”:false,”meta_data”:[{“id”:25998,”key”:”_wjecf_products_and”,”value”:”no”},{“id”:25999,”key”:”_wjecf_categories_and”,”value”:”no”},{“id”:26001,”key”:”_wjecf_is_auto_coupon”,”value”:”yes”},{“id”:26002,”key”:”_wjecf_apply_silently”,”value”:”yes”},{“id”:26015,”key”:”_wjecf_excluded_customer_roles”,”value”:[“shop_manager”,”scheduler”]}]}}}