391 questions
0
votes
1
answer
109
views
How to attach Stripe customer to Payment Intent in WooCommerce Blocks for delayed capture?
I need to hold a Stripe charge and capture it later (only when a customer keeps the product).
In WooCommerce shortcodes checkout, Stripe attaches the customer to the Payment Intent, so later capture ...
1
vote
1
answer
58
views
WooCommerce Subscription Price String Duplication issue
I am developing a site that is using YayCurrency to allow USD and CAD purchases, but the plugin is duplicating the subscription pricing string. I've been able to hide the duplication in a couple areas ...
1
vote
1
answer
314
views
How to Change Payment Retry Rules for Woocommerce Subscriptions?
I am looking to change the payment retry rules.
I’m following the guide on https://woocommerce.com/document/subscriptions/develop/failed-payment-retry/
I’ve found the file wp-content/plugins/...
2
votes
2
answers
170
views
How to check if current order is a switch order or a parent order in a subscription?
I have a few lines of code that look through an order and perform an action IF the order includes a particular subscription product (id 12496) and the total is more than 0.
function get_product_data( $...
1
vote
1
answer
121
views
How add a custom html class to WooCommerce loop add to cart link?
We want to add a CSS class to some specific buttons, by adding to some existing PHP.
This is our existing PHP - which changes the button text. [gleaned from elsewhere in StackOverFlow]
/**
* @...
2
votes
0
answers
50
views
How to send effectively a list of WooCommerce Member emails to an external API endpoint?
I am using WooCommerce Subscriptions. I've recently been experimenting trying to send my Active, Pending Cancellation, and Complementary WooCommerce Members to an external API endpoint with one of our ...
1
vote
1
answer
304
views
Assign a Custom User Role Upon WooCommerce Subscription Activation
In WooCommerce, I need to automatically assign a custom role ("Active Production Company") to users upon their subscription becoming active. The role assignment will allow only active ...
0
votes
1
answer
153
views
WooCommerce Subscriptions custom shortcode for recurring totals
I need a shortcode to display the monthly recurring totals for a WooCommerce subscription order. After checkout, I'm requiring a customer to sign a lease for the rental order they just placed and need ...
0
votes
1
answer
77
views
Woo Subscription fails because class definition Stripe is loaded after unserialize()
I'm getting this error on WooCommerce:
An error has occurred while processing recent subscription related events. For steps on how to fix the affected subscriptions and to learn more about the ...
0
votes
0
answers
60
views
How to override a specific condition inside filter "woocommerce_add_to_cart_validation"
I am using WooCommerce subscription and Mollie Payments for WooCommerce plugin.
It supports multiple subscription product to be purchased on a single checkout process, however when user tries to do a ...
1
vote
1
answer
141
views
When Resubscribing, add a simple product in WooCommerce Subscriptions
I am using WooCommerce Subscriptions plugin
I have a Subscription product that is linked to a WooCommerce simple product with custom pricing as a package to customer.
During Subscription renewal, I ...
0
votes
1
answer
408
views
Limit WooCommerce Subscriptions to just active or pending-cancel on My Subscriptions page
I have WooCommerce with WooCommerce Subscriptions. When users go to the My Account → My Subscriptions page they normally see a full list of all of their subscriptions, active or not.
I would like to ...
1
vote
1
answer
285
views
Hide Cancel WooCommerce Subscription button on user dashboard
I am working on a project that uses WooCommerce and the All Products for WooCommerce Subscription plugin, allowing our users to sign up for a subscription and get a discount. We would like to set up ...
1
vote
1
answer
250
views
Display a notice in WooCommerce checkout if a subscription item is in cart for an active subscriber
I have subscriptions on my WooCommerce site. I created a functionality that, if there is an active subscription, rewrites it to a new one upon purchase:
add_action( 'woocommerce_thankyou', '...
1
vote
0
answers
101
views
updated php from 7.4 to 8.2 and woocommerce-autoship-authorize-net-payments doesnt work now
when i updated the php from 7.4 to 8.2 i tried to access my site and do a checkout but it failed showing the error mentioned below.
I am using woocommerce-autoship-authorize-net-payments plugin for ...
0
votes
2
answers
545
views
Woocommerce Subscription Cancellation (Send customer email)
Woocommerce subscriptions by default doesn't send subscription cancellation to the customer so I'm trying to add that by using woocommerce_subscription_status_pending-cancelHook and the function is ...
0
votes
1
answer
106
views
Fixed dates for woocommerce subscriptions
I am trying to solve the following problem:
We are using woocommerce subscriptions to sell offline courses. The course duration is 6 months. Woocommerce subscriptions can only be configured to deduct ...
0
votes
0
answers
62
views
Woocommerce / Yith / ACF - code shows ACF field but only default text
SOLUTION at END!
We sell meal box subscriptions, "Culture Boxes".
The actual Culture Boxes are individual products, one sent each month to everyone.
Using Woocommerce Subscriptions, Yith ...
0
votes
0
answers
67
views
Deactivate subscription specific variation - Woocommerce + All Products for Woo Subscriptions
I'm using Woocommerce + All Products for Woo Subscriptions to sell subscriptions.
Some of my products are variable (Attribute : Conditionnement) :
1 => Echantillon
2 => 100g
3 => 200g
4 =>...
0
votes
1
answer
837
views
Woocommerce subscription renewal randomly not attempting payment processing, regardless of gateway
We have a WooCommerce store that offers cart level subscriptions. We currently have around 250 subscriptions, and we only process subscriptions on Thursday mornings at 00:00. Over time it seems that ...
1
vote
1
answer
106
views
Woocommerce Checkout - list cart contents but only from a specific category, plus show first product to be delivered
We sell meal box subscriptions, "Culture Boxes". Customers can also buy once-off, single boxes. It is possible to have both a subscription and multiple single boxes in the same cart.
At ...
1
vote
1
answer
134
views
Change the table dates from My Account View Subscription in WooCommerce
With WooCommerce Subscription plugin specifically, I am encountering difficulty editing the appearance of the "my-account/view-subscription" page. I need to remove the line displaying the &...
0
votes
0
answers
280
views
WooCommerce REST API - 403 "This order is still being processed."
I try to get past orders (December) from WooCommerce. From 80.000 transaction I have about a 200 transactions that are not included in the /orders response, but show up in the Admin Dashboard. When I ...
2
votes
1
answer
312
views
Get and check WooCommerce user subscription end date
How i can display end date subscribe for user ?
I have id user and i need date for end subscribe
I try use $WC_Subscription and wcs_get_users_subscriptions($user_id) but this method throws an error.
...
1
vote
1
answer
871
views
Programmatically change WooCommerce subscriptions payment method
while adding a new card , if user click particular card to make it "as default" all subscriptions from other cards should be moved to selected card. All of my logic is working fine.
$...
1
vote
1
answer
348
views
How to add new columns with meta data to WooCommerce subscriptions table on my-account/subscriptions/ page
I'm trying to add new columns to WooCommerce subscriptions table displayed to users on ..my-account/subscriptions/ page. I was able to do it for the orders page ..my-account/orders/ however for some ...
1
vote
1
answer
70
views
Show total count of expired WooCommerce subscriptions on custom admin page
I am using WooCommerce Subscription and I want to count all expired subscriptions then output that in a column of custom plugin's page in WordPress admin panel. This is what I have so far. But it does ...
1
vote
0
answers
54
views
how to create woocommerce subscription for 5$ price using wordpress subscription plugin without creating the product
how to create woocommerce subscription for 5$ price using wordpress subscription plugin without creating the product. the price can be passed to that page using shortcode
already [woocommerce_checkout]...
0
votes
0
answers
126
views
Hide WooCommerce Subscriptions 'cancel' button for 11 months on a rolling cycle
I am trying to show/hide the 'Cancel' button within the subscription details in 'My Account', based on the subscription start date. The way it should run is the button should not be visible for 11 ...
1
vote
0
answers
84
views
error_log() PHP function is not working in the context of WooCommerce > Status > Scheduled Actions
Subscription action reference https://woocommerce.com/document/subscriptions/develop/action-reference/ shows woocommerce_subscription_payment_complete should be running on both new orders and renewal ...
-2
votes
1
answer
84
views
WooCommerce: How to disable redirect, if the table is empty so as to keep an empty table
I am quite new to Woocommerce, however i do find the plugin very interesting, one thing that i would like to know is:
When on cart-page, if you were to empty the table via:
WC()->cart->...
1
vote
1
answer
83
views
Woocommerce Subscriptions: User cancels product 76 subscription, then cancels all other Woocommerce subscriptions
add_action('woocommerce_subscription_status_updated', 'custom_subscription_status_change', 10, 3);
function custom_subscription_status_change($subscription_id, $new_status, $old_status) {
// ...
0
votes
1
answer
75
views
Change WooCommerce Subscriptions price strings
I have been able to translate most things on the site with the code below, but not for 3 fields.
"USD"
"/Month"
"/Month for 1 Month For".
I would like to make that say ...
0
votes
0
answers
56
views
Struggling with making a plugin extension for woocommerce subscriptions
I am trying to create a product calendar for my WordPress + WooCommerce e-shop. Every month the user will receive a product of his choice based on his product calendar, where he can choose products. ...
1
vote
1
answer
1k
views
WC session custom data is cleared after user login in WooCommerce
I have a code (big thanks to LoicTheAztec) I use for passing variables from the url to the woocommerce session and it works great for orders where the visitor does not need to log in (guest checkout)
...
0
votes
2
answers
450
views
Hide a shipping method when a subscription is in cart in WooCommerce
I have enabled WooCommerce Subscriptions plugin in My WooCommerce shop.
Following Set the shipping method in WooCommerce Subscriptions renewal orders answer code to my previous question, I would like ...
2
votes
1
answer
774
views
Set the shipping method in WooCommerce Subscriptions renewal orders
When a user buys a product with the recurrent option which create an order each month, there is no shipping methods set. Only the parent order has the shipping method, and all child orders doesn't ...
1
vote
1
answer
120
views
COD payment with WooCommerce Subscriptions renewals: Customize order status
I am trying to use Cash on Delivery payment method with WooCommerce Subscriptions. But on renewal the order gets the status "Pending payment" (and the subscription goes "on-hold) I ...
1
vote
2
answers
244
views
Add BCC recipient to Completed Renewal Order notification in WooCommerce Subscriptions
I am trying to add a BCC recipient to a specific type of mail sent by WooCommerce. This concerns the customers that receive a renewal mail. The type of the mail is 'Completed Renewal Order'.
I am ...
2
votes
1
answer
226
views
Change in single product page WooCommerce subscription price string
In WooCommerce, I am using WooCommerce subscriptions plugin, and I'm trying to replace from the subscription price string the text "every 3 days" with "Twice a Week" in single ...
-2
votes
1
answer
102
views
Troubleshooting Payment Generation Issue with WooCommerce Subscription Plugin
I added the WooCommerce subscription plugin to my WordPress about 20 days ago. It was working fine until Friday, but when it was Monday, I tried to generate a subscription payment using Asaas. However,...
0
votes
2
answers
314
views
Disable renewal process after automatic retries failed
I am using woocommerece subscriptions plugin but i am facing a problem, I need to disable the renewal process when all of my retry rules fail, I need to do this because the plugin has a default ...
0
votes
0
answers
44
views
Changing checkout data for next order subscription woocommerce
I have 3 custom fields that I created in the Woocommerce store checkout for a particular subscription product. I was trying to create a form (on the account page) that users can use to change these 3 ...
0
votes
1
answer
718
views
Ensure that all Manual Renewal orders with WooCommerce Subscriptions & WooCommerce Payments are automatically 'Completed'
I've built a website using WooCommerce Subscriptions, which uses WooCommerce Payments as the payment gateway. Users have the options to subscribe on either a monthly or an annual basis. All ...
0
votes
2
answers
201
views
Woo subscriptions - Request not working get_posts()
My idea is to get all active (status - wc-active) subscriptions.
// Get all active subscriptions
$active_subscriptions = get_posts( array(
'post_type' => '...
0
votes
1
answer
222
views
Trigger email when credit card information updated by the customer - WooCommerce Subscription
I'm using WooCommerce Subscription on my website.
I have a page where the customers can see their subscription information and have option to update their payment information like credit card ...
0
votes
1
answer
428
views
Woocommerce subscriptions Custom Billing Interval - out of date code
I'm trying to set it so that the billing interval is every 9 weeks - I've found this code online, taken from the official Woocommerce subscriptions documentation and added it to my Wordpress snippets ...
-1
votes
1
answer
250
views
Woocommerce / Mandrill setting up
There will be dozens of stupid questions like "where should I put this code", sorry.
First of all, letting you know that I have almost zero knowledge about PHP (I know my problem could be ...
1
vote
1
answer
204
views
How to save payment through cards on PayPal? PayPal Subscription is not working because payment card is not saving in vault
It's enabled here but subscription renewal is not working and when user pay it's set to manual renewal instead automatic
https://i.sstatic.net/hq4yA.png
1
vote
1
answer
221
views
WooCommerce Subscription add order note when end date is changed
I try to add an order note on a subscription when the end date is changed. This is my current snippet. It does not add an order note.
I have the info for the values etc. from the official WooCommerce ...