Hi All,
Just updated my first of 5 shops to 1.3 and noticed that my attributes are now ordered in alphabetical order and not by the order entered as in 1.2.5.
This is great for most attributes, but makes a Small/Medium/Large/X Large/XX Large list look horrible putting large first.
Where has the change been made? and can it be reversed?
Dan
Just updated my first of 5 shops to 1.3 and noticed that my attributes are now ordered in alphabetical order and not by the order entered as in 1.2.5.
This is great for most attributes, but makes a Small/Medium/Large/X Large/XX Large list look horrible putting large first.
Where has the change been made? and can it be reversed?
Dan
Nineplus USA - Now on Prestashop 1.4.7
Nope, it still is ordered like this:
Large
Medium
Small
X Large
XX Large
I've got no idea how to solve it =(
Large
Medium
Small
X Large
XX Large
I've got no idea how to solve it =(
Nineplus USA - Now on Prestashop 1.4.7
Try this out - http://www.presto-ch...bute-order.html
Works flawless, i just brought this literally 2 mins ago, installed and bobs your uncle. Simple drag and order.
He has some really great other modules too, i think he should work for prestashop :)
Works flawless, i just brought this literally 2 mins ago, installed and bobs your uncle. Simple drag and order.
He has some really great other modules too, i think he should work for prestashop :)
Fancy Dress Costumes - Fantasy Costumes UK and Worldwide delivery - Fancy Dress Costumes, Shoes & Accessories - www.Fantasy-Costumes.co.uk
From 1275393277:
Hi All,
Just updated my first of 5 shops to 1.3 and noticed that my attributes are now ordered in alphabetical order and not by the order entered as in 1.2.5.
This is great for most attributes, but makes a Small/Medium/Large/X Large/XX Large list look horrible putting large first.
Where has the change been made? and can it be reversed?
Dan
Just updated my first of 5 shops to 1.3 and noticed that my attributes are now ordered in alphabetical order and not by the order entered as in 1.2.5.
This is great for most attributes, but makes a Small/Medium/Large/X Large/XX Large list look horrible putting large first.
Where has the change been made? and can it be reversed?
Dan
This is bugging me out, anyone found a solution to this. I don't want to install a module for this. Would appreciate it if someone can point me in the right direction. Thanks
**SOLVED* Hi sgtbash and everyone else looking for the same solution.
The attribute order of 1.3 can be reversed back to the order as in 1.2.5. To do this make the following changes;
1. In /classes/Product.php function: getAttributesGroups()
replace
with
2. In /product.php
comment out the following on lines 285 and 286
to
Please Note: The order of attributes is the order in which you add them to each product. I will soon post a more elegant solution where you can set the order of the attributes in each group in the back office.
The attribute order of 1.3 can be reversed back to the order as in 1.2.5. To do this make the following changes;
1. In /classes/Product.php function: getAttributesGroups()
replace
ORDER BY al.`name`');
with
ORDER BY pa.`id_product_attribute`');
2. In /product.php
comment out the following on lines 285 and 286
foreach($groups AS &$group)
natcasesort($group['attributes']);
to
// foreach($groups AS &$group)
// natcasesort($group['attributes']);
Please Note: The order of attributes is the order in which you add them to each product. I will soon post a more elegant solution where you can set the order of the attributes in each group in the back office.
Thank you justme54s !!!
It solved my problem too !!! I just been playing with Prestashop for a couple of days now, and it looks very promising !!
Your help is very much appreciated !!
Marcelo.
It solved my problem too !!! I just been playing with Prestashop for a couple of days now, and it looks very promising !!
Your help is very much appreciated !!
Marcelo.
HELP!
I tried the above but when I changed them and uploaded them my homepage goes completely blank.
I'm not sure if this matters but the lines that are supposed to be replaced, there is a space missing between foreach and the bracket. I.e. when you search:
foreach($groups AS &$group)
natcasesort($group['attributes']);
it can't find it, so you have to search for the same with a space, as in:
foreach ($groups AS &$group)
natcasesort ($group['attributes']);
I'm new to Prestashop, but I thought I followed this pretty closely
I tried the above but when I changed them and uploaded them my homepage goes completely blank.
I'm not sure if this matters but the lines that are supposed to be replaced, there is a space missing between foreach and the bracket. I.e. when you search:
foreach($groups AS &$group)
natcasesort($group['attributes']);
it can't find it, so you have to search for the same with a space, as in:
foreach ($groups AS &$group)
natcasesort ($group['attributes']);
I'm new to Prestashop, but I thought I followed this pretty closely
Hi everyone.
First of all thank's to justme54s! It work's form me.
I think we all expecting your promised module.
Meanwhile I attached the two modified files. Just replace it, and it's done.
You will have the sort order by ID. In my case (s, m, l, xl, xxl).
Don't forget! The order of attributes is the order in which you add them to each product.
Replace the first file (Product.php) in root/classes/product.php
Replace the second file (product.php) in root/product.php
It's coded in prestashop version 1.3.2. Older versions are not tested!
classyjoes, indeed It have some space errors, so you can download the two file attached and it will work for you.
First of all thank's to justme54s! It work's form me.
I think we all expecting your promised module.
Meanwhile I attached the two modified files. Just replace it, and it's done.
You will have the sort order by ID. In my case (s, m, l, xl, xxl).
Don't forget! The order of attributes is the order in which you add them to each product.
Replace the first file (Product.php) in root/classes/product.php
Replace the second file (product.php) in root/product.php
It's coded in prestashop version 1.3.2. Older versions are not tested!
classyjoes, indeed It have some space errors, so you can download the two file attached and it will work for you.
Attached Files
Hello
I have pretashop version 1.3.5 and tried to make the changes as suggested on here but i get a blank page. I downloaded the files and compared to make sure all spacing was correct etc and as far as im concerned they are exactly the same as suggested on here.
Could this be anything to do with me having a newer version? Or any ideas what I may be doing wrong please?
thanks
Rob
I have pretashop version 1.3.5 and tried to make the changes as suggested on here but i get a blank page. I downloaded the files and compared to make sure all spacing was correct etc and as far as im concerned they are exactly the same as suggested on here.
Could this be anything to do with me having a newer version? Or any ideas what I may be doing wrong please?
thanks
Rob
I too get a blank page.
Messed about for ages to get it back to normal.
Can someone comment what could be going wrong here?
I am using the 1.3.6.0 version btw.
Messed about for ages to get it back to normal.
Can someone comment what could be going wrong here?
I am using the 1.3.6.0 version btw.
Thank-You Very, Very much for posting a fix for the funky attributes order issue justme54s and to Jeet Kune Do for posting the files!!
I have been struggling with this attribute order for dang near half a day now and your fix seems to be working for me so far. I am running PrestaShop v.1.3.7 and so far I have not run across any errors.
So again I applaud you for finding a fix for the attribute order.
I have been struggling with this attribute order for dang near half a day now and your fix seems to be working for me so far. I am running PrestaShop v.1.3.7 and so far I have not run across any errors.
So again I applaud you for finding a fix for the attribute order.
Hi Dishpet,
How do you solvet this? I make the changes but I get a blank page. I am using with V.1.3.7. Can you help me please?
Ths
How do you solvet this? I make the changes but I get a blank page. I am using with V.1.3.7. Can you help me please?
Ths
In version 1.4 you have to change in classes/Product.php on line 2136:
to
and the same modifications must be made in classes/Cart.php, on line 420, for the attributes to be sorted in the same way in the shopping cart.
ORDER BY agl.`public_name`, al.`name`');
to
ORDER BY agl.`id_attribute_group`, al.`name`');
and the same modifications must be made in classes/Cart.php, on line 420, for the attributes to be sorted in the same way in the shopping cart.
Quote
In version 1.4 you have to change in classes/Product.php on line 2136:
ORDER BY agl.`public_name`, al.`name`);
to
ORDER BY agl.`id_attribute_group`, al.`name`);
and the same modifications must be made in classes/Cart.php, on line 420, for the attributes to be sorted in the same way in the shopping cart.
ORDER BY agl.`public_name`, al.`name`);
to
ORDER BY agl.`id_attribute_group`, al.`name`);
and the same modifications must be made in classes/Cart.php, on line 420, for the attributes to be sorted in the same way in the shopping cart.
Only changing this line in the 1.4 will not disappear me 01. 02. etc.
Thanks in advance
From 1303068357:
Quote
In version 1.4 you have to change in classes/Product.php on line 2136:
ORDER BY agl.`public_name`, al.`name`);
to
ORDER BY agl.`id_attribute_group`, al.`name`);
and the same modifications must be made in classes/Cart.php, on line 420, for the attributes to be sorted in the same way in the shopping cart.
ORDER BY agl.`public_name`, al.`name`);
to
ORDER BY agl.`id_attribute_group`, al.`name`);
and the same modifications must be made in classes/Cart.php, on line 420, for the attributes to be sorted in the same way in the shopping cart.
Only changing this line in the 1.4 will not disappear me 01. 02. etc.
Thanks in advance
The solution that I was reffering to doesn't require adding numbers before the name of the attribute, it will sort the attributes by the order they were added in BO.
The problem is that I'm adding to csv and I was not properly organized.
The combinations are dates in format 01-01-2011 02-01-2011.
Prestashop organize:
01-01-2011
01-02-2011
01-03-2011
The combinations are dates in format 01-01-2011 02-01-2011.
Prestashop organize:
01-01-2011
01-02-2011
01-03-2011




Back to top











