I’ve got a customized WooCommerce shop where I want to be able to grey out certain product variations based on conditions, but I’m not sure where in the code to do it. I have two prices for each item, one is a member price and one is a retail price. I want everyone to see each variation but not be
Tag: wordpress
how to display upload or default logo in redux framework option
I am using Redux Framework for WordPress theme. Then upload logo from redux options panel. here is my redux option code : here is my display code : i want to display default image if image is not uploaded. this code is display uploaded image perfectly but when i delete uploaded image from redux option default…
Custom WP_Query ‘posts_per_page’ is not working
I’m having trouble with multiple posts showing when I’ve declared ‘posts_per_page’. During my research my code has developed but with still no results. I’ve tried ‘ignore_sticky_posts’ => 1, ‘nopaging’ => true (pagination) switching theme and deactiv…
Requiring minimum variation quantity for customer from a specific state
In our Woocommerce shop, we have 2 variable products (a soft drink) in 330 ml and 500 ml. The 330 ml product has variations: 1 six pack 2 six packs 3 six packs 4 six packs 1 carton (24 bottles) The 500 ml product has variations: 1 six pack 2 six packs 3 six packs 4 six packs 1 carton
Why pagination is not working and gives a 404 error on the wordpress site?
Good day! The problem is this: in the template category(the archive) the pagination is not working, when you click on page 2 of the 404 error. Please help do not understand how to solve it, already all head broke My loop: And my custom pagination: Answer Since this has come up in two different forums lately, …
Bulk create WooCommerce products programmatically
It is possible to bulk create products on WooCommerce? I am using the wp-cli Product command but it seems that I have to create one by one. This takes a lot of time since it is going to make a query for each product, even worse, it is going to be a cron job that will be run regularly. I
WordPress query by ACF relationship field
I have a custom post type “building” and another custom post type “architect”. Building are related to architects via an ACF relationship field. In the single-architect page I want to display a list of the buildings that are associated to that particular architect. So far I have achiev…
How to load wordpress child theme css after parent theme css
In my wordpress child theme css file loaded before main theme css. My child theme css functions.php file is given below I want to load child theme css after parent theme css. Answer Add the priority. Here 99 is high, so it will likely be last but some plugins may add css at a higher priority, though it’…
Replace watermark text from searchbar html
I would like to change the placeholder and tooltip text on my search bar. The search box looks like the image below. In other words, I would like to change “Search …” and “Search for:” to something else. Here is the relevant code from searchform.php: I found out that replacing &#…
Force WooCommerce to update fragment
I created plugin which uses WooCommerce fragments for showing to user how many points they have. When user uses some of the points (by adding product into cart) everything works ok. But when admin adds points to user by admin-interface, the fragment is not updated until user adds a new product into cart. Here…