Jump to content

Chyba v Emailu:Potvrzení objednávky [Prestashop 1.5.2]


Recommended Posts

v emailu Potvrzení objednávky se spatne zobrazuje tabulka seznamu zakoupeneho zbozi. Take se email zobrazuje jinak v Gmailu a jinak treba na Seznamu nebo Outlooku. Problem je v tom, ze dojde k odstraneni teto casti kodu z html emailu:

 

 

<colgroup>

<col width="15%"/>

<col width="30%"/>

<col width="20%"/>

<col width="15%"/>

<col width="20%"/>

</colgroup>

 

takze kod html emailu potom neobsahuje informace o sirce <td>. Take je problem s sirkou cele tabulky. Pokusil jsem se udelat upravu, aby se email zobrazoval vsude stejne.

 

Reseni:

 

nakopirujte soubor PaymentModule.php z prilohy do slozky override/classes

 

* pouzijte jen pro verzi 1.5.2

 

upravu jsem delal narychlo urcite to jde zjednodusit.

PaymentModule.php

Edited by Ventos312 (see edit history)
Link to comment
Share on other sites

  • 4 months later...
  • 2 weeks later...
  • 1 year later...

Díky :)

 

Pokud jsem správně pochopil, stačí jen změnit fci:

public function formatProductAndVoucherForEmail($content)
	{
//		return $content;
                return '<table style="width: 600px; font-family: Verdana,sans-serif; font-size: 11px; color: #374953;">
						<colgroup>
							<col width="15%"/>
							<col width="30%"/>
							<col width="20%"/>
							<col width="15%"/>
							<col width="20%"/>
						</colgroup>'.$content.'</table>';
	}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...