I was trying to add new column to the orders page of the customer’s recent orders table, the new column should show the details of the product like product name & description. Tried different …
Tag: wordpress
Add a custom field value below product title in WooCommerce archives pages
In WooCommerce I would like to add custom text to my products display, that will be grabbed from a custom field in product’s edit page. This is how it looks now: You can see the products with their title below: I would like to add a text below every product, marked with blue pen: I have managed to find …
Unset Payment Method for downloadable items only and a specific shipping country [closed]
My e-commerce site sells 99% to South Africans, and we use “BACS” “EFT” & Credit Card as payment options. We do accept international orders, but can not calculate the shipping cost for …
Get the selected variation attributes from orders in Woocommerce 3
In Woocommerce, I have a report in the admin area that tallies up products sold.There are only 5 products sold on the site but there are 1 or 2 variations on some. The report works great but ignores the variations. I need to retrieve the attribute value from items ordered to display the data accurately. How d…
GET a coupon code via URL and apply it in WooCommerce Checkout page [closed]
I have a WooCommerce website and when customer add-to-cart a product, it is get redirected to checkout page, so cart page is not accessible. I would like to apply coupon via URL (GET) on checkout …
Get a custom field count for Woocommerce orders
Hi I am working on woocommerce I have added custom fields in Woocommerce for orders which is an Agent name each order is assigned with an Agent. I would like to get Agent name with its total order count. I have created custom widget and its working well , just issue with the agent name its coming every time. …
WordPress regularly produces errors for cron.php, class-wp-hook.php and update.php
For a customer I set up a website in WordPress. The site got hacked and infected with malicious code, so I’ve re-uploaded all WordPress files and the files for the theme, changed all passwords, installed a security plugin and run several virus scans to remove every line of code, that was suspicious. The…
Dynamically create wp pages
I’m using a custom page template that is intended to create a dynamic content using the wpdb class and some external tables within the database. I’m trying to keep the url’s structure as clean as possible, hence im using the ‘post name’ option in the permalinks.. I’ll just …
How to get affected row count on WordPress query?
This code is to use in WordPress plugin. The following is my code I am using to insert data from CSV file to database: When I do this var_dump($query); it shows int(0), and data is successfully inserted in table. My question is how can I get number of inserted rows? Answer Very old question, I know, and perha…
Display lowest variation price and discounted percentage in WooCommerce
Based on this post : Displaying the lowest variation price of variable products And this topic : Display the discounted percentage near sale price in Single product pages for WC 3.0+ I’ve been trying to show everywhere on my website the lowest variation price with the associated discount %, for variable…