Sort Product

apa

No avatar

2008-08-02 15:41

I know I can sort product by set the position but this field has been limited to 3 numbers.I've at least 3000 product.how can I remove this limit?
I wanna product, listed in date of added.
any suggestion?

» Quick.Cart v3.x

beholder

Avatar: beholder

2008-08-03 02:58

I think it's easy to change when modifying the underlying template in templates/admin/ ... that is, if you add the products by hand. If you do it by a script and the QuickCart doesn't allow more than 3 numbers, you have to ask the QC author to do this.

QC v3.x

Makaron

Avatar: Makaron

2008-08-04 10:30

Just find this line in templates/admin/products.tpl

<input type="text" name="aPositions[$aData[iProduct]]" value="$aData[iPosition]" class="inputr" size="2" maxlength="3" />


and change maxlength value.

apa

No avatar

2008-08-12 20:13

can I edit some code and product listed automatically by its id?

Makaron

Avatar: Makaron

2008-08-13 16:21

Yes in Quick.Cart 3.x it's possible just edit file db/en_products.def.php and change order of variables in array $aFieldsSort. After save products this array telling by which fields products should be sorted..

apa

No avatar

2008-08-13 19:58

thanks to Makaron,but which variables is about product's ID?

beholder

Avatar: beholder

2008-08-14 02:57

dude you don't make sense, you need take your English studies more seriously

Makaron

Avatar: Makaron

2008-08-14 09:47

In Your case this array should look like this:

$aFieldsSort    = Array( 'iProduct', .. another fields ..);

apa

No avatar

2008-08-17 19:04

ok,makaron. I did that but now the last product added , coming in last page.I like when I add product, it come in first page(page 1) not last page .
thanks in advance

Makaron

Avatar: Makaron

2008-08-18 09:30

Unfortunately in our script there isn't option to sort in "desc" order..

apa

No avatar

2008-08-18 19:32

thanks anyway!

Back to top
about us | contact