Skip to main content

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
0 votes
0 answers
31 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 ...
ManoharSingh's user avatar
0 votes
0 answers
29 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 ...
thefatshizms's user avatar
1 vote
2 answers
48 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 /...
Stephen Williamson's user avatar
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-...
sariDon's user avatar
  • 7,907
-1 votes
0 answers
40 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) { $...
Trần Trung Thiên's user avatar
-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 ...
Rashida Vc's user avatar
0 votes
1 answer
37 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 ...
user9252's user avatar
  • 133
-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 ...
Tasnim Mostafa's user avatar
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 ...
Danny Hoekstra's user avatar
2 votes
1 answer
47 views

Add order total weight to WooCommerce admin orders list (HPOS compatible)

I used to use a plugin to add the total order weight to each order and display it on the orders page on the back end. However, HPOS broke this and I have been trying to write the code to implement it ...
Merlin's user avatar
  • 23
0 votes
1 answer
139 views

How to make custom row actions on woocommerce product reviews

How can we add a new row actions item to product reviews? I used the following code: add_filter('comment_row_actions','my_action_row', 100, 2); function my_action_row($actions, $comment){ $...
Moslem Fallah's user avatar
2 votes
1 answer
61 views

Link newly created split order to the customer from the original order in WooCommerce

I am using a nifty piece of code to split an order if it contains any backordered products from Split a WooCommerce order and create a new order if the original order has products in backorder answer ...
shacker's user avatar
  • 37
0 votes
0 answers
20 views

WooCommerce - calculate the shipping charge without tax in some condition

We need to calculate the shipping charge without tax in some condition on WordPress WooCommerce. Our rule was if user order amount < 50 then shipping charge would be $5 + tax 12%. Its runs fine. ...
Avirup Ghosh's user avatar
1 vote
1 answer
39 views

After resubscription in WooCommerce subscription how to fetch the meta data '_subscription_resubscribe'

function action_wcs_create_subscription($subscription) { $NewSubscriptionId = $subscription->get_id(); update_option('NewSubscriptionId',$NewSubscriptionId); $order = wc_get_order(...
ManoharSingh's user avatar
1 vote
0 answers
19 views

Is woocommerce_product_get_weight filter hook deprecated? [duplicate]

I'm using the following PHP code in WooCommerce to hide product details on single product pages from customers, as the numbers are only for shipment calculations and aren't accurate measurements for ...
Robin R.'s user avatar

15 30 50 per page
1
2 3 4 5
223