botprophet
Forum Replies Created
-
@drazenbebic, what if you just add this to line #74
// This order is a subscription renewal, thus no new key has to be issued if (get_post_meta($orderId, '_subscription_renewal')) { return; }
That would solve the issuing of another key, right?
A renewal is basicly just a new payment on an existing key, although it is a new ORDER, it is not a new Subscription key purchase.I think that should work. The meta_key “_subscription_renewal” does not exist on the original order in the database. I checked and can verify that.
No problem, if you need help let me know where I can find the code in your plugin that issues the coupon and I will try and see if I run a query before it.
I found it, it is actually in table wp_postmeta.
meta_id post_id meta_key meta_value
15733 29840 _subscription_renewal 25894PostID is the new order number, also in your grid, meta_value is the parent subscription issued order.
HTH
I can give you a hint ??
The WooCommerce API meta_data (https://woocommerce.github.io/woocommerce-rest-api-docs/#update-an-order) has a record of it, which is called:
... [meta_data] => Array ( ... [4] => stdClass Object ( [id] => 158733 [key] => _subscription_renewal [value] => 25894 ) ...
If you can find out how to call that (just check for the array key and skip the new license) in your script, you’re half way ??
I’m not sure where that API meta info is stored, I did not see any in the database anywhere so I think it is stored as serialized data somewhere.
If I could hack my way to your great system I would, but you’re way ahead of me buddy. I’m surely open to co-op on it, if you can give pointers as to where I can find it, I’ll try and see if I can do it.
I have given it some more thought and browsed through the code.
I think we need to be able to implement a check to see if a parent order exists, then skip the creation of the new subscription code.
The WC order grid does show if an order is a Renewal. Any hint as to where I could find the code that created the code on a Completed order (or any other status for that matter).
Thanks again.
Forum: Plugins
In reply to: [Plugin Name: ManyChat Widget Planner] ManyChat – Is Messenging encrypted ?Hi Tjeran,
It’s just a plugin to display MAnyChat/Facebook Messenger on your page. I’d like to refer you to the Facebook Messenger Documentation to get more information about their encryption.
A quick search learns it isn’t, yet.
https://www.google.com/search?q=FB+Messenging+system+is+protected- This reply was modified 5 years, 1 month ago by botprophet.