MultivendorX
Tagged: emails, filters, MultivendorX, multivendorx free
-
AuthorPosts
-
-
April 15, 2024 at 5:34 PM #219007dennisParticipant
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.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 #219008dennisParticipant
The corresponding GitHub task is here:
https://github.com/multivendorx/MultiVendorX/issues/622 -
April 15, 2024 at 5:46 PM #219010Sangita Support SquadKeymaster
Hi there, Thanks for getting in touch with us. The filter that you can use is listed below –
mvx_order_item_quantity_text
CopyLet us know if you need any further assistance from our end.
-
April 15, 2024 at 6:05 PM #219012dennisParticipant
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?
-
April 15, 2024 at 6:20 PM #219013dennisParticipant
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?
-
April 15, 2024 at 6:29 PM #219014Sangita Support SquadKeymaster
Thanks 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 #219029Sangita Support SquadKeymaster
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"; }
CopyIn 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 #219077dennisParticipant
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?
-
April 17, 2024 at 5:06 PM #219092Sangita Support SquadKeymaster
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.
-
-
AuthorPosts
Please LOGIN to reply to this topic