- Posts: 23
- Thank you received: 2
ORDER_CREATION_NOTIFICATION email
- olddirtret
-
Topic Author
- Offline
<?php echo JText::sprintf('CUSTOMER_DATE_REQUEST',$address->daterequested);?>
<br/>
<br/>
<?php echo JText::sprintf('CUSTOMER_DATE_PICKUP',$address-->pickupdate);?>
<br/>
<br/>
<?php echo JText::sprintf('CUSTOMER_IRS_EIN',$address->irs_ein);?>
Please Log in or Create an account to join the conversation.
The values: $address->daterequested / $address->pickupdate / $address->irs_ein don't exist in the email variables, that's why you don't have the data from the fields.
Please Log in or Create an account to join the conversation.
<?php echo JText::sprintf('CUSTOMER_DATE_REQUEST', $data->cart->billing_address->daterequested); ?>
Please Log in or Create an account to join the conversation.
- olddirtret
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 2
<?php echo JText::sprintf('CUSTOMER_DATE_REQUEST', $data->cart->billing_address->daterequested); ?>
Doesn't work.
I see the Date of Customer Request title but no data from the address table daterequested field.. The placement on the email notification is exactly where I want them but no data.
Any thoughts.?
The three custom fields were added to the address table. Two date fields and one text field.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- olddirtret
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 2
Please Log in or Create an account to join the conversation.
It should be:
<?php
$address =& $data->order_addresses[$data->cart->billing_address->address_id];
echo JText::sprintf('CUSTOMER_DATE_REQUEST', $address->daterequested); ?>
Please Log in or Create an account to join the conversation.
- olddirtret
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 2
I tried you suggestion
<?php
$address =& $data->order_addresses[$data->cart->billing_address->address_id];
echo JText::sprintf('CUSTOMER_DATE_REQUEST', $address->daterequested); ?>
Same results. No data but text like the example I posted.
All suggestions would be appreciated.
Please Log in or Create an account to join the conversation.
- olddirtret
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 2
so does Customer_IRS_EIN.
<br/>
<br/>
<?php echo JText::_('CUSTOMER_DATE_REQUEST'); ?>
<?php $address =& $data->order_addresses[$data->cart->billing_address->address_id];
echo $address->daterequested; ?>
<br/>
<br/>
<?php echo JText::_('CUSTOMER_DATE_PICKUP'); ?>
<?php echo $address-->pickupdate; ?>
<br/>
<br/>
<?php echo JText::_('CUSTOMER_IRS_EIN'); ?>
<?php echo $address->irs_ein;?>
<br/>
<br/>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- olddirtret
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 2
Please Log in or Create an account to join the conversation.
What if you delete that custom field an create a new one for it ?
Does it work better ?
If not, could you give a link to your shop ?
Please Log in or Create an account to join the conversation.
- olddirtret
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 2
These two fields are now displayed with the order.
The IRS-EIN still remains in the address table. The following code resides at about line 21 of the email.
<br/>
<br/>
<?php echo JText::_('CUSTOMER_IRS_EIN'); ?>
<?php $address =& $data->order_addresses[$data->cart->billing_address->address_id];
<?php echo $address->irs_ein;?>
<br/>
<br/>
Had we realized the potential of the custom fields, it would have made it easier to do the customization.
The notification email and the administration email now work the way we want.
Thank you for all your help.
Here is the link to the Computer Ministry web site www.compministry.org/ . We are a non-profit ministry.
Consider this problem resolved...
Please Log in or Create an account to join the conversation.
- olddirtret
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 2
Hikashop 2.23 Business
Website www.compministry.org
Needed to add to custom fields to the Order_Creation_Notification
2 years ago this thread took care of the problem with Hikashop 1.5.7
This thread fixed the problem. But now the CUSTOMER_IRS_EIN & CUSTOMER_EMAIL_ADDRESS field names are displayed. However the field data is not displayed. Here is the code that we have been using that was working.
<?php echo JText::_('CUSTOMER_IRS_EIN'); ?>
<?php $address =& $data->order_addresses[$data->cart->billing_address->address_id];
echo $address->daterequested; ?>
<?php echo $address->irs_ein;?>
<br/>
<br/>
<?php echo JText::_('CUSTOMER_EMAIL_ADDRESS'); ?>
<?php echo $address->emailaddress;?>
Any thoughts?
Please Log in or Create an account to join the conversation.
You can now do like that:
Please Log in or Create an account to join the conversation.
- olddirtret
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 2
Please Log in or Create an account to join the conversation.