VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sandomatyas on June 28, 2019, 14:59:36 PM

Title: Modify product name progmatically
Post by: sandomatyas on June 28, 2019, 14:59:36 PM
Is it possible to create a plugin or some script which can modify the product name by triggering a plugin method? I need to append some string after the product name based on the logged in user.
I need this at the productdetails page, the variant selector, in the cart and the order emails as well.
Maybe a method which is triggered after getProduct() ?
Title: Re: Modify product name progmatically
Post by: Studio 42 on July 01, 2019, 17:48:02 PM
You can use a custom field plugin.
Some function use a product object as reference, so you can manipulate it.
Title: Re: Modify product name progmatically
Post by: Milbo on July 12, 2019, 00:41:07 AM
I wonder, maybe i can extend my plugin anumbers so, that you can use it for your purpose. It can do already most of it. Please write me a ticket, but consider that I am in holiday the next 2 weeks.