Questions tagged [woocommerce-theming]
307 questions
1
vote
1 answer
Add dropdown list to woocommerce cart and retrieve value on checkout?
I'd like to modify cart.php to contain a dropdown list of "checkout agents" and then retrieve that data when checking out to redirect to the correct agent (different URLs).
I already have cart.php in the child theme. I have created a…

user3161924
- 1,849
- 18
- 33
1
vote
1 answer
Woocommerce get attribute custom field in wc attribute labels function
add_filter('woocommerce_attribute_label', 'custom_attribute_label', 10, 3);
function custom_attribute_label($label, $name, $product) {
$term_meta = get_term_meta($name, 'attribute_description', true);
switch ($label) {
case 'size':
…

Vladimir Kyatipov
- 686
- 4
- 17
1
vote
1 answer
WooCommerce how to get a clean label of a product attributes on front end
So, I'm successfully adding products, variations with attributes, etc in a plugin I'm writing. The problem I'm having is that on the frontend the attributes appear as the raw name (e.g. pa_variation_name) rather than a clean looking title (e.g.…

Nicetechnology
- 31
- 1
- 4
1
vote
1 answer
Woocommerce - how to show current user's orders on the custom page?
I need to show users order list with my own html and css, like the number and the thumbnail in the left part of the item, and in the right part it has to be an order date, an order status, the quantity and the price, and my own meta.
I've founded…

libertarian
- 345
- 1
- 15
1
vote
0 answers
Woocommerce Update orders by bulk actions
I want to bulk update orders, But update seems going from oldest order to latest.
I want to make it to update from latest to oldest.
I tried php array_reverse, can be see in code
add_filter( 'handle_bulk_actions-edit-shop_order',…

Vladimir Kyatipov
- 686
- 4
- 17
1
vote
2 answers
updating product subtotal in cart contents
I've trying to write my campaign plugin.
Here is the problem,
I want to update, line_subtotal and line_total in a product in $cart_items.
1- woocommerce_cart_product_subtotal is not really working.
2- I tried to redefine array's element by…

Fatih Toprak
- 1,097
- 1
- 19
- 48
1
vote
1 answer
Woocommerce how to add message if quantity exceeds product stock
I am having products on backorder in a woocommerce store.
I am trying to create an error message if the value of the quantity input field is a higher/exceeds the products stock - see image below.
I also want this to go away if the customer goes…

Blomshit
- 17
- 1
- 1
- 5
1
vote
1 answer
Woocommerce how to get products images of recent orders
The code below re-displays each image without resetting at each foreach loop.
For example it gives:
product 1 - image1
product 2 - image1+2
product 3 - image1+2+3 ...
How can I make sure that the pictures of the past products are not displayed…

Loris GFT
- 87
- 6
1
vote
1 answer
Woocommerce how to get meta value from the order object
I'm trying to get a custom meta data field from wc_order. I have to clarify that I'm not a pro in php and I have tried many ways to get field, with:
get_meta()
get_meta_data()
get_post_meta( $order_id )
and so on...
But none of them have worked. I…

Ezequiel S. Sandoval
- 150
- 1
- 2
- 13
1
vote
1 answer
Remove payment details Woocommerce order's page in backend
I see a post about to translate or change the text "Paid on" on woocommerce backend order's detail page. I integrated it for bacs and local pickup payment.
Replace a specific word for BACS payment method in Woocommerce order edit pages
What I need…

Giuseppe V
- 21
- 6
1
vote
1 answer
How to implement "product gallery" feature of woocommerce into a custom post type
I'm wondering if there is a way to borrow the "product gallery" feature of woocommerce and add it to a custom post type in wordpress.
I know i can go through the woocommerce source codes and search and find its nuts and bolts and pieces in the…

Mokhless
- 686
- 2
- 6
- 22
1
vote
1 answer
Can't remove auto generated p tag from wc_display_item_meta (wordpress)
Question:
The following php code sends an email and the email result shows the following result.
Would you please let me know how to remove < p >< /p > or replace p to span?
Why I need to remove it:
I tried the css below,
but inline / inline-block…

namari
- 129
- 1
- 9
1
vote
1 answer
How to display the details of the last order placed by a
EDIT @Bhautik's answer debugged a part of my page, but the critical error message remains. After having tested, it is this code which causes problems (it follows the code of my first question)↵
((I think the error is close to
$thumbnail =…

Loris GFT
- 87
- 6
1
vote
1 answer
WooCommerce updating the shipping method depending on the billing address field changes
In my online store, there are two standard shipping methods - Flat Rate and Free Delivery. I added a plugin for distance delivery.
Thus, when a customer fills in the City and Address fields when placing an order, new shipping methods must be added.…

Dmitry
- 119
- 1
- 9
- 38
1
vote
1 answer
How to override divi Menu.php to child theme
Divi does not come with default option for cart count on menu so I'm able to achieve this by editing wp-content/themes/Divi/includes/builder/module/Menu.php but the problem it does not work if the file is put on child theme.
Note
I tried put it in…

Vyshnav MK
- 131
- 1
- 5