Skip to main content

missing shipping address

More
12 years 11 months ago #129094 by cobinet_edv
-- url of the page with the problem -- : www.cobinet.com
-- HikaShop version -- : 2.2.2
-- Joomla version -- :2.5.14
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message
After Update for 2.2.2 I miss shipping address in customer order creation notification mail
The order creation notification mail, that administrator recieves, has shipping address

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #129146 by nicolas
Replied by nicolas on topic missing shipping address
If you check the version in the advanced settings of the configuration of HikaShop, which build number do you have ?
If you download again the latest version installer on our website and install it over yours, does that help ?

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #129168 by cobinet_edv
Hikashop Version 1310121420

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #129169 by cobinet_edv
I have installed the last Update from 23.10.2013 again.
There is no shipping address in the customer order creation notification mail, only billing address
Administrator order creation notification mail looks full different and has the shipping address

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #129183 by Mohamed Thelji
Hi,
Did you done some modifications through your "order creation notification mail" ? can you show me what you have in your file : "YourWebSite\media\com_hikashop\mail\order_creation_notification.html.php".
and also : "YourWebSite\media\com_hikashop\mail\order_creation_notification.html.modified.php" if you have one.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #129186 by cobinet_edv
There are the files

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #129260 by Xavier
Replied by Xavier on topic missing shipping address
Hi,

If you want, you can use our new emails. You just have to delete the .modified.php file, and that should solve the problem related on the shipping address.

In your .modified.php file the code seem to be correct
Code:
if(!empty($data->override_shipping_address) || (!empty($data->cart->has_shipping) && !empty($data->cart->shipping_address))) echo '<tr><td style="font-weight:bold;background-color:#DDDDDD">'.JText::_('HIKASHOP_SHIPPING_ADDRESS').'</td></tr><tr><td>'; if(!empty($data->override_shipping_address)) { echo $data->override_shipping_address.'<br/></td></tr>'; } else if(!empty($data->cart->has_shipping) && !empty($data->cart->shipping_address)){ $shipping = $template; foreach($data->order_addresses_fields as $field){ $fieldname = $field->field_namekey; $address =& $data->order_addresses[$data->cart->shipping_address->address_id]; $shipping=str_replace('{'.$fieldname.'}',$fieldsClass->show($field,$address->$fieldname),$shipping); } echo str_replace(array("\r\n","\r","\n"),'<br/>',preg_replace('#{(?:(?!}).)*}#i','',$shipping)).'<br/></td></tr>'; }
Are you sure that the customer enter a shipping address ?
You can check the content of $data->order_addresses_fields thanks to var_dump($data->order_addresses_fields);

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago - 12 years 10 months ago #129310 by cobinet_edv
If I use Your new mail, I will lose all my changes
It is not the right way, that I have to do all my changes again after each update

I am sure, that the customer enter the shipping address, because I am a test customer
And the mail, what the administrator recieves, has the shipping address

If I use Your new mail, I need followed changes:
1) The mail goes not only to customer, but to bestellung@cobinet.de too.
The code was in the old mail at the end
Code:
<?php $data->customer->user_email = array($data->customer->user_email,'bestellung@cobinet.de'); ?>
2) I need net preis, net total, tax price and grand total
Grand total = net total + tax price
The code was in the old mail after $config =& hikashop_config();
Code:
/*CobiNet*/ $config->set('price_with_tax',0); /*-------------------------------*/
The mail, that the administrator recieves, has right net preis, net total, tax price and grand total
If the customer will recieve the same, it is Ok
3) I need CobiNet Impressum
In old mail I set the code after
Code:
<?php echo JText::sprintf('BEST_REGARDS_CUSTOMER',$mail->from_name);?> <br/> <?php echo JText::sprintf('COBINET_IMPRESSUM');?><br/> <br/>
How can I do all this changes in Your new mail?
Thanks
Last edit: 12 years 10 months ago by Jerome. Reason: [code] is so nice !

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #129500 by cobinet_edv
And the new Mail has no product code
We need the product code absolutely

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #130018 by Jerome
Replied by Jerome on topic missing shipping address
Hi,

You can have some customization with the new mail system.
It is just that we split the mail in two files, one called "preload" for the PHP code and the "html" one for all HTML code.
If you use the tag {TXT:COBINET_IMPRESSUM} in the mail (html part), it will be automatically replaced with his translation.

In the preload you can modify dynamically the configuration if you want, like you can change the customer email.
For the product code, you can also display it using {LINEVAR:PRODUCT_CODE}.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.258 seconds
Powered by Kunena Forum