I’m trying to apply a discount to one shipping class for products currently in a cart. This is applied on the checkout view. In Woocommerce backend, the option is set to charge each shipping class individually. Also, I use only one shipping method named “flat rate”. Based on Override all shi…
Tag: wordpress
What can do Virus wp-tmp.php on WordPress
I found this virus on My WordPress on wp-includes/ Files that has scan by siteguarding.com and other and found bad scripts ad this content file “wp-tmp.php” : What was this file doing? And how is know that file is insert on my website file root ? I have chating with siteguarding.com support and te…
WordPress Sub Menu Options Page with Tabs
I have not been able to find a suitable answer on the web for what I am trying to do. I have created a custom post type “donation” and under that, have a submenu of “settings”. I want the settings page to use tabs for different things to keep it simple. Here is what I have: When I clic…
Custom “Terms and Conditions” acceptance checkbox in Cart page Woocommerce
Works on small home project, and want to add checkmark option bellow “Proceed to Checkout” button into Cart page into my Woocommerce site. I found this function, that is add that option: …
Woocomerce Remove a specific cart items when adding to cart another specific items
Provided solution here Remove a specific cart item when adding to cart a specific product in Woocommerce works perfect for one product id. Is any way to do this for multiple id’s? Answer Update 2 : The following code will work for multiple product IDs: Code goes in function.php file of your active child…
Add customer email and phone in “Order” column to admin orders list on Woocommerce
I am trying to find a way on how to add the customer phone and email below the name on the WooCommerce order view. See picture for reference where I need to add this information. Any ideas, tips or …
How to ignore the specific CSS codes coming from the WordPress plugin stylesheet?
I am working on a WordPress website built on custom theme in which I want to ignore some specific CSS codes coming from wordpress plugin style sheet. Here is the link for that wordpress plugin style sheet. The CSS codes from the above WordPress plugin style sheet which I want to ignore is: Problem Statement: …
Filter out unwanted order item meta data from Woocommerce email notifications
In the order email templates (for example email-order-items.php), WooCommerce uses the function wc_display_item_meta to display product details in the order table. The function code is present in the wc-template-functions.php file (line number 3011). I am copying the function code below for reference The prob…
WordPress Editor not updating files: Unable to communicate back with site to check for fatal errors
I’ve run into an issue with updating the header.php file in a WordPress website. Firstly, I tried updating the file manually through C-Panel -> File Manager. The code appears to stay in the file, but when you view the page source in incognito mode and different web browsers the code doesn’t ren…
Disable all payment gateways except BACS based on geo-ip country in Woocommerce
In Woocommerce, I am using the code made from this answer thread which enables ALL payment gateways if the user’s GEO IP is from an array of allowed countries. Here the allowed country code that I …