hook-woocommerce Questions

3

Solved

I have a strange behaviour that I don't understand I've changed the woocommerce_shop_loop_item_title hook to add a link to the title of the product. This is my code inside functions.php // Add HR...
Bohannan asked 12/9, 2017 at 10:57

7

Solved

In WooCommerce I would like to hide Out of Stock products from Related products in single product pages. Is it possible? Any track is appreciated.
Rover asked 1/3, 2019 at 20:29

4

Solved

I am trying to change the WooCommerce Registration form minimum password strength and I am unable to do much. Can anyone please share a solution by which I can amend the minimum password strength ...
Filberto asked 10/5, 2017 at 17:36

2

Solved

I have searched and found a number of examples of how to change the shipping rates. Basically I am looking to do the same, but I want to use a 3rd party API. I have set up a custom plugin with a f...

3

Solved

I am getting the dynamic custom price in a variable that I want to pass to the hooked function in woocommerce_before_calculate_totals hook in cart. But it isn't working. This is my code: $add=20...
Rationalize asked 2/8, 2016 at 9:0

2

I am trying to add a select field to Woocommerce Shipping tab and to Shipping Zones section of it while creating a new shipping zone. I found this on official documentation of Woocommerce while sea...

5

Solved

Which workaround is there for making the woocommerce_update_product action fire only once? I've read that it fires twice because it needs to save once internally to retrieve an ID for images/varia...
Navicert asked 30/12, 2019 at 8:41

3

Solved

I'm in the process of converting an open source plugin to be HPOS-compatible. One of its features is additional filters on the orders list in admin (inline with the order statuses), eg: I can't se...
Fission asked 26/10, 2023 at 10:7

2

Can someone tell me how I can recreate the hash from WooCommerce webhook to compare with the "X-WC-Webhook-Signature" header hash from the request? The documentation specifies the hash is generate...
Caseworm asked 18/5, 2020 at 8:20

5

I want to add a custom field in Shipping Zone page under shipping method, it will be a text input, the user will able to add a custom message and I'll show that message in the front end. I noticed...
Dairen asked 18/5, 2017 at 8:49

1

Solved

Is there a way to stop the Place Order from going forward using the woocommerce_checkout_process action? If woocommerce_checkout_process was a filter then returning something like false would proba...
Ringster asked 1/7, 2023 at 21:47

4

I have changed dropdown to radio button using wc-variations-radio-buttons-master The different color is also actually radio button. The current link product have 12 such variation which have...
Extenuation asked 6/9, 2016 at 7:40

7

Solved

Is there a way (maybe via functions.php) to change the product-image in woocommerce shops (archive page) on hover with the first attached gallery image of the product? I cannot find how to target b...
Apogamy asked 29/5, 2020 at 14:46

2

Solved

I am trying to update a custom meta on Woocommerce product update event. I've read that I should use woocommerce_update_product rather than save_post but I cannot figure out why only save_post work...
Fellows asked 14/6, 2020 at 17:30

2

I'm trying to move the order review section to the top of Woocommerce checkout page and this is working: remove_action( 'woocommerce_checkout_order_review', 'woocommerce_order_review', 10 ); add_a...
Truncation asked 20/3, 2018 at 0:2

5

Since there is a command: wp_insert_post() shouldn't there be a command: wp_delete_post() Seems like it does not exist, what is an alternative that you use when you have the ID of a product i...
Manoeuvre asked 22/10, 2017 at 12:23

1

Solved

In my custom plugin I need to catch every time an order status changes from wc_on_hold to wc_completed so I tried to write down: function so_status_completed( $order_id, $old_status, $new_status ) ...

1

Solved

The login-register form has to be shown only like popup, so I've made redirect, to avoid default myaccount page for not logged users. add_action( 'template_redirect', 'wish_custom_redirect' ); func...
Epistemic asked 27/11, 2021 at 16:6

4

Solved

I would like to rename the WooCommerce order status from "Completed" to "Order Received". I can edit the script below located in wc-order-functions.php, but I would prefer not to modify any core fi...
Mahau asked 13/6, 2016 at 13:16

2

Solved

Hi today i was working with woo-commerce and i have successfully created some custom checkout fields as per user requirements but i am unable to save them in database. Here how i created custom ch...
Fae asked 18/5, 2017 at 20:38

3

Solved

I'm looking to change the text "Cart Totals" in the cart totals div in WooCommerce or remove it totally with an action. I've added different text above the box in using add_action( 'woocommerce_b...
Dele asked 25/8, 2018 at 3:49

1

Solved

I'm new to WordPress development and I'm currently encountering a dead-end. I want an admin notice to be displayed in a WooCommerce order after the order's status has been changed. With the followi...
Alannaalano asked 5/11, 2021 at 18:52

5

is anybody here using Elementor? How do you trigger the Popup via code? For example. function popup_call(){ ... if(....){ //trigger the popup here... } }
Inaccessible asked 19/8, 2020 at 7:9

2

Solved

I want to get the URL from where the customer can directly pay for their Invoice and also it should work with wc-cancelled and wc-transaction-declined (custom order status). My Solution What I'm do...
Enterpriser asked 30/11, 2016 at 4:46

7

Solved

Using the storefront theme, I want to remove breadcrumbs when logged in to the administrator panel WooCommerce |Products Store Activity| Inbox| Orders| Stock| Reviews| Notices| breadcrumbs. Please ...
Kasten asked 2/8, 2019 at 7:31

© 2022 - 2025 — McMap. All rights reserved.