Modify

Opened 9 years ago

Closed 6 years ago

Last modified 6 years ago

#1050 closed Bug/Fehler (fixed)

Fehler in print_product_info.php

Reported by: Ronald Parcinski Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.5.0
Component: Shop Version: 2.0.0.0
Keywords: Cc:
Blocked By: Blocking:

Description

Der Eintrag bei NAME wird seltsam zusammengebaut.
Evtl wäre es auch besser die Attr.Preise in ein separates Feld zu schreiben.
Das wäre dann aber nicht mehr abwärtskompatibel.

foreach ($attributes['DATA'] as $key => $value) {
        $module_content[] = array('GROUP' => $attributes['NAME'],
                                  'NAME' => $value['TEXT'] . ((isset($value['PREFIX'])) ? ' ('.$value['PREFIX'].$value['PRICE'].')' : '')
                                  );
      }

Attachments (0)

Change History (8)

comment:1 by Torsten Riemer, 9 years ago

Milestone: modified-shop-2.0.2.0modified-shop-2.0.2.1

comment:2 by Torsten Riemer, 9 years ago

Milestone: modified-shop-2.0.2.1modified-shop-2.1.0.0

comment:3 by Torsten Riemer, 9 years ago

Milestone: modified-shop-2.1.0.0modified-shop-2.0.3.0

in reply to:  description comment:4 by anonymous, 9 years ago

Replying to web28:

Der Eintrag bei NAME wird seltsam zusammengebaut.
Evtl wäre es auch besser die Attr.Preise in ein separates Feld zu schreiben.
Das wäre dann aber nicht mehr abwärtskompatibel.

foreach ($attributes['DATA'] as $key => $value) {
        $module_content[] = array('GROUP' => $attributes['NAME'],
                                  'NAME' => $value['TEXT'] . ((isset($value['PREFIX'])) ? ' ('.$value['PREFIX'].$value['PRICE'].')' : '')
                                  );
      }

Jau, das mußte ich schonmal für einen Kunden im Template fixen der das Prefix nicht angezeigt haben wollte (hat Erweiterung auf '='):

{$module_data.NAME|regex_replace:'#[\=]#':''}

In den Options-Templates hat das Prefix ein eigenes Smarty.

Gruß,
noRiddle

comment:5 by Torsten Riemer, 8 years ago

Milestone: modified-shop-2.0.4.1

comment:6 by Gerhard Waldemair, 6 years ago

Resolution: fixed
Status: newclosed

seit r11909 stehen alle Attribut Variablen im Template zur Verfügung.

comment:7 by Gerhard Waldemair, 6 years ago

Milestone: modified-shop-2.0.5.0

comment:8 by Gerhard Waldemair, 6 years ago

In 11909:

fix #1050 & #1590

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.