Commission field on vendor dashboard

WCMp Advanced Frontend Manager

Tagged: 

Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #114459
      trainingday
      Participant

      Hi the field _commission_per_product I was able to move to General Tab on add/edit product page Woocommerce admin. I have been trying to add to the vendor dashboard on the general tab on add/edit products and have been unsuccessful. How can I echo that field to that tab please?

    • #114461
      trainingday
      Participant

      I figured it out for a simple product. If you can help with a variable product like how you added commission to each variation on woocommerce admin add/edit products. thanks

    • #114531

      Hi,
      Using below action hook you can show the field,

      do_action( 'wcmp_afm_after_general_product_data', $post->ID, $product_object, $post );
      Copy

      Or you can override templates/vendor-dashboard/product-manager/views/html-product-data-general.php template by copying it to yourtheme/dc-product-vendor/vendor-dashboard/product-manager/views/html-product-data-general.php
      and do you custom code.

      >> Regrading the other part, according to the present flow, we allow only the admin to add commission product variation wise from admin dashboard as you can see here (https://www.loom.com/share/83ae1e3932e34fa5ab6d6ecc3dfbae72).

      Regards,

    • #114584
      trainingday
      Participant
      This reply has been marked as private.
      • #114586
        trainingday
        Participant
        This reply has been marked as private.
    • #114690

      Hi,
      kindly use below hook

      do_action( 'wcmp_afm_product_after_variable_attributes', $loop, $variation_data, $variation );
      Copy

      Regards,

    • #115176
      trainingday
      Participant

      thanks thats the hook i needed. you can close this.

    • #115235

      Thank you for the update. We are closing the ticket now. In case any issue arises kindly raise a new ticket.

Viewing 6 reply threads

The topic ‘Commission field on vendor dashboard’ is closed to new replies.