S
S
Sergey2021-03-04 19:55:08
Taxonomy
Sergey, 2021-03-04 19:55:08

How to create a product tab with an existing WordPress attribute taxonomy?

The task is the following, I am creating a website that has its own admin panel for sellers. On the product adding tab, you need to implement the attribute taxonomy selection in such a way that the seller would have the choice of the attribute itself not in the drop-down list, but in the tab, by clicking on which you can select the attribute parameter of interest. How can I implement this functionality?604110c9b9276642490338.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2021-03-05
@sseliverstov

So, while I was figuring out, I found a piece of code that displays the contents of this tab, but I still haven’t found a solution how to set it up exactly.

<?php do_action( 'wcv_before_attributes_tab', $object_id ); ?>

      <div class="wcv_product_attributes tabs-content" id="attributes">

        <div class="attributes-validation-error"></div>

        <?php WCVendors_Pro_Product_Form::product_attributes( $object_id ); ?>

        <?php do_action( 'wcv_product_options_attributes_product_data', $object_id ); ?>

      </div>

      <?php do_action( 'wcv_after_attributes_tab', $object_id ); ?>

It remains to figure out how to edit the desired content + how to create a tab for this post type

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question