- Posts: 606
- Thank you received: 13
New issue with emails sent
- mohairbears
-
Topic Author
- Offline
Less
More
1 month 1 week ago - 1 month 1 week ago #373045
by mohairbears
New issue with emails sent was created by mohairbears
-- HikaShop version -- : 6.5.2
-- Joomla version -- : 5.4.7
-- PHP version -- : 8.3.33
-- Browser(s) name and version -- : Chrome
Hi, Since swapping to Vessel, I have now found that the system emails sent for orders are now MISSING address line 3? {address_street2}
This line is visible to 'edit' in checkout but is not visible in the checkout address?
It's still correct in 'custom fields' and also in the 'views' as far as I can see?
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_line2}
{address_street2}
{address_city}
{address_state}
{address_post_code}
{address_country}
Rgds
-- Joomla version -- : 5.4.7
-- PHP version -- : 8.3.33
-- Browser(s) name and version -- : Chrome
Hi, Since swapping to Vessel, I have now found that the system emails sent for orders are now MISSING address line 3? {address_street2}
This line is visible to 'edit' in checkout but is not visible in the checkout address?
It's still correct in 'custom fields' and also in the 'views' as far as I can see?
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_line2}
{address_street2}
{address_city}
{address_state}
{address_post_code}
{address_country}
Rgds
Last edit: 1 month 1 week ago by mohairbears. Reason: more info
Please Log in or Create an account to join the conversation.
1 month 1 week ago #373054
by nicolas
Replied by nicolas on topic New issue with emails sent
Hi,
Nothing changed in the emails, it's the address format which does not follow you when you change template.
HikaShop stores that format as a file inside the template folder :
When you edited the address format in the configuration, that file was written into the templates installed at that moment. Vessel was not one of them, so now that Vessel is your default template, HikaShop finds no file there and falls back to its own default format, which does not include the complement line. Same thing in the checkout, since the address block there is displayed with that same format.
Only the display is affected. The field itself, its custom field settings and the data stored on the orders are untouched, which is why you still see the line when editing the address.
To fix it, go in the HikaShop configuration, Checkout tab, and look for the "Address format" area. Add your {address_street2} line back where you want it and save. Saving writes the file in every template installed on your site, frontend and backend, so Vessel will get it and so will the next template you install.
If you prefer not to retype it, the file is still in your previous template. Copy it to templates/vessel/html/com_hikashop/address/address_template.php and it comes back as it was.
One remark on the list of tags you posted : {address_line2} is not a HikaShop field name, unless you created a custom field with that column name yourself. The standard complement field is address_street2. Unknown tags are simply removed when the address is displayed, so it does no harm, but it does nothing either.
Nothing changed in the emails, it's the address format which does not follow you when you change template.
HikaShop stores that format as a file inside the template folder :
Code:
templates/YOUR_TEMPLATE/html/com_hikashop/address/address_template.php
When you edited the address format in the configuration, that file was written into the templates installed at that moment. Vessel was not one of them, so now that Vessel is your default template, HikaShop finds no file there and falls back to its own default format, which does not include the complement line. Same thing in the checkout, since the address block there is displayed with that same format.
Only the display is affected. The field itself, its custom field settings and the data stored on the orders are untouched, which is why you still see the line when editing the address.
To fix it, go in the HikaShop configuration, Checkout tab, and look for the "Address format" area. Add your {address_street2} line back where you want it and save. Saving writes the file in every template installed on your site, frontend and backend, so Vessel will get it and so will the next template you install.
If you prefer not to retype it, the file is still in your previous template. Copy it to templates/vessel/html/com_hikashop/address/address_template.php and it comes back as it was.
One remark on the list of tags you posted : {address_line2} is not a HikaShop field name, unless you created a custom field with that column name yourself. The standard complement field is address_street2. Unknown tags are simply removed when the address is displayed, so it does no harm, but it does nothing either.
The following user(s) said Thank You: mohairbears
Please Log in or Create an account to join the conversation.
Time to create page: 0.192 seconds