Questions tagged [woocommerce-theming]

307 questions
24
votes
1 answer

Add custom field to shipping zone form - Woocommerce

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 searching for the solution. What I've tried so far…
13
votes
4 answers

WooCommerce: Display Category Name

Is there a way to display the product category name on the WooCommerce archive-product.php page. My product category name is "Bracelets", and I'd like that to be displayed as a title on the page. I'm using wp_title() currently:

realph
  • 4,481
  • 13
  • 49
  • 104

9
votes
1 answer

Woocommerce which hook to use for order status changes

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 ) { // if user is active , then get…
7
votes
1 answer

How to Get WooCommerce Product ID from It's Slug?

Is it possible to get an ID of a WooCommerce product only by knowing it's slug? I need to fetch the product's price outside the product's page.
testimonial
  • 93
  • 1
  • 1
  • 9
6
votes
1 answer

Woocommerce overridden not work after Administrator logged in

I've copied the folder plugin/woocommerce/template to theme/mytheme/woocommerceand designed a new template and just checked Woocommerce/System Status to make sure overridden is worked. The template works fine but when the user or the admin logged in…
6
votes
1 answer

WooCommerce product category count

I'm creating a filter widget to show WooCommerce products followed by product count for the category, and it will also work when search string exists. Like, These three categories, Laptops (5), Desktops (7), Tablets(12) Now, if someone searches…
Meathanjay
  • 2,023
  • 1
  • 18
  • 24
5
votes
1 answer

Woocommerce how to ajaxify add to cart button for variable products using custom html radio buttons instead of dropdown menu - no plugin

I'm trying to put all of the pieces of this puzzle together. I've been reading all of the questions and answers on this subject for the past 3 days. So the general blueprint that i'm following is as follows: On single product page, first checking…
5
votes
2 answers

Wordpress Search Bar Result a Blank White Page

I have a simple search form on my blog sidebar which will search only the blogs.
Ramesh
  • 2,297
  • 2
  • 20
  • 42
5
votes
1 answer

How to change WooCommerce product title on loop

how to change WooCommerce product title on loop, for example change product tile in shop, category page etc.? I am looking for the hook that can help to solve this issue. When going to woocommerce/content-product.php it is…
5
votes
7 answers

Woocommerce template overriding not working

I want to override woocommerce templates from my theme. I follow all the steps from the official documents of woocommerce. And I'm sure that there is no woocommerce.php file in my theme. So, I can;t understand why it isn't working. I'm using…
4
votes
3 answers

Is there a list of all possible fields for sorting in WooCommerce?

I see that it is possible to add your custom field for sorting products in WooCommerce (e.g. this question) Copying from the example: add_filter( 'woocommerce_get_catalog_ordering_args', 'enable_catalog_ordering_by_modified_date' ); function…
cytsunny
  • 4,838
  • 15
  • 62
  • 129
4
votes
1 answer

Woocommerce review order total hook is echoing result twice

I want to get the cart total figure for which I am using the following code in my functions.php: function display_total(){ global $woocommerce; $newTotal = $woocommerce->cart->get_total(); echo $newTotal; }; add_action(…
4
votes
1 answer

Modify the WooCommerce emails templates (on-hold/processing/complete)

I am using WooCommerce plugin for an e-commerce business and when I create an order or change its state there always an email being sent to informing the current state of the order. For some current reasons there is no information on the price of…
3
votes
2 answers

How can i refresh the template version data in the Woocommerce Status Report?

I've updated the templates, but the Status Report still shows the versions as outdated, even though they're not... ...how can I refresh the Status Report so it gives the versions the green light? Thanks! I've updated the files locally and uploaded…
3
votes
0 answers

how to customize Product Quick view Popup Size?

I'm using elementor + elementor pro with Astra theme, everything woks perfectly except quick view. Quick view popup shows scrollbar and shows inside a frame. i tired by making changes in product catalog and single product settings, but nothing work…
1
2 3
20 21