Sending gift voucher to person other than purchaser.
Hi Guys,
I've noticed this request a few times in the comments and forum and of course need this functionality myself.
My solution is to use the customer attributes list field in virtuemart
Products -> [actual product] -> Product Status ->Custom Attribute List:
Here I will place recipients name; email address; message
So in the database -> table: jos_vm products ->column:custom_attribute
I get Recipients Name; email; Message
and
database -> table: jos_vm_order_item ->column: product_attribute
I get Recipients Name : bob[br/] email: bob@example.com[/br] message: ......
So I'm hoping to use reg exp to extract the info between the ":" and [br/] to get the required info.
With this info I intend to hack or override : function addRecipient in helpers/awomail.php so that the recipient is the new recipient instead of the original purchaser.
Have you any comments, suggestions or warnings?
I'm hoping that if I have 2 vouchers being purchased (each with it's own unique email message etc) that addRecipient will be called twice with the relevant data passed to it etc.
I'm completely new to awo coupon (and programming/hacking virtuemart too) but I have decent php/joomla experience.
yours
Rob
Hi Guys,
I've noticed this request a few times in the comments and forum and of course need this functionality myself.
My solution is to use the customer attributes list field in virtuemart
Products -> [actual product] -> Product Status ->Custom Attribute List:
Here I will place recipients name; email address; message
So in the database -> table: jos_vm products ->column:custom_attribute
I get Recipients Name; email; Message
and
database -> table: jos_vm_order_item ->column: product_attribute
I get Recipients Name : bob[br/] email: bob@example.com[/br] message: ......
So I'm hoping to use reg exp to extract the info between the ":" and [br/] to get the required info.
With this info I intend to hack or override : function addRecipient in helpers/awomail.php so that the recipient is the new recipient instead of the original purchaser.
Have you any comments, suggestions or warnings?
I'm hoping that if I have 2 vouchers being purchased (each with it's own unique email message etc) that addRecipient will be called twice with the relevant data passed to it etc.
I'm completely new to awo coupon (and programming/hacking virtuemart too) but I have decent php/joomla experience.
yours
Rob