WebsiteBaker Support (2.8.x) > Bakery Shop

Arrange products in Bakery by dragging.

(1/1)

Frankkuin:
Is there a possibility to arrrange the products on a Bakery page by dragging a product tot the top (as in the page window). Or is there a possibility to arrange the products automaticly by newest added products on top.

jacobi22:

--- Quote ---Or is there a possibility to arrange the products automaticly by newest added products on top.
--- End quote ---

Look at this Code in view-summary.php


--- Code: ---// Query items (for this page)
$query_items = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_bakery_items WHERE section_id = '$section_id' AND active = '1' AND title != '' ORDER BY position ASC".$limit_sql);
$num_items = $query_items->numRows();
--- End code ---

and change the Order from ORDER BY position ASC
to
ORDER BY item_id DESC

Stefek:
Hello,

this patch may help you, but the thread is in german only:
https://forum.WebsiteBaker.org/index.php?topic=20267.0

Regards,
Stefek

sky writer:
English Translation:
https://forum.WebsiteBaker.org/index.php/topic,21023.msg143863.html#msg143863

Stefek:
Right, James. I already forgot about your translation.
I put the link on the top of the original thread now.
Thank you again.

Regards,
Stefek

Navigation

[0] Message Index

Go to full version