I have a client with the following issue: I need to be able to split their WooCommerce WordPress site into essentially two categories. If a user is logged in as a “Wholeseller”, only products in the “Wholesale” category get pulled from the database. However if the user is not logged in or is logged in but not a “Wholeseller”, then
Tag: woocommerce
Disable all payments gateway if there’s specifics products in the Cart
I would like to disable all payments gateways under special situation: I’ve 2 special products that I don’t want to be combined at checkout with any other product. Lets say that my “special” …
WooCommerce order status change from payment gateway
I have integrated a payment gateway to accept online payments for my store running on woocommerce. Everything works fine but I noticed that woocommerce is changing the order status to wc-processing for all the online paid orders by default. As per my store’s functionality I want all the online paid orders to be in wc-on-hold status initially. Is there any
How to show zero rate value of shipping class in cart page “WooCommerce”
I need some help in WooCommerce Shipping method. How can I show the value of shipping class on the cart page. Let me explain little bit my problem. I added a flat rate to charge shipping for some products i.e. chairs €7 which is working perfect and show on cart page as => Shipping: Flat rate: €7 but I’ve some
Detect dashboard of WooCommerce “my account” pages
How can I detect if the “myaccount/my-account.php” template is used on the Dashboard. Currently I use: query_vars[‘page’]) ) { ?> <a href="/…
WooCommerce – Custom thumbnails and default fall back image placeholder
I just want to insert a wrapper to the woocommerce_get_product_thumbnail I can see that my wrapper appeared but It doesn’t have a fall back image if there’s no image. How do I output the default …
Adding a “return to shop” button on single product pages that leads back to product parent category
My client wants to place a “return to shop” button on single product pages in WooCommerce that leads back to the previous page and not the main shop page. I have explained that all browsers have back buttons but they are dead set on having this button. I’ve even mentioned activating breadcrumbs but they don’t like those either. How can
How can I remove the product/inventory count from the shop page on Woocommerce?
Do anyone know how I can remove the number of current available stock that is shown on my Woocommerce product page next the the title of the product? I guess this has changed since the recent Woocommerce update because adding the code snippet no longer works. Does anyone have a solution to this? All suggestions are very much appreciated and
WooCommerce – unset ” removed notice…” on cart page
actions and filters. On my WooCommerce site I get the following message when I remove a product from the shopping cart: Looking over WooCommerce source code I have found a conditional statement in class-wc-form-header.php as part of the function update_cart_action(): But I can’t find the way to use it for eliminate this notice. I have try css solutions but it
How to show SKU before woocommerce product title on archive page
I’m trying to show the SKU before title of product in woocommerce. Here is a code what I’m trying bellow code show the SKU after price on Woocommerce archive page. But is there any hook available to show it before the product title on archive page ? I use woocommerce_get_price_html this hook to show it after price I also try