News:

Looking for documentation? Take a look on our wiki

Main Menu

custom field values send via e-mail

Started by Naturt, August 12, 2013, 10:17:12 AM

Previous topic - Next topic

Naturt

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

earlybird

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 ?


Naturt

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...


Naturt

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.

Maxim Pishnyak

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 ..
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Naturt

yes, thank you i read them but did not find the solution :/

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart