Questions tagged [hook-woocommerce]
Use this tag for questions related to WooCommerce hooks. Hooks essentially allow you to change or add code without editing core files. They are used extensively throughout WordPress and WooCommerce and are very useful for developers.
hook-woocommerce
3,342
questions
0
votes
0
answers
12
views
sending sms to dokan vendors on order processing status [duplicate]
This snippet hooks into the WooCommerce order status change event and sends an SMS to each vendor associated with the products in the order. The SMS will notify the vendor of the new order and prompt ...
-7
votes
0
answers
29
views
How to change the product name on WooCommerce payment page
I want a way to change the product name on WooCommerce payment page, for some specific products.
I searched and found several answers, like Change the cart item name for product variations in ...
0
votes
1
answer
25
views
Override Analytics/Order Woocommerce Attribution?
The main objective is to add a list after those infos (net sale, clients, orders, products, items sold) with the "attribution" and the sum ($) of each attribution.
I must take the ...
0
votes
0
answers
28
views
WooCommerce default address fields customization [duplicate]
I customized Woocomerce's default address fields. I selected the Address1 and City fields.
Fields save data seamlessly. When the first page is loaded in the My Account>Address>Address edit, ...
1
vote
1
answer
26
views
Order save hook user permissions check for WooCommerce HPOS
Before HPOS the order save hook can be checked this way:
<?php
use Automattic\WooCommerce\Utilities\OrderUtil;
add_action('save_post', 'my_save_wc_order_other_fields', 20, 1);
function ...
-1
votes
0
answers
19
views
Wordpress plugin WooCommerce hook [duplicate]
Im making a wordpress plugin that works with WooCommerce and theres a feature im making than makes me need to know if an user is on the checkout page but i dont really know whats the hook or function ...
0
votes
0
answers
36
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 ...
0
votes
0
answers
30
views
How do I conditionally stop woocommerce from saving shipping/billing addresses
I'm trying to write an Address book plugin that will allow users to add multiple shipping & billing addresses to their account so they can choose an address at checkout. I need to stop woocommerce ...
1
vote
2
answers
55
views
Add multiple suffixes to WooCommerce displayed product prices
I have been trying to find a way to add a different suffix to both my retail prices and sales prices. I am going to be selling stone and I want my product page to display the following.....
$12.99 /...
0
votes
1
answer
17
views
Woocommerce add an `aria-label` to the product loop item link anchor tag
I am using WooCommerce and want to add an aria-label to the product loop item link anchor tag. Like:
<a href="http://localhost/shop/the-poets-philosophy/"
class="woocommerce-...
-1
votes
0
answers
41
views
Woocomerce My account > Orders, cannot filter orders from post metadata
I tried using woocommerce_my_account_my_orders_query filter hook to filter orders from post metadata in My account > Orders.
This is my code:
function custom_order_query_args($query_args) {
$...
-2
votes
0
answers
19
views
WCFM main order status update to pending payment only when all vendor oders are updated to a packed
In wcfm market place i want WCFM main order status update to pending payment only when all vendor oders are updated to a packed.Currently there is order sync option .But this updates the main order ...
0
votes
1
answer
41
views
Using woocommerce_loaded hook after data migration to fix variations
We have just mirigated nearly 6k products over from the live site. We are experiencing similar issues to the following post: Woocommerce: function to update all products. I've tried the fix mentioned ...
-1
votes
1
answer
30
views
Move reviews below the upsell and cross-sell section in Woocommerce [closed]
I am working with woocommerce plugin. I currently have product virtual reviews using Faview plugin, and then it's related products, complete the set and you may also like section in product detail ...
0
votes
0
answers
33
views
Remove notice only for Composite Products in Woocommerce
I would like to only get a 'Product is removed' for the product type 'Composite Product'. Currently, when I would remove a composite product in WooCommerce, it will display a notice for all child ...