Add Custom product type

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 1 reply thread
  • Author
    Posts
    • #109584
      wpxpert
      Participant

      Hi, I tried to create custom product types ‘1. Digital product’ and ‘2.service’.

      I followed by this thread: https://wclovers.com/forums/topic/extends-custom-product-type-from-woocommerce/
      And
      https://webkul.com/blog/create-a-custom-product-type-in-woocommerce/

      But it’s not suitable for my requirement.

      1. After I created custom product type. There no ‘general tab’ in admin add product page.
      2. No virtual & downloable checkbox.
      3. No add to Cart button in archive/category page.

      Pls help me to create custom product types like default ‘simple product’ type.

      Thanks

    • #109958

      Hello,

      Yes follow the thread https://wclovers.com/forums/topic/extends-custom-product-type-from-woocommerce/ regarding adding custom product type.
      Regarding remove field like virtual,downloable etc., override the wcfm-view-products-manage.php in your theme. <your theme folder>/wcfm/products-manager/wcfm-view-products-manage.php
      And in class parameter add class “non-new_product” ('class' => 'wcfm-checkbox wcfm_ele wcfm_half_ele_checkbox simple booking non-variable-subscription non-job_package non-resume_package non-redq_rental non-accommodation-booking non-new_product').
      Then add the “new_product” value in array c=[“simple”,”variable”,”grouped”,”external”,”booking”,”new_product”] in assets/js/min/products-manager/wcfm-script-products-manage.js

      This is not any small code change. This is a custom requirement. Please follow the above steps.
      Otherwise please contact here https://wclovers.com/setup-guidance/ for this requirement.

      Thanks.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.