Jump to content

Can't add accessories (v1.1)


Recommended Posts

Dear all,

Please excuse this noobalicious post, but I am having real trouble with my PrestaShop install. I have a fresh install of v1.1 and I have added two products for testing purposes. I cannot however associate these products using the Accessories option on the product page in the Back Office. When I hit the drop down all I see is 'No match found'. Shouldn't my all my entered products be available? I've not encountered this previously and hope you might lend me a hand.

Best,
Meg

Link to comment
Share on other sites

Thanks for your quick reply, Patric! No, I'm afraid I didn't, though I will bear that in mind. I did add two more products for a total of 4. I could see these two newly added products in the drop down, but had to delete and re-add the original two in order to associated them as accessories. Very strange. Perfectly happy to accept is user error, but pretty confident I am using it correctly, but have only been working with it for 3 weeks or so.

Link to comment
Share on other sites

  • 3 weeks later...

I've had pretty much the same problem with a new install, version 1.1.0.5.

I added two products. Neither would show up in the accessories list. I added a third, and this showed up in the drop down, but still not the other two.

So it appears that the first two products added to the shop are not showing in the accessories list.

Link to comment
Share on other sites

Indeed, Birdman, you describe precisely the issue I encountered in both a version 1.1.x install and my current 1.2.0.5 install. I can also confirm that if products are imported by CSV all but the first two products appear in the accessories list.

Link to comment
Share on other sites

I had a look at the code responsible for populating the drop down.

I changed line 1799 in the file /admin/tabs/AdminProducts.php

from

for (i = 1, j = 1; i < accessories.length; i++)



to

for (i = 0, j = 1; i < accessories.length; i++)



and I'm pretty sure that fixes the problem for 1.1. Without the change, the list is always one product short.

I had a look at the SVN truck, and yes, someone has done the same thing there.

-Ryan

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...