VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Naturt on August 12, 2013, 10:17:12 AM

Title: custom field values send via e-mail
Post by: Naturt on August 12, 2013, 10:17:12 AM
I have a template override which is shows the products (with some jquery). I have a custom sendmail.php and it is send the choosen values correctly. But not the products custom fields value. I can not reach them. In the sendmail.php this fields available:

$userContact->shipname
$product->quantity
$product->product_parent_id ...


I can list all the custom field value with this in the sendmail.php:

foreach ($product->customfieldsCart as $field) {
echo $field->custom_value;
}


But I want the selected values only. In the normal ordering process, the invoice_items.php is working well (line 57-51):

if (!empty($item->product_attribute)){
if(!class_exists 'VirtueMartModelCustomfields'))
require JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php');
$product_attribute =
VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE');
echo $product_attribute;} 


Pls help me, thanks a lot
Title: Re: custom field values send via e-mail
Post by: earlybird on August 21, 2013, 18:16:34 PM
Hello Naturt,
it sounds like but I'am not sure if you have the same goal as me,
I want to send those custom field values  as email for each product after an order is done.
and I 've no clue where to to start with it.

Can you give me some help with it ?

Title: Re: custom field values send via e-mail
Post by: Naturt on September 02, 2013, 11:16:06 AM
Hi there!

I think you want the same as me. I can send all data to e-maile exept the custom fielsd. I mean i can send the custom fields data, but not the choosen one(s), all of them which is not good...
Title: Re: custom field values send via e-mail
Post by: Maxim Pishnyak on September 02, 2013, 17:46:27 PM
You could start from these related threads
https://forum.virtuemart.net/index.php?topic=108142.msg346865#new
https://forum.virtuemart.net/index.php?topic=100172.msg351675#new
Title: Re: custom field values send via e-mail
Post by: Naturt on September 05, 2013, 09:25:46 AM
Hi Maxim! I read this treads but there is no solution for my question. I just want to send the selected custom fields value through email.
Title: Re: custom field values send via e-mail
Post by: Maxim Pishnyak on September 05, 2013, 20:04:34 PM
I didn't say that you could find prepared and toasted solution there. These threads are the only threads here that are related to your issue. And you could start from them ..
Title: Re: custom field values send via e-mail
Post by: Naturt on September 06, 2013, 09:53:42 AM
yes, thank you i read them but did not find the solution :/
Title: Re: custom field values send via e-mail
Post by: Maxim Pishnyak on September 15, 2013, 14:53:48 PM
Let's try to do this together.