Automatically assign product variations based on product category

WCMp Advanced Frontend Manager

Resolved
Viewing 7 reply threads
  • Author
    Posts
    • #132562
      Tim Kerremans
      Participant

      Hi there,

      I’m having some issues with customizing the frontend manager and therefore would like to receive some help.

      1) I would like the product variations to automatically show up once a certain product category is selected. How would I be able to do so?
      2) Would it be possible to add a field in the product variations tab to display the cost price of each variation? And then based on cost price add commission percentage to calculate the selling price? I created a mockup and added it to this message.

      Here is an example:
      I have a platform on which I sell canvas prints in 3 different sizes: Small, Medium and Lage. All images for the canvas prints are uploaded by artists and each variation has a certain cost to manufacture, on top of that cost the artist can set their commission, these 2 combined creates the selling price. I would like to find a way for the artists to easily set their commission % on top of our base prices.

      Let me know if you need any additional information.

    • #132611

      Hi.
      The default flow of WCMp commission is as follows-
      Admin or vendor can set cost of variable product and vendor can alsoset tax shipping cost product name.
      But comission can be set only by admin.
      After creating the product by vendor, the customer will be able to place the order.
      Then WCMp will calculate the commission which is set by admin via WCMp >> settings >> Payment.

      Regarding the variation part, as per the default flow of woocommerce, it also requires for admin/vendor to first select attributes of the products, then use them to create variable products. For further help please check this doc : https://themeisle.com/blog/woocommerce-variations/

      Now, as you can understand you need to do custom code to modify our flow and apply your required method.
      If you are comfortable with coding, our team can guide you with the coding procedure.

    • #132614
      Tim Kerremans
      Participant

      Hi,

      Thanks for responding to my message and clarifying how the commission system works.
      Yes sure I’m willing to apply code myself but don’t have that much experience so I will definitely need someone to guide my along.

      Would it be possible to provide me with some code to apply these changes or a procedure to help me getting started?

      Thanks in advance

    • #132624

      Thank you so much for your query.
      Our team will get back to you.

    • #132648
      Tim Kerremans
      Participant

      Ok that’s great news, thank you.

    • #132659

      Hi,
      Use

      do_action( 'wcmp_afm_variation_options_pricing', $loop, $variation_data, $variation )
      Copy

      this filter to add extra fileds and

      wcmp_process_product_object
      Copy

      this filter to save any type of content in product page.

      wcmp_commission_after_save_commission_total
      Copy

      this one for modifying commission.
      Thanks

    • #132698
      Tim Kerremans
      Participant

      Hi,

      Thanks for trying to help me out, however I was not able to apply these changes myself. The thing I’m trying to achieve is not that hard but I just don’t have enough knowledge about coding and php in particular to do this myself. I also did not explain my issue clear enough so that’s why I made a video to explaing exactly what I’m trying to achieve with WC Marketplace.

      Here is the video where I’m explaining exactly what I’m trying to achieve: https://www.youtube.com/watch?v=dRm3i1jK1W4

      These are the 2 things that need to be changed:
      1) Automatically assign attributes & variants to selected product category
      2) Automatically assign cost of variants to selected product category

      Let me know if you need any additional information in order to help me further. I’ll be happy to help whenever I can.

    • #132749

      If you have any developers, ask them to contact us so we can help you out with the coding procedure.
      Alternatively, you may hire our service team (https://multivendorx.com/custom-development/).

      Also, the flow you are looking for is not the default flow and it requires a good amount of coding.

Viewing 7 reply threads

The topic ‘Automatically assign product variations based on product category’ is closed to new replies.