Page 1 of 1

Attribut-Typ Text in Bestellmail leer / Attribute type Text empty in order mail

Posted: 15 Jul 2019, 13:31
by Fränki
Hallo,

Ich habe bei den Attributen Textfelder hinterlegt in die der Kunde z.B. eigene Slogans für ein Druckprodukt eintragen kann.

In der Bestellübersicht im Shop werden die Daten gespeichert und angezeigt. In der Bestellmail stehen nur die Optionstitel aber nicht die eingetragenen Texte der Kunden.

Wo könnte das Problem liegen?

Danke Gruß Frank.

----------------------------------------------

I have stored in the attributes text fields in which the customer, for example. can enter their own slogans for a printed product.

The data is stored and displayed in the order overview in the shop. The order mail contains only the option titles but not the registered texts of the customers.

Where could the problem be?

Thanks, Frank.

Re: Attribut-Typ Text in Bestellmail leer / Attribute type Text empty in order mail

Posted: 16 Jul 2019, 15:11
by Jan
Hi,

try to open this file:
components\com_phocacart\layouts\order.php

and on line cca 559 change
FROM:

Code: Select all

$p[] = '<li><span class="ph-small ph-cart-small-attribute ph-idnr-li">'.$v2->attribute_title .' '.$v2->option_title.'</span></li>';
TO:

Code: Select all

//$p[] = '<li><span class="ph-small ph-cart-small-attribute ph-idnr-li">'.$v2->attribute_title .' '.$v2->option_title.'</span></li>';
				
				
				$p[] = '<li><span class="ph-small ph-cart-small-attribute ph-idnr-li">'.$v2->attribute_title .' '.$v2->option_title.'</span>';
				 if (isset($v2->option_value) && urldecode($v2->option_value) != '') {
                    $p[] =  ': <span class="ph-small ph-cart-small-attribute">' . htmlspecialchars(urldecode($v2->option_value), ENT_QUOTES, 'UTF-8') . '</span>';
                }
				$p[] = '</li>';
This should display the info about the values.

But the question is if such info should be displayed in order/delivery note or invoice?

Jan