For my multisite installations (with over 1500 sites on one of them) I am looking for the most efficient way to change the thumbnailsite to 300×300. On a single site you can easily do this by changing …
Tag: wordpress
Bulk dynamic pricing for WooCommerce products with specific product-tag
I’m trying to add dynamic discount to all products who have the tag: “bulk-discount” I want the discount to happen if a customer buys eg. 5 similar or different prducts with the tag. I’m working with this code. And this answer. This is what i have: Answer The first loop counts how many…
Add a custom fee for percentage and fixed cost to specific payment gateway in WooCommerce
In WooCommerce I need to apply a custom handling fee for a specific payment gateway. A custom handling fee for percentage cost and a custom handling for per fixed cost. I have this 2 pieces of codes: A) PERCENTAGE COST – function Result frontend B) FIXED COST – function Result frontend The two dis…
Woocommerce: How to display SKU for variable product options dropdown
How I can view the SKU code in the dropdown option for the variable products? I have tried to use this code but it is only to view the price option in woocommerce. Cause recently I use the other code …
Get post_meta image url based on ID
So i’d like to extract the image url from the database on one of my post_meta, but I’m unsure how to target that. Here is the steps that I’m taking: Here is what’s under the wp_postmeta table in the …
Change the order of admin billing address fields in WooCommerce orders
I have problem with woocommerce order in admin I want the billing_address_2 show at the end of the page as exmple bellow. can any one please help me.
Load custom page templates in WordPress admin dashboard
I have several custom page templates in my theme. But I want to hide a few with a plugin, and only show the custom home page template on the page that has been set as the front page “is_front_page” or …
Website keep showing IIS Windows Server page
I had configured our wordpress website on the IIS Server. We have a domain name with SSL, I had configured (site binding with mysql URLs) my website from local URL to live domain URL. I am also …
WooCommerce action hook to redirect to new page on order failed
I want to redirect to a custom wordpress page if a customers woocommerce order fails. I have found and implemented the following code which redirects to a new page upon payment success. Is it possible to add to this code, so a failed order is sent to another specific url ? Answer Based on the code you have, y…
PHP calculate past dates from today
I have created a PHP function that calculates how old a WordPress/WooCommerce order is. If the order is older than 90 days it should be canceled. The function used to work perfectly. However, since …