i need get the brand name of product , i have this code $product = wc_get_product(); $type = $product->get_type(); $name = (string)$product->get_name(); $id = (int)$product->…
Tag: woocommerce
Add products thumbnail to Woocommerce admin orders list
I would like to add futured image on admin view order pages in Woocommerce. New Column created, but the product image does not appear. What should I do to show the order thumbnail? Thanks. Answer Beware, as orders can have many products (many order items) and in this cas you will have many images (also it will weigh down the
Woocommerce: function to update all products
I have an issue with my Woocommerce products. This issue is fixed if I just update the product (edit the product and click in the Update button) with no changes at all. I have around 2000 products in my site, then I am thinking of doing this using a function in my function.php file. It should be something like this,
Enable user local time in Woocommerce Cart and Checkout date time display
For a bookings website I have activated ‘Timezones’. The visitor’s local time should be displayed. In the booking form everything is working fine. The cart data ($start_time, $end_time) is not being …
Display last WooCommerce admin order note in customers order history
I am looking to display the last Order Note, currently only viewable via Admin in Woocommerce, on the customer side in their Order History. So they can view the tracking number we add in after the …
Hide COD payment based on chosen select field options in WooCommerce checkout
I am using WooCommerce and I have a custom checkout field in form of a selection list. I am trying to remove COD gateway, when customer select on a custom checkout field a specific option (“newyork” …
Change admin dashboard WooCommerce widget title
I want to change the WooCommerce dashboard widget title from ‘WooCommerce Status’ to something else. I understand that I need to use a hook in my functions.php but I’m struggling to make this work. I’ve found the function and the file in WooCommerce that is generating the dashboard widget ( plugins/woocommerce/includes/admin/class-wc-admin-dashboard.php ) – and I’ve attempted to use add_action to
Change default WooCommerce order status to processing for cheque and bacs payments
In WooCommerce, I need all my orders to go immediately to “processing” status to have the order-processing email sent directly when the order is processed. By default, this behavior exist for Paypal and COD orders, but not for BACS and Cheque where the default status is on-hold. I tried several snippets like this one: But this doesn’t work, the order
Always display shipping address in WooCommerce email notifications
WooCommerce used to show shipping address no matter which shipping method was selected during checkout, if you had to hide the shipping address from emails you had to do a custom job like in “https://stackoverflow.com/questions/38936283/hide-shipping-address-on-local-pickup-in-woocommerce-email-notifications/38937106#38937106” answer thread. After new updates, WooCommerce hides the shipping address from the order emails if local pickup is selected during checkout. I want to show
Display the published date of every product on Woocommerce shop page
I’m looking for solution to display products published date on shop page. I tried the following code, but it show only for first product Any help will be greatful Answer the_date function assumes you are inside a loop that is properly setting up the post data, which in your case seems not to be done. You could manually provide the