Modify

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#1836 closed Neues Feature (fixed)

CrossSelling-Gruppen Sortierung nutzen

Reported by: Karsta Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.6.0
Component: Shop Version: 2.0.5.1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Torsten Riemer)

In der Datei admin/cross_sell_groups.php sind noch asbach uralte xtc Relikte drin.
So wurde wohl vor langer Zeit für die cross_sell_groups.php die order_status.php kopiert und diese Zeile nicht korrekt angepasst:
$contents[] = array('text' => '<br /><b>' . $oInfo->orders_status_name . '</b>');

Außerdem wird in der Datenbank eine Sortierung eingetragen, die man leider nicht nutzen kann, da das Inputfeld dafür fehlt.
Ich hänge hier mal die korrigierte Datei admin/cross_sell_groups.php mit ran.

Wenn man nun die Sortierung der Gruppen auch im Frontend nutzen möchte, was ich für sinnvoll halte, muss dafür allerdings noch die Sortierung für Crossellinggruppennamen auch in die Datei includes/classes/products.php mit eingegeben werden.

SUCHEN:

      $cross_sells_query = xtDBquery("SELECT px.products_xsell_grp_name_id,
                                             pxg.groupname
                                        FROM ".TABLE_PRODUCTS_XSELL." px
                                   LEFT JOIN ".TABLE_PRODUCTS_XSELL_GROUPS." pxg
                                             ON px.products_xsell_grp_name_id = pxg.products_xsell_grp_name_id
                                                AND pxg.language_id = '".(int)$_SESSION['languages_id']."'
                                       WHERE px.products_id = '".(int)$pID."'
                                    GROUP BY px.products_xsell_grp_name_id");

ERSETZEN:

      $cross_sells_query = xtDBquery("SELECT px.products_xsell_grp_name_id,
                                             pxg.groupname
                                        FROM ".TABLE_PRODUCTS_XSELL." px
                                   LEFT JOIN ".TABLE_PRODUCTS_XSELL_GROUPS." pxg
                                             ON px.products_xsell_grp_name_id = pxg.products_xsell_grp_name_id
                                                AND pxg.language_id = '".(int)$_SESSION['languages_id']."'
                                       WHERE px.products_id = '".(int)$pID."'
                                    GROUP BY px.products_xsell_grp_name_id
									ORDER BY pxg.xsell_sort_order
									");

Attachments (1)

cross_sell_groups.php (14.6 KB ) - added by anonymous 6 years ago.

Download all attachments as: .zip

Change History (10)

by anonymous, 6 years ago

Attachment: cross_sell_groups.php added

comment:1 by Torsten Riemer, 6 years ago

Description: modified (diff)

comment:2 by Gerhard Waldemair, 5 years ago

Milestone: modified-shop-2.0.5.2modified-shop-2.0.6.0

comment:3 by Torsten Riemer, 5 years ago

Component: AdminShop

comment:4 by karsta, 5 years ago

Und dann sollte natürlich noch folgendes für die Sortierung der CrossSellingGruppen in die Datei includes/classes/product.php (Zeile:390) eingefügt werden:

ORDER BY pxg.xsell_sort_order ASC

comment:5 by anonymous, 5 years ago

Sorry, nach Zeile 373

GROUP BY px.products_xsell_grp_name_id
ORDER BY pxg.xsell_sort_order ASC");

comment:6 by Torsten Riemer, 5 years ago

Milestone: modified-shop-2.0.7.0modified-shop-2.0.6.0
Type: Bug/FehlerNeues Feature

comment:7 by Gerhard Waldemair, 5 years ago

Resolution: fixed
Status: newclosed

In 13117:

fix #1836 - add sort order for xsell groups

comment:8 by Gerhard Waldemair, 5 years ago

In 13118:

fix #1836 - add sort order for xsell groups

comment:9 by Gerhard Waldemair, 5 years ago

In 13119:

fix #1836 - add sort order for xsell groups

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.