Jump to content

Separate product for each attribute/combination


editorstefan

Recommended Posts

Hello!

 

I want to create a separate product for each attribute of a product. How can i create this?

This is something that Prestashop really needs, alot stores use this.

 

Goal:

Display all the combinations in the product list (can be done with guide below)

But still be able to use stock

 

 

I use this solution now, but it creates different products and therefore the stock must be handled manually.

 

- Create 1 product for each color. (Or duplicate and just change the color).
- Remove the ID from product url, using this guide.
- When user clicks on any of them, he will get to the first one (since them all have same link).
- Now you just add all attributes to the 1st product
 
This will create:
Product 1 (Green, Blue, Red)   <- They will all link to this product.
Product 2 (Blue)
Product 3 (Red)
Edited by editorstefan (see edit history)
Link to comment
Share on other sites

I found a different solution for this:

 

I create every combination as a single product(Shirt red, shirt blue, shirt yellow...)

Then I combine the products as accessories. 

With the Modul Accessoires by presto changeo you can display the accessories in a better place.

Some coding, some css work and it looks like this:

 

https://www.dropbox.com/s/rfagq426hao4mcl/accessoires.jpg?dl=0

Edited by WarVermicelli (see edit history)
Link to comment
Share on other sites

I found a different solution for this:

 

I create every combination as a single product(Shirt red, shirt blue, shirt yellow...)

Then I combine the products as accessories. 

With the Modul Accessoires by presto changeo you can display the accessories in a better place.

Some coding, some css work and it looks like this:

 

https://www.dropbox.com/s/rfagq426hao4mcl/accessoires.jpg?dl=0

That was a creative solution! But then the website must load each time you choose different color.

 

 

 

Exactly. Best example for me is superdry.

Check it out:

www.superdry.com

 

on the category page, you can see every product, but when you choose one, you can choose between the color options.

 

Yeah exactly, that was good example!

Link to comment
Share on other sites

I have tried to implement this functionality in some earlier versions. You need to override and modify all SQLs which selects products in category list.

 

The views and controllers are pretty much the same. You will need an advance knowledge of SQL.

 

Thanks for your reply! 

 

Well, i only got basic knowledge, so i guess i would have to hire someone. But the intresst for this is high, so creating a module for sale wouldnt be a bad idea.

Link to comment
Share on other sites

Well you can find two solutions in this thread, which are not the best, but kind of work. 

With the Accessoires modul, you can use stock management, but as said, But then the website must load each time you choose different color.

 

A real solution for this, should come from the Shop itself. In List or grid mode, you should have the option what to show. If the shop can scan a category for each product and show it, then it should be able to scan for each color combination and show it as single product.

In the new presta version the shop is able to show color combinations when you hover over the product image in grid view. Based on this, creating a new pictured link for over color should not be that hard... 

 

If I just would be able to code...

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 1 month later...
  • 2 months later...
  • 6 months later...
  • 1 month later...

hi folks, are there modules that do this: im looking for a sitemap to be generated for combinations / attributes.

 

e.g. sitemap doesnt just have product name. like this: https://abc.com/cat/productName.html but if 3 attributes  , site map should have:

 

https://abc.com/cat/productName.html#/attributeName-value

https://abc.com/cat/productName.html#/attributeName-value2

https://abc.com/cat/productName.html#/attributeName-value3

 

do any modules do this? thank you

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...
  • 2 years later...
  • 11 months later...

hi guys i have a little problem with some product pages and category pages .

https://eshop.bennu.ir/search?controller=search&orderby=position&orderway=desc&search_query=lcd&submit_search=

as u see there is a disorder in products and i dont know how to fix this 

i think it's because of too long product name .

it would be great if you help me with this 

thanks alot

Edited by alfa33 (see edit history)
Link to comment
Share on other sites

16 hours ago, alfa33 said:

hi guys i have a little problem with some product pages and category pages .

https://eshop.bennu.ir/search?controller=search&orderby=position&orderway=desc&search_query=lcd&submit_search=

as u see there is a disorder in products and i dont know how to fix this 

i think it's because of too long product name .

it would be great if you help me with this 

thanks alot

This is not related with this topic BUT, as you can see in the picture if you remove that padding it will go up. 

image.thumb.png.f79331475b08ae6c27f824dacfe0314e.png
 

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...