Questions tagged [woocommerce-theming]

307 questions
1
vote
1 answer

Extra product info on Shop page

How do I display the categories of an individual product under the product name on the Shop page listing? screenshot of Shop page:
1
vote
0 answers

Creating custom product thumbnail and gallery image in Woocommerce single product page

I am new to developing woocommerce templates. I am working on converting an static html template to woocommerce. I want to create a custom product thumbnail and image gallery like the image below: I retrieved the product gallery images but I can't…
1
vote
1 answer

Woocommerce how to use ternary operator to display featured products

I have added the following code to display "Featured: yes/no":
Featured: get_event_listing_featured(); ?>
I would like to change it to display only the word "Featured" under the…
1
vote
1 answer

Woocommerce how to concatenate Before and After shop loop hooks on the same line

I am working on an e-commerce website using woocommerce. I am styling the product card (The second container which includes the product name,price,etc..) in shop categories and all locations using hooks and content-product.php file. My code for…
1
vote
2 answers

Woocommerce - how to display only on-hold orders using a shortcode

By default Woocommerce orders table displays all available order status on the My Account page which is not sortable by customer, therefore I need to have a separate table for every unique order statue (example : 'on-hold' ) to display orders table…
1
vote
1 answer

Move Reviews outside of Tabs - Woocommerce

I haven't had any luck with the answers posted here. All I want to do is place woocommerce "reviews" outside of the premade woocommerce tabs (description, reviews, and additional information) I know how to remove the reviews just fine…
1
vote
1 answer

WooCommerce products shortcode how to display products if all of the categories match

I am trying to understand how I can make a page show certain products if ALL of the categories match. So for instance, if the page has this code [products limit="16" columns ="4" category="interior,lighting"] I would want it to only show products…
1
vote
2 answers

Woocommerce how to make the category linkable

I have an issue where I want to show my item category for a store item AND make it clickable. As I'm a total novice in php (basically illiterate) and have no acquaintances who could help me with it, I turn to you. add_action(…
1
vote
2 answers

Hide "Attributes" tab for a "Simple Product" type option

I have added a third checkmark option to the "Simple Product" tab, like this: add_filter("product_type_options", function ($product_type_options) { $product_type_options["personalize"] = [ "id" => "_personalize", …
1
vote
0 answers

How to display a different top banner for each category page in Woocommerce 4.7?

ONE TOP BANNER IMAGE PER CATEGORY PAGE I want to display a dedicated banner for each woocommerce category page, instead of the generic one applying globally to all category pages. Wordpress and all extensions are updated. I found the good overriding…
1
vote
1 answer

Woocommerce how to create and populate a custom drop-down from database on the checkout page

I added new section with name donate_section before shipping form in checkout page and in it I added Select Drop-down name _done_select. I need to populate it from database. I'm using below query but still not able to fetch data from database…
1
vote
1 answer

WooCommerce how to attach custom invoice to Email

with some help I manage to create a plugin to attach, on the finished order email, an invoice. add_filter( 'woocommerce_email_attachments', 'attach_terms_conditions_pdf_to_email', 10, 3); function…
1
vote
1 answer

Woocommerce how to exclude products with no price set in low to high price sort

I'm trying to make a custom product sort option which excludes products which are POA, the client has done so by not setting a price for them. add_filter( 'woocommerce_get_catalog_ordering_args', 'custom_woocommerce_get_catalog_ordering_args'…
1
vote
1 answer

WooCommerce: remove block style.css when deregister/dequeue fails

I want to remove the WooCommerce block styles from the frontend. This file here: /wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.0.0 I tried two different ways which both fail: add_filter(…
Cray
  • 5,307
  • 11
  • 70
  • 166
1
vote
1 answer

wc_get_products with two meta_query condition being ignored

I'm tryng to do a wc_get_products with two meta_query conditions, but it doesn't work. It returns random results and I don't know why (When I refresh the page the products given change) The code that I'm using is: $args = array( …
josesd
  • 39
  • 4