Modify

Opened 12 years ago

Closed 12 years ago

#211 closed Bug/Fehler (fixed)

Fehler im Navtrail bei verlinkten Produkten in product_info

Reported by: ps@… Owned by: Ronald Parcinski
Priority: normal Milestone: modified-shop-2.0.0.0
Component: Shop Version: 1.06
Keywords: Cc:
Blocked By: Blocking:

Description

Wenn ein Artikel in mehrere Kategorien verlinkt ist und eine Kategorie deaktiviert wird, kann es vorkommen, dass im Navtrail bei der Product_info die deaktivierte Kategorie angezeigt wird. (Kann im Demoshop reproduziert werden).

Die Ursache dafür könnte sein, da in xtc_get_product_path.inc.php der categories_status nicht überprüft wird.

Ich habe das bei unserem Shop gelöst indem ich in Zeile 23 in xtc_get_product_path.inc.php wie folgt geändert habe:

$category_query = "select p2c.categories_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, ".TABLE_CATEGORIES." c where p.products_id = '" . (int)$products_id . "' and p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id != 0 and c.categories_id = p2c.categories_id and c.categories_status != 0 limit 1";

Dadurch wird der Status jetzt auch abgefragt.

Attachments (0)

Change History (2)

comment:1 by Ronald Parcinski, 12 years ago

Owner: changed from somebody to Ronald Parcinski
Status: newaccepted

comment:2 by Ronald Parcinski, 12 years ago

Resolution: fixed
Status: acceptedclosed

In 6366:

fix #211

Modify Ticket

Action
as closed The owner will remain Ronald Parcinski.
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.