WooCommerce Order Details in Admin Dashboard [closed] - woocommerce

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed last month.
Improve this question
I set up WooCommerce and I use 2 WooCommerce websites under one domain like www.example.com/website1 and www.example.com/website2. Also, we use Woo Mobile App to see orders for both websites with Mobile App.
However, I want to see which website the order came from. So I need to add custom text to order details. I tried to show where I want to add the custom text with screenshots, both in the admin dashboard section of the website and in the woo app. I'm waiting for your ideas/solutions.
Many thanks
screenshot 1 - Website Admin Dashboard
screenshot 2 - Woo Mobile App

To save it IN the billing info you have to save it when order is created but you can add it before billing or after billing and avoid more complications. Here is an example:
add_action( 'woocommerce_admin_order_data_after_billing_address', 'my_shop_field_display_admin_order_meta', 10, 1 );
function my_shop_field_display_admin_order_meta($order){
echo "Shop: Shop 1";
}

Related

Wordpress Plugins - MultiPage Architecture [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last year.
Improve this question
I'm a long-time web developer, but a wordpress newbie :) and trying to reason about WP architecture for multipage plugins.
For a project of mine I wish to create a wordpress plugin, which runs on multiple number of pages, each with a different view, based on the specific route.
for example, my project is a remote-events app, with different views in every step of the event registration process - events catalog; event page (with more details); event registration; checkout and payment.
I don't expect my users to create multiple pages, embed different shortcodes per views and wire the proper routes. A single-click plugin installation should do it for them.
does anyone has experience or know of an example of this kind of plugin model?
Thanks!
The catalog and single page are the natural pages created for each new post type.
https://wordpress.org/support/article/post-types/#custom-post-types
If you create a new post type, let's say "Events", you can get a new archive page that shows the list of Event posts and you will be able to have inner views for all the events. It is possible to create default templates for this type of page:
https://developer.wordpress.org/themes/basics/template-hierarchy/#custom-post-types
For other pages, I think that you can do the same way as Woocommerce did - they have the shortcodes placed on the specific page like Checkout or shopping Cart, but those pages are auto-created.
This will allow users to wrap your Checkout content with some CTAs, banners, or other content without touching the actual template - some flexibility with Single-click installation.

woocommerce shipping cost doesn't show on the cart page until address is inserted [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last month.
Improve this question
My problem is that my cart page doesn't show me shipping cost.
I found this message on thecart page:
I want to show my shipping cost on the cart page. How can I do this?
My woocommerce shipping settings are
I have not found any solution to directly show my shipping cost before putting my address and I don’t want my buyer to select calculator option. Tell me any function that by default enable my shipping cost to show on my cart and checkout page.
Go to your shipping settings, insert custom zone and country and set the method. If you are transporting to an unsupported country then you should select from the main woocommerce settings 'sell to specific country' and then you are done.
Now it will show your shipping cost or methods on cart page without entering your address.
And in Woo 3.5 is ab bug, use 3.5.1, there this issue is fixed.

Woocommerce no products were found matching your selection [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
Woocommerce no products were found matching your selection
keeps popping up when I click on a category. Even when I switched theme.
HERE IS A SCREENSHOT OF ALL MY PLUGINS
https://www.diigo.com/item/image/5nsnv/samv
Try this ,
Go to WordPress Admin Area > WooCommerce > Settings > Products > Default Product Sorting . . . and check if it's set to
"Popularity (sales)" as in some setups this can cause issues. Try changing it to anything else and test and let me know your results for the same.
It sometimes is the case that the visibility of the products is set to "hidden". To change that check the product and in the publish Metabox set the visibility to " Shop and search results"

Disable archives page for custom post type [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
QUESTION: How to remove or disable custom post type's archive page?
I have created survey plugin, the survey questions will be a custom post type. How can I make the archives page for my CPT be disabled?
For instance, when I edit the URL:
http://localhost/wordpress/survey/surveyquestion1 to
http://localhost/wordpress/survey
it displays all the questions which I don't want to happen.
I have solve my problem myself. I found discussions on Wordpress development. This one works Removed custom post type archive page shows blog page.
Upon creating the add_action hook that will register the custom post type on the labels part, include 'has_archive' => false, this will disable the archives page for the custom post type.

WordPress published posts and revisions + custom post types [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I stumbled up on one problem with revisions that I have to use for on website im building in wordpress.
So, it goes something like this. I installed Capability Manager plugin so I was able to make a new role account and set the permissions for that role. After that I installed Revisionary. What I basically did is that I copied Contributor role and removed some things. So new account now can edit only their own post. When the post is edited revisionary (the plugin) enables only "send to a revision" option, so the user cant publish it. The thing is even if the post is new or was already published, every change needs a revision and I managed to do that. After that I installed the plugin called "Manage your posts only". I need that one so a new user who can add new posts is unable to see other posts that he is not author of.
BUT I have a small problem. The revisionary plugin doesnt work with custom post types, fields etc. (Woothemes theme in this particular situation). So only thing that can be changed is a post text and title, everything else below the post, custom fields and so on are ignored by revisionary. I need your help guys and your opinions what would be the best solution for this problem.
i did a little searching around and found this - it seems the original plugin hasn't developed support for custom post types but this exta plugin adds that support
http://wordpress.org/extend/plugins/custom-field-revisions/

Resources