-- HikaShop version -- : 2.3.4
-- Joomla version -- : 2.5.27
Hi,
I have hikashop 2.3.4 now. Before the update I had 2.1.3.
In 2.1.3 the following was working:
I didn’t use the shipping method from Hikashop and used the custom fields instead. You will see why.
I made a custom field of the type order and called it shipmeth. And this was a radio-button with three options: Normal, Urgent and Self Pickup.
I also made a custom field of the type order and called it Pickup Date. I used ‘Display limited to” and chose Self Pickup from shipmeth field.
The main reason was to be able to show the pickup date when self pickup was chosen.
The problem I had back in 2.1.3 was that I couldn’t see the shipping address since I didn't use the shipping methods.
I solved this by commenting out the following line in checkout/address:
if($this->has_shipping) {
And at bottom:
}else{
}
This was working and it allowed me to choose a shipping address and it showed it in the order email.
But with the upgrade to 2.3.4 there were a couple of things not working because of the new tag system.
I just put the following code in order_creation_notification.html.modified.php:
echo '{TXT:BILLING_ADDRESS}<br/>{VAR:BILLING_ADDRESS}<br/><br/><br/>{TXT:SHIPPING_ADDRESS}<br/{VAR:SHIPPING_ADDRESS}</td></tr>';
The following code is hiding the shipping address so I copied the code above separately:
<!--{IF:SHIPPING}--><!--{IF:SHIPPING_ADDRESS}—>
But after checking out you can see in the
order mail that the
shipping address is the
same as the
billing address.
And the shipping address is not the one that I chose during checkout.
(see picture below to see what I mean)
I suspect it’s because of the following code found in the preload text:
i
f(!empty($data->cart->override_shipping_address)) {
$vars['SHIPPING_ADDRESS'] = $data->cart->override_shipping_address;
} elseif(!empty($data->order_shipping_id) && !empty($data->cart->shipping_address) && !empty($data->cart->fields)) {
$vars['SHIPPING_ADDRESS'] = $addressClass->displayAddress($data->cart->fields,$data->cart->shipping_address,$view);
} else {
$vars['SHIPPING_ADDRESS'] = $vars['BILLING_ADDRESS'];
}
What should be changed so that the shipping address that was chosen during the checkout is assigned to $vars.
Here is an example of the a checkout and I put the part of the mail below with the shadow and as you can see the shipping address that I chose is not shown in the mail.
Thanks in advance.