missing shipping address

  • Posts: 107
  • Thank you received: 0
11 years 1 month ago #129094

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 1 month ago #129146

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.

  • Posts: 107
  • Thank you received: 0
11 years 1 month ago #129168

Hikashop Version 1310121420

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

  • Posts: 107
  • Thank you received: 0
11 years 1 month ago #129169

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #129183

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.

  • Posts: 107
  • Thank you received: 0
11 years 1 month ago #129186

There are the files

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #129260

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

          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.

  • Posts: 107
  • Thank you received: 0
11 years 1 month ago #129310

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 This email address is being protected from spambots. You need JavaScript enabled to view it. too.
The code was in the old mail at the end

<?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();
/*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
<?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: 11 years 4 weeks ago by Jerome. Reason: [code] is so nice !

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

  • Posts: 107
  • Thank you received: 0
11 years 1 month ago #129500

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.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
11 years 4 weeks ago #130018

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.097 seconds
Powered by Kunena Forum