Change Shortcode wrapper in Woocommerce

I'm using Wordpress 3.8 + Woocommerce 2.0 I need to change the class of the wrapper that Woocommerce generate when I use a shortcode. I use this shortcode: [recent_products per_page="12"] And the...

Woocommerce add to cart with custom price

I've seen many examples of adding an item to the WC cart with a customer price, but none dynamically. I am trying to do in a shortcode function that receives a POST variables.... if...

Woocommerce - Showing 1 page instead of 4 pages for products on sale

I've got 44 products on sale, and when I put WooCommerce shortcodes [sale_products per_page="12"] I'm getting only 12 products on sale, i.e. 1 page instead of 4 pages. What's wrong? I'm...

Add html to WooCommerce category shortcode output

How can I filter the output of the WooCommerce 'product categories' shortcode. I need to add a button into each product in the loop. Docs WooCommerce: Product Categories shortcode WooCommerce code...

Wordpress backend too slow, even after wiping out all expired transient and sessions in database

It seems like my issue has not been here before, so I have created a new thread. We have an e-commerce website and currently the back end is pretty slow. I did delete all the expired transient and...

Wordpress Woocommerce cart scripts enqeue for shortcodes

I'm trying to figure out how to load the cart.min.js scripts not only if IS_CART but also if SHORTCODE_EXISTS('woocommrece_cart'), I can see that all the fronted scripts enqueues are in...

WooCommerce Storefront theme: How to show order details on order-received endpoint?

After the last WooCommerce update, the order details no longer displayed on the Thank You page. Since then, I have developed a child theme using the WooCommerce Storefront theme. No matter what I...

Admin notifications from WooCommerce not working, customer notifications are

I have a WooCommerce store here: http://vanuatucoffeeroasters.com Sometime between Jan. 17 and Jan. 26, the admin email notifications stopped working. However, when I place an order, I get a user...

Fatal error: Uncaught exception 'Exception' in wordpress? woocommerce 3.0

I just update woocommerce when trying to finalize a request on my site it give the following error. How could I solve this? Fatal error: Uncaught exception 'Exception' with message 'Invalid...

Create a plugin with new shortcodes derived from WooCommerce

WooCommerce comes with standard shortcode [product_category]. I wanted to get a shortcode with the same behavior, but filtering per vendor (a custom taxonomy) instead of per category. So I have...

Get WooCommerce featured products with a custom shortcode

I tried to get array of featured products to use theme in my own plugin with jquery slider I have made this function and get attrs from class-wc-shortcodes.php but no results ...

Woocommerce Cart - parsing shortcode within cart output

Bit of an unusual customisation in WooCommerce that I require... I've modified the standard WooCommerce cart.php so that the customer can't edit the quantity or remove items from cart. Basically,...

Add Cancel button on My account Orders list using Woo Cancel for Customers Plugin

In My WooCommerce website I am using this plugin WooCommerce Order Cancel for Customers which allow customers to cancel their order based on payment type and on a time delay. But the cancel button...

Custom tracking code on Woocommerce thank you page

So I'm having a problem implementing a custom tracking code that pulls in order information. Here's what I've got in my functions.php file so far, it isn't actually showing any information though...

Customize Order received page based on shipping method in WooCommerce

How could I customise the order thank you page based on the order's shipping method? So for example if a customer used 'Delivery on request' option, the thank you page would display a different...

Default + Zones Show Up in Check out??? - Woocommerce Custom Shipping Method Plugin

I've built my first shipping method plugin based on flat rate with a few extra fields. I have done the following: Installed and activated the plugin Added 2 instances of the shipping method to...

Uncaught ArgumentCountError: Too few arguments to function wc_get_page_id()

Im getting this error on my WooCommerce Cart Page when it is empty, how would I get rid of this error message? Fatal error: Uncaught ArgumentCountError: Too few arguments to function...

Woocommerce change order recieved page title

I am trying to change/add in the title of the "Order Recieved" Woocommerce page. The below snippet works - I am able to change the pre-existing TEXT with the following code: ...

How to resolve 'Fatal error: out of memory' issue on a staging site?

I have a website and a staging website running on the same server. I created the staging site by duplicating the website, setting up a new database, and putting it on a subdomain. Both run...

Wordpress remove_action within class

I am trying to remove an action added by the Woocommerce Memberships plugin. Tracing back the actions contains functions it is initially added to the hook under class WC_Memberships_Frontend { ...

Make WC_Cart add_to_cart method working for guests in Woocommerce

Im trying to get my code to work. Searching for hours now. I found similar questions like this one. But unfortunately noone seems to find a solution. In my custom plugin I want to add a specific...

Remove ‘Customer payment page’ restrictions for admins in WooCommerce (pay_for_order capability?)

I’m interested in removing the restriction which prevents anyone other than the customer paying for their order, so that an admin can step in and do the payment on behalf of the customer for...

Invalid argument supplied for foreach() in WooCommerce

I have a small problem, I am modifying the tab structure of My Account in WooCommerce and I want to link 'Addresses' with 'Account details' and the problem occurs with 'Addresses' when I try to...

Add order_id beneath custom Woocommerce Order Number on Edit Order page

We use the Booster plugin which creates a unique WooCommerce order number such as WC-456544646. I now need to add the original order_id which still works in the background and with the WooCommerce...

Woocommerce [products] shortcode - How to order by given product ids atribute?

I want to get products list (html), using Woocommerce default [products] shortcode, like that: $product_ids = '1,2,3,4,5'; $content = do_shortcode( '[products ids="'.$product_ids.'" columns="3"]'...

Why WooCommerce product get_description does not get content generated by shortcode

I am reading the class-wc-structured-data, which is the key file for generating product schema in the WooCommerce plugin. I wonder why my content, generated by inserting shortcode (tab content)...

WooCommerce - How to reset password by custom user meta programmatically

The user have metadata called "pin", I need hook of "Reset password" form submit: I found where validate is checked, I need hook to add my pin validate...

Wordpress's WooCommerce how to use callback attribute & fetch product's specification

I have a WordPress website with WooCommerce installed. There are some global attributes with a product's specification. I want to callback them as text in long description using...

Show custom AND standard products atrributes on Product Single page WooCommerce

I have searched all over for this, and I have found a great code to get the standard product attributes displayed, but the custom ones (that do not start with pa_) are not being displayed. First...

How to disable tax being charged on shipping in WooCommerce?

I have configured my Woo-based shop to NOT charge any taxes on shipping: I do have a table for Zero Tax rate configured: however it still does during the checkout: as is apparent in the...