Questions tagged [woocommerce-theming]
307 questions
2
votes
0 answers
Woocommerce custom query, pagination and taxonomy template file
I have a problem with pagination.
I created a taxonomy template 'taxonomy-product_cat-sale.php' to display products that are on sales.
Everything is ok, but when I click to the next page (mysite.com/sale/page/2/) I redirect to 404 page.
I followed…

Emily
- 154
- 1
- 4
- 19
2
votes
2 answers
How to add a sidebar to Woocommerce Shop Page?
So, I'm making my own theme from scratch for Wordpress with the Woocommerce plugin. I can seem to find how to add a sidebar widget to my Shop page... There is no area for it in thw Widgets menu and I can't seem to find how to create it and edit…

joanaaarrr
- 21
- 1
- 4
2
votes
2 answers
WooCommerce: change button class without overwrite template files
I want to change the button classes of WooCommerce with the classes from Bootstrap.
At the moment I've done that by overwriting the existing templates files. In many cases, the button classes are the only changes.
Is there any hook to do this for…

Cray
- 5,307
- 11
- 70
- 166
1
vote
0 answers
In woocommerce single product page I want to display products from same brand with the brand image of current product in single product page
The problem is my code is working fine, it shows brand image and products form the same brand fo single product page , but it also shows products which have their catalog visibility hidden, can someone please help me with this , so my code doesn't…

Aum Vaghela
- 11
- 1
1
vote
0 answers
Woocommerce Product Title Duplicates
I am using Astra theme and the page builder is Elementor. I am trying to remove the duplicate product tilte (woocommerce-loop-product__title) which messes the seo right now. I tried different ways but failed. Using CSS I can hide the title but I…

Ihtisham Ali
- 11
- 2
1
vote
1 answer
WooCommerce enqueue style on shop page
I'm struggling to get a CSS file to load just on WooCommerce shop archive pages only.
Looking at the documentation I know there is a is_shop() tag.
So I would have thought
function kodr_scripts_styles() {
if( is_shop() ) {
…

alexkodr
- 523
- 3
- 7
- 30
1
vote
0 answers
woocommerce ajax product filter
I am creating a custom woocommerce ajax product filter widgets to filter product by category, price, brand, status (in stock, on sale) using jQuery ajax and WordPress wp_query to customize WordPress query
How to display products number beside…

osama B.
- 25
- 5
1
vote
1 answer
Woo commerce order not showing in Order page
Hi Customer received an order email confirmation.
He paid via Paypal. but the order is not showing my order tab.
Also, Order showing on Order single page i.e
example.com/wp-admin/post.php?post=15920&action=edit
I tried to deactivate other plugins…

HafizHamzaCS
- 23
- 1
- 6
1
vote
0 answers
Adding Custom Code Under Product Description in WooCommerce Wordpress
Trying to add some custom code under the product description but can't seem to find a hook to do this. woocommerce_product_after_tabs works well but it shows on every tab. Is there a specific hook for underneath the product description, if not how…

Cameron
- 11
- 3
1
vote
0 answers
How to show variations order for each different product in woocommerce?
I mean not the order in attributes-terms for all products, like xs-s-m-l-xl for all. I mean exactly for one separate product. For example in one product the red color has to be the first, yellow the second and blue the third, in other separate…

libertarian
- 345
- 1
- 15
1
vote
0 answers
How to show total order price in the loop on the shop page when I change the quantity?
I have a specific task, to make 'add-to-cart' button disabled if the order amount is less then 1500. I use this snippet to show the current price, it changes in quantity input by +- buttons. And simply add css class to make the button look disabled…

libertarian
- 345
- 1
- 15
1
vote
1 answer
How to make add to cart button disabled when the amount is less then minimum and enable it when amount is minimum and more?
The minimum order amount has to be 1500. I try to make add to cart button disabled when the amount is less then needed, and to enable it back when it's 1500 or more.
I use this code
add_action( 'woocommerce_single_product_summary',…

libertarian
- 345
- 1
- 15
1
vote
1 answer
How to get current order info on the thank you page using shortcode
I'm trying to introduce a shortcode on the thankyou.php page to show the details of the order just placed by a customer.
If I write the code in php like this it works and shows the total:
get_total(); ?>
Now I'm trying to get the…

Snake
- 466
- 4
- 16
1
vote
1 answer
How to add ACF field after WooCommerce archive page title
I am trying to print an ACF field after the WooCommerce archive page title.
I use the following code but not working.
woocommerce_page_title();
global $post;
if( get_field('acf_field',$taxonomy . '_' . $termId) ):
$taxonomy =…

sot
- 45
- 6
1
vote
1 answer
Add product category in woocommerce archive/shop page
I'm trying to add the product category inside the product card in the woocommerce archive page.
Right now it shows "Thumbnail" "Title" "Price" and "Add to cart button".
I'm using this function which should work if the variable "product" is set to…

allegri
- 179
- 1
- 2
- 10