- Posts: 20
- Thank you received: 4
Remove Pricing on User's Email Template
3 months 2 days ago #372359
by posurreal
Remove Pricing on User's Email Template was created by posurreal
-- url of the page with the problem -- :
wmrhill.com/glass-containers
-- HikaShop version -- : 6.5.0
-- Joomla version -- : 6.1.1
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Firefox and Chrome
-- Error-message(debug-mod must be tuned on) -- : N/A
Hi there,
I used AI to assist with the email template changes and we've made great progress! However, I can't seem to remove the $0.00 on the email template for the user who filled out the request.
My client is in a panic, thinking the user will assume the product is free. I've commented out references to pricing directly in the admin area and I manually uploaded order_notification.preload.modified.php through the file manager. See attached, changed php to txt for security purposes.
In configuration, Display Price is set to No.
Perhaps that doesn't apply to the email template?
Thanks for your time,
Mary
-- HikaShop version -- : 6.5.0
-- Joomla version -- : 6.1.1
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Firefox and Chrome
-- Error-message(debug-mod must be tuned on) -- : N/A
Hi there,
I used AI to assist with the email template changes and we've made great progress! However, I can't seem to remove the $0.00 on the email template for the user who filled out the request.
My client is in a panic, thinking the user will assume the product is free. I've commented out references to pricing directly in the admin area and I manually uploaded order_notification.preload.modified.php through the file manager. See attached, changed php to txt for security purposes.
In configuration, Display Price is set to No.
Perhaps that doesn't apply to the email template?
Thanks for your time,
Mary
Please Log in or Create an account to join the conversation.
3 months 2 days ago #372362
by nicolas
Replied by nicolas on topic Remove Pricing on User's Email Template
Hi,
You're right: the "Display price = No" setting only affects the shop pages, not the emails. The order emails have their own templates, so the price has to be removed there.
Two things to fix the approach:
1. Edit it in the back-end, not by uploading files by hand. Go to System > Emails and open the email. When you edit and save there, HikaShop stores your change as an override automatically (the .modified.php file), so there is no need to upload anything through the file manager.
2. Edit the right email. The email your customer receives when the order is placed is "Order creation notification". The one you changed, order_notification, is the email sent when you click on the "email" button of an order in the backend, so it is most likely not the one your customer is seeing.
In that email's HTML version (not the "preload", the HTML is where the price is simply displayed), remove these three parts. Each is wrapped in clear comment markers, so they are easy to find:
- the unit price column: the block from
to
, and the block from
to
- the line total column: the matching
and
blocks
- the totals at the bottom (subtotal, shipping, tax, order total): the whole section from
to
That leaves the product name and quantity but no prices. After saving, place a test order to confirm the email your client receives no longer shows any amount.
You're right: the "Display price = No" setting only affects the shop pages, not the emails. The order emails have their own templates, so the price has to be removed there.
Two things to fix the approach:
1. Edit it in the back-end, not by uploading files by hand. Go to System > Emails and open the email. When you edit and save there, HikaShop stores your change as an override automatically (the .modified.php file), so there is no need to upload anything through the file manager.
2. Edit the right email. The email your customer receives when the order is placed is "Order creation notification". The one you changed, order_notification, is the email sent when you click on the "email" button of an order in the backend, so it is most likely not the one your customer is seeing.
In that email's HTML version (not the "preload", the HTML is where the price is simply displayed), remove these three parts. Each is wrapped in clear comment markers, so they are easy to find:
- the unit price column: the block from
Code:
<!-- PRODUCT PRICE TITLE -->
Code:
<!-- EO PRODUCT PRICE TITLE -->
Code:
<!-- PRODUCT PRICE VALUE -->
Code:
<!-- EO PRODUCT PRICE VALUE -->
Code:
PRODUCT TOTAL TITLE
Code:
PRODUCT TOTAL VALUE
- the totals at the bottom (subtotal, shipping, tax, order total): the whole section from
Code:
<!--{START:ORDER_FOOTER}-->
Code:
<!--{END:ORDER_FOOTER}-->
That leaves the product name and quantity but no prices. After saving, place a test order to confirm the email your client receives no longer shows any amount.
Please Log in or Create an account to join the conversation.
3 months 2 days ago #372368
by posurreal
Replied by posurreal on topic Remove Pricing on User's Email Template
Eureka! This is fabulous information!
1) I'll definitely use the administrator area to customize those accordingly.
2) I was editing order_notification.preload.modified.php and similar files VS order_creation_notification.preload.modified.php. Yes, I will focus on the HTML version
3) Thanks for the tags to look for related to pricing since I'm using it as a quoting system.
Thanks Nicolas!
1) I'll definitely use the administrator area to customize those accordingly.
2) I was editing order_notification.preload.modified.php and similar files VS order_creation_notification.preload.modified.php. Yes, I will focus on the HTML version
3) Thanks for the tags to look for related to pricing since I'm using it as a quoting system.
Thanks Nicolas!
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
Time to create page: 0.278 seconds