Woocommerce, variations, custom field and WP All Import plugin - woocommerce

I am trying to add a custom field for all my product variations and show this on the single product page.
I am using "WooCommerce: Add/display Product or Variation custom field everywhere" answer code and it does everything I need.
But the custom field is not visible anywhere in WP All Import plugin. Adding data manually to each variation works.
Also wondering if I am overcomplicating this a bit?
All help would be greatly appreciated.

Related

How to add a custom Woocommerce filter/widget that checks if product is in stock

it is kind of confusing that there seems to be almost nothing about that topic anywhere, but I would like to add a custom filter through js or a widget, into the sidebar of a Woocommerce Shop Page.
I found this:
https://woocommerce.com/document/woocommerce-product-search/widgets/product-filter-stock/
But that costs annualy.
By default you can only filter by attributes.
Thanks for any hints!
F

Divide checkout field in woocomemrce

I need to totally customise WooCommerce checkout page. I can do a lot of things with Woocommerce programatically but this one is not an easy task since I need to divide these fields just like on the picture below.
Website is on this link: https://2houragency.com/. I can see that they have hidden some default Woocommerce HTML elements and created their own, but I am not sure how to do it by myself. And Wocommerce is not that easy to customise for this kind of pages.
Get into the templating documentation of WooCommerce here.
You'll probably want to use one of these template files to re-order/structure the checkout template.
You can find even more information in the Code Refference.

CPT instead of WooCommerce "Product"

I have a problem that hopefully you will help me solve.
I'm am pretty new with this job and don't know pretty much anything about coding yet. I built some websites using Elementor but never touched WooCommerce before and now I am working on a real estate website with lots of houses uplouded as a Custom Post Type (which I will call "ANN").
My problem is: my client wants to have a live catalogue of the selling houses for ADS and stuff.
Searching the Web I figured out that WooCommerce is the best way to do it even if I don't need the shopping cart (if you have other ideas are welcome) but as far as I understand WC have ITS OWN CPT "Product" and I wonder how canI set it to use my ANN instead of PRODUCT to the listing?
Is that possible?
The main problem is that there are lots of real estate ads already uplouded so change them is a no go.
I'm using JetEngine plugin for the CPT, Filters, etc.. if this can help somehow.
Thank you for you time!
You could achieve that with the Advanced Custom Fields plugin, but you're gonna need elementor pro.
You can create all the additional fields for the information you need to be displayed in that post type using ACF.
See this link for more information: Creating a Field Group
Make sure your custom post type supports custom fields, if you created it with the CPT UI plugin, you can check that by editing your custom post type and scrolling all the way down. You should see a section with a list of things supported by your custom post type, check custom fields and save.
Then create a template for the custom post type using Elementor's theme builder: How to Create a WordPress Single-Post Template in Elementor
Add the custom fields to the template using the ACF integration with Elementor: Elementor Integration With ACF
Lastly, create a custom loop for your custom post type archive using the Elementor custom skin plugin, so yiu can display the custom fields also in the archive if you need to:
How to display posts in Elementor Pro with your own Design (Elementor Custom Loop)

WooCommerce Change Subtotal String on Product Page

How can I change the Subtotal text on the WooCommerce product page (not the cart page). Screenshot attached, I'd like to change 'Subtotal' > 'Subtotal (GST Inclusive)'
Screenshot of Subtotal
Thanks!
In regular single product page of Woocommerce with default themes (like twentytwenty), there is no Subtotal inside it.
I believe, in your case, the Subtotal is shown by a plugin or theme function. So, you need to check the custom code that shows this Subtotal area. After making some research, please provide us your work related to issue and make clear your question.
Additionally, you can use translate plugins or plugin named String Locator to easily solve this issue.

Adding Custom Post Types to Woocommerce

Can you please let me know if there is any way to add your own Custom Post Type to Woocommerce and use that instead of using Woocommerce Product?
Thank
You can register a Custom Post Type regardless of WooCommerce. WooCommerce creates a "product" one so you wouldn't need that, but perhaps you want to create an "event" CPT for use with WooCommerce you can do that.
CPT Documenation
If you are planning on replacing the "product" CPT registered by WC then I would begin to question why are you using WC anyways? I suggest you make any additional CPT's you need as an extention of what WC does. Also you should study CPTs and variations, two completely different options/possible solutions for whatever you're trying to build. Variations are part of WC that offer some great options, where as CPT's are native to WP and have a very extensive ability; with them you can use woocommerce hooks to integrate with WC as needed.
Hope that helps, good luck!

Resources