woocommerce-subscriptions

Add or replace a variation fields into a WYSIWYG editor field in Woocommerce

╄→尐↘猪︶ㄣ 提交于 2021-02-07 10:45:24
问题 I'm trying to figure out how I can turn a Woocommerce Variation Subscription product text field into a WYSIWYG editor. How it looks now: As you can see I put code into that field to updates its appearance, but that isn't going to work for my client who knows no code. How can I add a text editor to this field? 回答1: It's not possible to replace the variation description, but it can be hidden (in case of need). It's possible to add a WYSIWYG editor to Woocommerce variations. But it will not work

Display product image on Woocommerce My Account Downloads section

…衆ロ難τιáo~ 提交于 2020-12-12 08:26:31
问题 I’ve got a problem that I can’t seem to figure out. I’m trying to add the product image to each item in the my-account/downloads/ section. I have tried multiple codes that I found but none seem to work for me. I am using 3 plugins with all other plugins disabled trying to figure this out. These 3 plugins are required, so I need this to work with all 3 of these plugins activated. The 3 plugins are: Woocommerce Memberships Woocommerce Subscriptions Woocommerce Subscriptions Downloads All my

Display product image on Woocommerce My Account Downloads section

萝らか妹 提交于 2020-12-12 08:26:16
问题 I’ve got a problem that I can’t seem to figure out. I’m trying to add the product image to each item in the my-account/downloads/ section. I have tried multiple codes that I found but none seem to work for me. I am using 3 plugins with all other plugins disabled trying to figure this out. These 3 plugins are required, so I need this to work with all 3 of these plugins activated. The 3 plugins are: Woocommerce Memberships Woocommerce Subscriptions Woocommerce Subscriptions Downloads All my

How to get Order Details from a WC_Subscription instance Object

≡放荡痞女 提交于 2020-07-31 05:48:57
问题 This one for completed initial subscription payments and subscription renewals. function payment_made($subscription){ // How do I get the order details? } add_action("woocommerce_subscription_payment_complete", "payment_made"); And this one for when a status is changed, so I can handle manual and system changes either manual overrides or failed/pending/active/whatever status based of payments or switches. function status_update($subscription, $old_status, $new_status){ // How do I get the

How to get Order Details from a WC_Subscription instance Object

非 Y 不嫁゛ 提交于 2020-07-31 05:48:50
问题 This one for completed initial subscription payments and subscription renewals. function payment_made($subscription){ // How do I get the order details? } add_action("woocommerce_subscription_payment_complete", "payment_made"); And this one for when a status is changed, so I can handle manual and system changes either manual overrides or failed/pending/active/whatever status based of payments or switches. function status_update($subscription, $old_status, $new_status){ // How do I get the

How to get the Product ID from a WC_Subscription instance Object

雨燕双飞 提交于 2020-07-23 05:47:08
问题 This one for completed initial subscription payments and subscription renewals. function payment_made($subscription){ // How do I get the Product ID from subscription? (Definitely need this) } add_action("woocommerce_subscription_payment_complete", "payment_made"); And this one for when a status is changed, so I can handle manual and system changes either manual overrides or failed/pending/active/whatever status based of payments or switches. function status_update($subscription, $old_status,

How to get the Product ID from a WC_Subscription instance Object

北城以北 提交于 2020-07-23 05:46:09
问题 This one for completed initial subscription payments and subscription renewals. function payment_made($subscription){ // How do I get the Product ID from subscription? (Definitely need this) } add_action("woocommerce_subscription_payment_complete", "payment_made"); And this one for when a status is changed, so I can handle manual and system changes either manual overrides or failed/pending/active/whatever status based of payments or switches. function status_update($subscription, $old_status,

How to get the Product ID from a WC_Subscription instance Object

心已入冬 提交于 2020-07-23 05:45:19
问题 This one for completed initial subscription payments and subscription renewals. function payment_made($subscription){ // How do I get the Product ID from subscription? (Definitely need this) } add_action("woocommerce_subscription_payment_complete", "payment_made"); And this one for when a status is changed, so I can handle manual and system changes either manual overrides or failed/pending/active/whatever status based of payments or switches. function status_update($subscription, $old_status,

Change cart items subscription properties values before checkout

≡放荡痞女 提交于 2020-03-23 06:24:06
问题 This may be a noob question so apologies in advance. I have variable subscription products whose price varies by subscription length. I also have simple subscriptions that have a subscription_length = 0. When the cart contains both types, Woocommerce subscriptions creates two subscriptions. I am trying to modify the subscription_length metadata of all the items in the cart to match the longest length in the cart so only one subscription will be created. I just can't seem to find right way to

WooCommerce Subscriptions - Get related orders Ids for a specific subscription

半城伤御伤魂 提交于 2020-01-21 10:57:11
问题 Is there woocommerce function that will return me all related orders (at least the order ID) for the specific subscription that user has bough? I have found in this official documentation Subscription Function & Property Reference: WC_Subscription::get_related_orders( $return_fields, $order_type ); But this does not seem to be for specific subscription? When ever I try to run it I get a fatal error no mater what I pass in: Fatal error: Uncaught Error: Using $this when not in object context in