Controlling Product State via URLs
In addition to Loading a Default Gallery Image, the product state URL parameters have been expanded with some new additions.
Aspect Option
The selected aspect option can be controlled using:
state[aspect][X][option]=Y
Where X
is the name or ID of the target aspect and Y
is the name, ID or SKU
of the desired aspect option.
Text
The default text for specific text areas can now be controlled using:
state[text_areas][X][text]=Custom%20Gateway
Where X
is the name, internal name or ID of the text area.
Note In both cases, if X
or Y
have any spaces or other special characters, they must be
encoded.
Note Names are case sensitive.
Examples
Availability
-
Currently only available in
acp3_2-staging
but will be rolled out toacp3_2
on the 29th August. -
State URLs are a part of the core software and can therefore be used in any v3 app that has been updated to the latest version.