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

Phoca Cart - complex e-commerce extension
Fränki
Phoca Member
Phoca Member
Posts: 20
Joined: 04 Aug 2016, 10:49

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

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48535
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
Post Reply