I use the following lines to save a Value to the database. I have one question regarding this code, when I delete input it still keeps it. The only way to delete that is to put (space) as input. $…
Tag: woocommerce
woocommerce order notes in order preview
I am trying to add all manual admin notes from order on order preview. I want to make it with their date & time bellow, with small text and sort by same way as backend. Code i writed is: But seems this method for data {{ data.data.field_id }} it’s not working for it. If i try global post or $order
WooCommerce custom localization address format for specific country
I am printing address labels from WooCommerce and find that the line breaks for the addresses are not as I need them. I found the code I need to change in woocommerce_localisation_address_formats hook and have added the line break but I do not know enough to add the correct code to the functions file thus avoiding going back to the
Display an ACF field values in WooCommerce product archive loop
i’m currently playing around on localhost since i’m going to design an ecommerce for a client who owns a records store. I’ve installed Elementor, WooCommerce and ACF, and at first tried to use elementor custom skin to create a custom loop for my products, where i easily added the field i wanted with dynamic data. However, this turned out to
WooCommerce customizing product availability text with icons
In Woocommerce I want to edit the “in-stock text”, I found multiple answers on the internet, but for some reason, it doesn’t work for products that are in stock. It does work for products that are out of stock or are on backorder. I cannot understand what is different and why the in-stock is rendering differently than the other two.
How to check for an array of product Ids in WooCommerce
I am changing the text of the Add to cart button on shop pages in WooCommerce for specific products: If I have two or more IDs that need to have the same button text, how can I add an array of these ids into my function? Answer You can use in_array() PHP conditional function like: It should work. Also you
Where is generated items (products) table in WooCommerce
I’ve looked around on Google and the WooCommerce docs, but I feel like I’m not using the correct terminology here. Hopefully one of you can point me in the right direction. I need to add a column to the cart table (not sure what it’s actually called) that is populated on checkout pages, for example on the checkout/order-pay/ endpoint. You
Display content on WooCommerce single products based on product categories when they have child categories
I am trying to display the test div below on any product page that is in the category cat1title or cat2title. Using the hook below, which I thought was correct, I should be seeing this div on the page but I am not seeing it at all. The page displays just fine but no div. No errors in the console
Customize “subsription option” string generated by WooCommerce Subscribe All The Things plugin
I am trying to add text through functions.php just after subscription-price”> I can do this with direct code editing, but need help to apply filter through functions.php without changing orignal files. something like that Answer This should suffice, basically anything you assign to the $option_descreption variable will be displayed Replace Your new text in this answer, depending on your needs
Display subscription renewal count on WooCommerce “My account” page
We use WooCommerce subscription and I created that snippet below to display the renewal count on MyAccount page. This is working. But, I found out, that the initial parent order also count as a “paid”. So actually I only want to count the renewals from a subscription means exclude the initial order from that count. I guess when I always