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
Email ordered product list design in Phoca cart
-
- Phoca Newbie
- Posts: 9
- Joined: 13 Oct 2023, 12:16
- Jan
- Phoca Hero
- Posts: 48932
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Email ordered product list design in Phoca cart
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
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
-
- Phoca Newbie
- Posts: 9
- Joined: 13 Oct 2023, 12:16
Re: Email ordered product list design in Phoca cart
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}.
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}.
-
- Phoca Newbie
- Posts: 9
- Joined: 13 Oct 2023, 12:16
Re: Email ordered product list design in Phoca cart
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
/Johanna