Remove Pricing on User's Email Template

  • Posts: 20
  • Thank you received: 4
  • Hikashop Business
18 hours 48 minutes ago #372359

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

This message has an attachment file.
Please log in or register to see it.

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

  • Posts: 85783
  • Thank you received: 14073
  • MODERATOR
14 hours 39 minutes ago #372362

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

<!-- PRODUCT PRICE TITLE -->
to
<!-- EO PRODUCT PRICE TITLE -->
, and the block from
<!-- PRODUCT PRICE VALUE -->
to
<!-- EO PRODUCT PRICE VALUE -->
- the line total column: the matching
PRODUCT TOTAL TITLE
and
PRODUCT TOTAL VALUE
blocks
- the totals at the bottom (subtotal, shipping, tax, order total): the whole section from
<!--{START:ORDER_FOOTER}-->
to
<!--{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.

  • Posts: 20
  • Thank you received: 4
  • Hikashop Business
13 hours 31 minutes ago #372368

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!

The following user(s) said Thank You: nicolas

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

Time to create page: 0.054 seconds
Powered by Kunena Forum