Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.0
Something big is coming for marketplace admins… MultiVendorX 5.0 is almost here. Are you ready?
Be the first to explore all the game-changing features!
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

Filter for adding quantity texts

Resolved
Viewing 9 reply threads
  • Author
    Posts
    • #219007
      dennis
      Participant

      Hello 🙂

      I have asked earlier about how I can change the quantity text to e.g. contain a label. So instead of just ‘1’ I want it to show ‘1 pcs.’

      I have asked here: https://multivendorx.com/support-forum/topic/show-a-quantity-text-in-vendor_new_order-mail/
      And you told me, there was a new filter in v4.1.0

      Problem is, I can’t find the filter / name of the filter.
      Can you either provide me with the filter name – or a list of filters, where I can search for the name myself?

      Thanks in advance.

      Best Regards,
      Dennis.

    • #219008
      dennis
      Participant

      The corresponding GitHub task is here:
      https://github.com/multivendorx/MultiVendorX/issues/622

    • #219010

      Hi there, Thanks for getting in touch with us. The filter that you can use is listed below –


      mvx_order_item_quantity_text

      Let us know if you need any further assistance from our end.

    • #219012
      dennis
      Participant

      Thanks – can you help me on documentation in regards to how I implement this?

      It seems to not have the same number of arguments as the ‘standard’ woocommerce filter.

      Do you maybe have a code example of how to use this?

    • #219013
      dennis
      Participant

      What I want to achieve is:

      “2 pcs.
      – $12.99 per piece”

      And then in the total row:
      “$25.98”

      So I can see the unit price too.

      Is that possible?

    • #219014

      Thanks for sharing your requirement with us. Our team is looking into it. Kindly provide us with some time.

    • #219029

      Hello There, Thanks for your cooperation.
      You can add the below code on the functions.php file of your current active theme to add additional test in the quantity section in the new vendor order mail –

      add_filter('mvx_order_item_quantity_text', 'modify_quantity');
      function modify_quantity($item) {
      return $item . " pcs";
      }

      In the same way you can add other modifications on your end as well.
      Let us know if you need any further assistance from our end.

    • #219077
      dennis
      Participant

      Yes, so far so good.

      What I want further is, that I also want to add the unit price for the product in the same function.

      How can I possibly access that data, when there is only a quantity parameter for the function? Is that impossible?

      Another solution could be to add the unit price as it’s own column, but I don’t know how to do that either?

    • #219092

      Hello Dennis,Currently, the support is limited to adding a text field using the previously mentioned filter. However, we plan to update and modify this filter in our next release. After this update, you’ll be able to use the enhanced filter to meet your specific requirements.
      You can keep track of the progress of the issue from here https://github.com/multivendorx/MultiVendorX/issues/723.

      In the meantime, it would be really great if you can give us 5/5 review here: https://wordpress.org/support/plugin/dc-woocommerce-multi-vendor/reviews/#new-post
      This would motivate the team further to do their job more efficiently.

    • #220774

      It’s been long and we have not heard back from you. We presume your query is resolved now. We are closing this thread. If you need help or assistance in future please do create a new support ticket.

Viewing 9 reply threads
  • The topic ‘Filter for adding quantity texts’ is closed to new replies.
Shopping Cart
Scroll to Top