I am working on to new custom theme. I have installed woocommerce plugin. I have import product from xml files. I had tried to test rating functionality. Its working on wordpress default theme twentytwelve, twentysixteen. etc. But when I switched to my custom theme. comment section not showing rating. Take a …
Tag: wordpress
Change wc_empty_cart_message function in WooCommerce 3.1
I’ve been trying to change my layout for the empty-cart message. I’ve removed the action, and try to replace it. I’d like to change the htm structure output from: to: My actual code (in functions.php file of my theme): But this code doesn’t work. Does anyone has a suggestions on how to…
Destroy cookie when browser window closes PHP
I have created a popup in WordPress that will open when visitor IP is from Australia. The popup will show up on page load. I want to make it not show until the browser screen is closed. For this, I used the cookie. I set the cookie when the close button is clicked and creating the cookie in PHP using
Remove “Choose an option” from variable product dropdowns in Woocommerce 3
I would like to remove from the dropdown of variations in WooCommerce product page following “option”: I found plenty of, apparently not working codes which should do the job. Probably outdated to the latest WooCommerce version. What I tried and is partially working: This is only working when I se…
Add an additional cost to flat rate shipping each 3 items in Woocommerce
I’m running a woocommerce shop and using a Flat Rate shipping $15. I have written a formula to add $1.25 for each additional item. 13.50 + ( 1.25 * [qty]) Sipping “flat rate settings | $1.25 for …
Display dokan vendor name on Woocommerce single product pages
With woocommerce I am using Dokan plugin and I am trying to display the vendor name, rating and vendor location on single product pages. I tried this code to display vendor name but no luck: Any help is appreciated. Answer I don’t use dokan plugin. Here is the way to get the (post) author ID and to make…
Display a custom notice before all default notices in Woocommerce checkout page
I use the following below code for show custom message to un-logged woocommerce users (visitors) in checkout page top code recive this forum, from mr @loictheaztec my before question link below: Display a custom message for guest users in Woocommerce checkout page I would like to change woocommerce_before_che…
Use custom meta data in a WC_Product_Query on Woocommerce 3
I used to use the standard wordpress WP_Query to fetch woocommerce products based on meta data. My products are tracks and have many meta columns (like genre, instrument, mood, etc). Using WP_Query I can create a meta_query based on user input from a form, that searches for products that meet the meta require…
WordPress permlink show “You should update your web.config now.” in godaddy
In Godaddy wordpress site not showing inner pages, It show only home page and wordpress admin page. While click save changes in “Permalink Settings” it show “You should update your web.config now.” While I add web.config in my site it show 500 error(Home page and admin page also) Now w…
Change percentage decimal precision in Woocommerce deposits plugin payment plan
I’m using the Woocommerce Deposits plugin. It uses percentages to calculate the deposit and payment. I need the deposit and payment to be an exact amount. I can calculate the exact percentages to give the exact amount but the plugin does not allow decimal points for the percentages. It rounds up or down…