What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello, Do you know if is it possible to preselect product concrete automatically in product detail p

USZB5JN4W
USZB5JN4W Posts: 112 🧑🏻‍🚀 - Cadet

Hello,
Do you know if is it possible to preselect product concrete automatically in product detail page? I have product abstract and plenty of concretes with specific attributes and super attributes. Product abstract has no attributes at all and I want to show user the cheapest product concrete from the beginning, with preselected super attributes, “add to cart” button and normal attributes list.

Comments

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 🧑🏻‍🚀 - Cadet

    I've done something similar the other day.
    My solution was to go into ProductController->detailAction and build the concrete url there. Pick all the concrete's super attributes and their values, build the query string out of it and append it to the abstract url. Finally, you can redirect to the attributed concrete url and the pdp should have it selected correctly.