confirmation email

Phoca Cart - complex e-commerce extension
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: confirmation email

Post by Nidzo »

Do you use SMTP for sending system emails?
keep2000
Phoca Enthusiast
Phoca Enthusiast
Posts: 51
Joined: 14 Nov 2022, 12:04

Re: confirmation email

Post by keep2000 »

Nidzo wrote: 21 Sep 2023, 15:53 Go to order stasuses. You have several created but you create custom ones. Every order status has email option. You decide what you Phoca Cart will send to customer or shop administrator.
Does this mean I have to create the entire email myself from scratch for every order states?
Is there perhaps some example HTML available?
I'm a programmer, I don't trust myself about frontend things, especially when building something with TinyMCE; it might turn out to be ugly, at least not something well-formed by a proper designer :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: confirmation email

Post by Jan »

Hi, it is up to you which content do you want to send to your customers. As default, there is standard text, if you want to have own, just write your text to order status email text.

Just test the sending of emails and if the text and the content (e.g. included order information) does not fit your needs, just set your text.

Jan
If you find Phoca extensions useful, please support the project
keep2000
Phoca Enthusiast
Phoca Enthusiast
Posts: 51
Joined: 14 Nov 2022, 12:04

Re: confirmation email

Post by keep2000 »

Ah, I finally found the standard one.
I also came across this description for the placeholders: https://www.phoca.cz/documentation/115- ... or-vendors

My question is, when I want to build a complex email template, how should I use the list of the ordered products?

I also tried to paste an existing template, which is a bit long, and got this error:
"Save failed with the following error: Data too long for column 'email_text' at row 1."
As far as I can see, the field is a TEXT in the database, which is limited to 65,535 characters, and my template was longer than that. I know I should keep it short, but could you consider changing it to MEDIUMTEXT?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: confirmation email

Post by Jan »

Hi, ordered products are not set in variables as they are displayed per "order" (html, or pdf) where whole order is listed.

The text is standard in Joomla, in fact even for articles, there is no mediumtext. I will do a brainstorming with other develoeprs, but are you sure, you template is OK? Having more than 65,535 characters (even UTF-8 use two) is maybe to much and you can slow down the loading of data when sending email, saving it, etc.. :idea:
If you find Phoca extensions useful, please support the project
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: confirmation email

Post by mino182 »

Maybe using internal css (<style>) with some framework - bootstrap.min has 155836 chars
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: confirmation email

Post by Jan »

Hi, email templates mostly do not use any frameworks like bootstrap, the content is mostly build on tables (which is the safest design for all different email clients)

Jan
If you find Phoca extensions useful, please support the project
Post Reply