I want to display an error message on the Woocommerce admin edit product page. I've tried using add_settings_error(), but it didn't work. I read about the way Woocommerce displays errors, but can't seems to get it to work as it all seems related to the Settings API.
I'm using get_option() to retrieve an option on the Admin edit product page. If it's not set, I want to raise an error, with a link to the settings page. What's the best way to display an error on this page?
Related
My shop page currently shows categories and previously I had set this to "Product Categories" in the admin area under woocommerce >> Product catalog.
Now things have changed and I want products to display instead of categories, however, every time I try to change this it defaults back to "Product Categories". (image below)
Screenshot - Shop Catalog Display Not Working
I have:
Updated everything to the latest version
Checked for duplicate pages
Removed all custom code
Switched back to default theme
Disabled all products apart from woocommerce
The problem still persists, does anyone have a code snippet I can use to force products to show?
I can only think there is an issue with the database not being able to save or something.
Any ideas will help
I noticed one strange issue that dont can resolve myself. I have created coupon "welcome10" that i inserted into coupon area in Woocommerce dashboard.. But for some reason, when try to insert coupon in checkout page, write me that coupon is is not exist.
I contacted woocommerce, but they tell me too basic informations in style:
check if coupon exist in DB.
Check if coupon have valid expiring date.
check if have particular product settings
but from that i cant debug nothing. Allready tryed all possible debug things like:
changing the theme, disabling all plugins (except woo) etc, and problem is still there.
Current coupon settings:
But still same error occured. Any tips how to fix this? Link to site where problem is showing.
Hi there I working on directory kind website with WordPress and AIT-FoodGuide Theme
Now I stuck... here I trying to add Custom Field with ACF But It not showing on custom post type "items" edit page(backend) of users
[note:But this fields visible to administrator only]
Will you please try to find my what is the problem and what possible solution.
Custom Post type is ITEM
Not Showing to all other user e.g author editor role etc..
I Also Checked pulling ACF of normal post type.... and it works for every other user roles too..
ON TRIAL AND ERROR I also figure out it might be it's problem of user capability... Any suggestion which one is ideal?
I have added custom fields to my product. I don't want to display those into "WooCommerce Thankyou Order" email. Please, can someone tell me, how to hide the custom fields?
For ex: I want to hide the details that are highlighted email template
Go WooCommerce in the wordpress Dashboard, click on Email tab. At the end you have Email Template.
In order to override the default email template edit woocommerce/templates/emails/customer-process-proshop/woocommerce/emails/customer-processing-order.php
At least that's WooCommerce instructions says. I do not have a wordpress with commerece to test or check that file but I suppose in there you could decide what information is actually sent to the customer.
I have installed cart66 professional in my wordpress site.
i have configured cart66 with payleap.
in the checkout page, when complete the order by filling all the required information, and clicking the 'Complete Order' button link, after little process it displays following message.
we're sorry
your order could not be completed for the following reasons:
customfields data is required
do anyone have any idea about this?
thanks in advance.
I think in your theme you need to insert custom field data which required.
for ex.
price is define custom field then add custom field.
price : 34$
Fore more info...
http://codex.wordpress.org/Custom_Fields