Email ordered product list design in Phoca cart

Phoca Cart - complex e-commerce extension
orangia
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 13 Oct 2023, 12:16

Email ordered product list design in Phoca cart

Post by orangia »

Hi!

I am sending two different emails, one to the customer and one to the vendor with different information. When using the tag {HTML.DOCUMENT} in the customized emails, I found the documents to change it (components> com_phocacart> layouts> mail> html> order> products.php). For example I don't want the price to be shown in that. But I can't find where the documents are for the tag {DOCUMENT}. Since I want different information in the two emails, I need to make some changes in that one too (of course I am making an override).

If anybody knows how to do that, I am so grateful! :)

Regards,
Johanna
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48932
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Email ordered product list design in Phoca cart

Post by Jan »

Hi, the document is rendered in this layout:

components/com_phocacart/layouts/order.php

e.g. if used in PDF

When it is used in email, depends of if it is a text or html version:
HTML:
components/com_phocacart/layouts/phocacart/mail/html/order.php
TEXT:
components/com_phocacart/layouts/phocacart/mail/text/order.php

the order.php loads sublayouts from order folder.

Jan
If you find Phoca extensions useful, please support the project
orangia
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 13 Oct 2023, 12:16

Re: Email ordered product list design in Phoca cart

Post by orangia »

Thank you for a quick answer Jan! :)

I made an override to make changes in the sublayouts and it works in the email that goes to the vendor.
It shows this: https://imgur.com/a/nwokDAu

The email to the customer shows this (I have put red marks over what I want to remove): https://imgur.com/a/ser7WhP

Both are used with html. The only difference is that with the vendor I use the tag {HTML.DOCUMENT} and to the customer I use the tag {DOCUMENT}.
orangia
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 13 Oct 2023, 12:16

Re: Email ordered product list design in Phoca cart

Post by orangia »

Another thing. If it is not possible to change the above question. Is it possible to add the category for each product ordered in the email? I would be very grateful if someone knows how to do that! :)
/Johanna
Post Reply