Skip to content

Commit

Permalink
order basket
Browse files Browse the repository at this point in the history
  • Loading branch information
spiderr committed Aug 1, 2018
1 parent ac032fd commit 69b96f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/CommerceShoppingCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function load() {
$bindVars[] = $gBitUser->mUserId;
}

$query = "SELECT `customers_basket_id` AS `hash_key`, cb.* FROM " . TABLE_CUSTOMERS_BASKET . " cb WHERE `cookie`=? $whereSql";
$query = "SELECT `customers_basket_id` AS `hash_key`, cb.* FROM " . TABLE_CUSTOMERS_BASKET . " cb WHERE `cookie`=? $whereSql ORDER BY cb.`customers_basket_id` DESC";
if( $products = $this->mDb->getAssoc( $query, $bindVars ) ) {
foreach( $products as $basketId=>$basketProduct ) {
$this->contents[$basketProduct['products_key']] = $basketProduct;
Expand Down

0 comments on commit 69b96f1

Please sign in to comment.