1

I create new post type suppose "custom_type" and i want to use that post type with Woocommerce function. so Woocommerce will work with "product and custom_type".

i searched everywhere and don't find any answer also i have found how to customize current post type names etc but i want both post type.

so both post type will work and user can checkout at same place.

thanks in advance.

5 Answers 5

2

I don't think you'll be able to pull this off directly. All of the admin screens, objects and hooks are tied to the "product" post type.

What you should probably do is add a new product type (a sister to the simple/variable product types). This new product type could be called "Custom_Type". You can then add a field that lets you point to one of your custom post type objects.

This is a workaround. It means for every "custom type" you would also have a "custom type product" which references it. It's not pretty, but it might work.

1

This page describe how to do this manually: How to add custom post type to WooCommerce.

This is from the maker of the WooRei Shop Manager plugin, that also explain (for free) how to do it without his plugin.

1

@MamunurRashid Custom Post Type WooCommerce Integration Really Awesome plugin.

I had been looking for solutions like this, and your comment was the one that truly helped me find what I was searching for.

0

The following (free) plugin is exactly what you need: WooCommerce WooRei Shop Manager

This plugin extends the WooCommerce e-commerce plugin by allowing a custom post type (CPT) to be added.

1
  • 2
    downvoted as the plugin is not free and "buy a plugin" is not a useful answer here May 26, 2016 at 18:51
0

Wordpress ORG has a plugin name is
"Custom Post Type WooCommerce Integration"

https://wordpress.org/plugins/cpt-woo-integration/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.