BuddyForms / BuddyForms-WooCommerce-Form-Elements

This Plugin adds a new section to the BuddyForms Form Builder with all WooCommerce fields to create Product creation forms for the frontend
GNU General Public License v2.0
3 stars 3 forks source link

Hide options for Linked Products sections aren't working #54

Closed njota08 closed 5 years ago

njota08 commented 5 years ago

Steps to reproduce

  1. Click on BuddyForms
  2. Click on Add New or select a product post type previously created
  3. Select a WC Simple Product post type template
  4. Select the WooCommerce tab
  5. Click on the "Linked Products" tab
  6. In the fields "Up - Sales", "Cross Sales" and "Grouping" mark its corresponding checkbox to hide it
  7. Save and Publish your form
  8. Click on Preview Form
  9. Select different types of products and navigate to the "Linked Products" tab

Expected result: If the product type is different from "Grouped product" you should not see the "Upsells" and "Cross-sells" fields. And if the product type is "Grouped product" you should not see the "Grouping" field also.

Actual result: The fields are visible for every product type.

NOTE: Also, if the user mark all the checkbox to hide all the options in the "Linked Products" the "Linked Products" tab should not appear in the form. Otherwise, it will be a blank tab.

See screenshots below:

image

image

image

njota08 commented 5 years ago

Tested, fixed and closed.