Tagged: emails, filters, MultivendorX, multivendorx free
- This topic has 9 replies, 2 voices, and was last updated 1 year, 9 months ago by
Sangita Support Squad.
-
AuthorPosts
-
-
April 15, 2024 at 5:34 PM #219007
dennis
ParticipantHello 🙂
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.0Problem 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. -
April 15, 2024 at 5:35 PM #219008
dennis
ParticipantThe corresponding GitHub task is here:
https://github.com/multivendorx/MultiVendorX/issues/622 -
April 15, 2024 at 5:46 PM #219010
Sangita Support Squad
KeymasterHi 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.
-
April 15, 2024 at 6:05 PM #219012
dennis
ParticipantThanks – 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?
-
April 15, 2024 at 6:20 PM #219013
dennis
ParticipantWhat 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?
-
April 15, 2024 at 6:29 PM #219014
Sangita Support Squad
KeymasterThanks for sharing your requirement with us. Our team is looking into it. Kindly provide us with some time.
-
April 16, 2024 at 10:13 AM #219029
Sangita Support Squad
KeymasterHello 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. -
April 16, 2024 at 11:16 PM #219077
dennis
ParticipantYes, 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?
-
April 17, 2024 at 5:06 PM #219092
Sangita Support Squad
KeymasterHello 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. -
June 18, 2024 at 4:42 PM #220774
Sangita Support Squad
KeymasterIt’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.
-
-
AuthorPosts
- The topic ‘Filter for adding quantity texts’ is closed to new replies.






