Opened 7 years ago
Last modified 7 years ago
#1507 closed Frage
Hook getAttributes in includes/classes/main.php — at Version 1
| Reported by: | Owned by: | somebody | |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.5.0 |
| Component: | Shop | Version: | 2.0.4.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description (last modified by )
Hi,
die Erweiterung der main.php ist mir in Bezug auf die Methode
getAttributes nicht schlüssig:
//new module support
$attributes = $this->mainModules->getAttributesSelect($attributes,$paramsArr,$paramsArrOrigin);
$attributes wird mit der Ergebnis-Refferenz aus der Datenbankabfrage belegt. Diese soll dann durch die Erweiterungen manipuliert werden?
um zum Schluss mit
return xtc_db_fetch_array($attributes);
zu antworten?
Ich glaube, die Methode sollte nach "new module support" so lauten:
function getAttributes($products_id, $option_id, $value_id, $add_select = '', $left_join = '') {
[...]
//new module support
$attributes = xtc_db_fetch_array($attributes);
$attributes = $this->mainModules->getAttributesSelect($attributes,$paramsArr,$paramsArrOrigin);
return $attributes;
}
Viele Grüße
Andreas
Note:
See TracTickets
for help on using tickets.
