cancel
Showing results for 
Search instead for 
Did you mean: 

Order of simple (child) products inside the Configurable (parent) product

Order of simple (child) products inside the Configurable (parent) product

Hello everyone,

 

I have a lot of Configurable products with lots of simples as the variations. The problem we are having is that we want the simples in specific orders inside the Configurable based on which is most popular.

We have gone through the Import file and made sure they are in the order we want for each Configurable, but when they have been imported this order is disregarded.

Products in the same attribute set won't all have the same order of the variations so changing the order of those doesn't solve the problem.

 

An example is for a product the configurable_variations field that has been imported is as follows:

sku=TSSLET104080G,finish=Gold,packaging=Boxed|sku=TSSLET104080PS,finish=Polished Chrome,packaging=Boxed|sku=TSSLET104080S,finish=Silver,packaging=Boxed|sku=TSSLET104080W,finish=White,packaging=Boxed|sku=TSSLET104080BL,finish=Black,packaging=Boxed|sku=TSSLET104080VG,finish=Gold,packaging=Visi Packed|sku=TSSLET104080VPS,finish=Polished Chrome,packaging=Visi Packed|sku=TSSLET104080VS,finish=Silver,packaging=Visi Packed|sku=TSSLET104080VW,finish=White,packaging=Visi Packed|sku=TSSLET104080VBL,finish=Black,packaging=Visi Packed

 

But the products then rearrange to align with the attribute set (see below image), is there any way (or a plugin) to overwrite this function and allow the Configurations to be sorted per configurable product?

Screenshot 2019-04-15 at 11.08.45.png

6 REPLIES 6

Re: Order of simple (child) products inside the Configurable (parent) product

Hi @duffells_ltd 

 

The import file functionality of Magento doesn't maintain the order of file data in which it has been listed. The core purpose of Import and Export functionality is to give the admin to manage the multiple records in a single operation.

 

But, if you want to maintain the position of all configurable products, you can manage them through the Category page of back-end. Follow the below steps -

  • Navigate to the Category page.
  • Select the appropriate category.
  • Look for the "Products in Category" configuration. There will be a "Position" column where you can define the priority in the form of a number with "0" has the highest priority.

This way, you can position your configurable products under each category page.

 

Hope it helps!

Found the above suggestion helpful, hit the "Kudos" & Accept as Solution!

Thank you,
Rohan D.
Free & Premium Magento 2 Extensions

Re: Order of simple (child) products inside the Configurable (parent) product

It's not the order of the configurable products we want to change, it's the simple products that are listed as their variations (shown in the image).

We need to reorder the attribute labels for each configurable, so on dropdowns etc. they are in a set order. https://drive.google.com/open?id=1bKLVE_FMt68ZMfZXS9hC32qQN9O81GNsScreenshot 2019-04-15 at 12.15.01.png

Changing the order in the product attributes is not a viable solution as different configurable products in the same attribute set will require different orders.

So one product might require 'Black' to be listed first for Finish, others might need it listed last.

Re: Order of simple (child) products inside the Configurable (parent) product

Hi @duffells_ltd 

 

Unable to load the image. Would you please upload it on Google drive or trusted third-party web application and share it over here?

Found the above suggestion helpful, hit the "Kudos" & Accept as Solution!

Thank you,
Rohan D.
Free & Premium Magento 2 Extensions

Re: Order of simple (child) products inside the Configurable (parent) product

Re: Order of simple (child) products inside the Configurable (parent) product

Hi @duffells_ltd 

 

Thanks for the screenshots.

 

Sadly, Magento doesn't allow the admin to prioritize the order of attribute values and you should achieve the same programmatically.

 

None of the extensions are available in the market, which can fulfill this business requirement.

 

Hope it helps!

Found the above suggestion helpful, hit the "Kudos" & Accept as Solution!

Thank you,
Rohan D.
Free & Premium Magento 2 Extensions

Re: Order of simple (child) products inside the Configurable (parent) product

@R_Doshi  what do you mean "you should achieve the same programmatically" is there a way to achieve the result we're after?