Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug PSCSX-4596. duplicatde filter selection #2458

Closed
wants to merge 4 commits into from
Closed

Fix bug PSCSX-4596. duplicatde filter selection #2458

wants to merge 4 commits into from

Conversation

ikorogodsky
Copy link

If you choose "Default order by PRODUCT PRICE, PRODUCT NAME, PRODUCT QUANTITY or PRODUCT REFERENCE" in back office settings, the selected attribute of #selectProductSort in front office duplicates that leads to errors in old browser.

here is the html code of such an error in product_sort.tpl in any category
[select id="selectProductSort" class="selectProductSort form-control"]
[option value="price:asc" SELECTED="SELECTED"]--[/option]
[option value="price:asc" SELECTED="SELECTED"]Price: Lowest first[/option]
[option value="price:desc"]Price: Highest first[/option]
[option value="name:asc"]Product Name: A to Z[/option]
[option value="name:desc"]Product Name: Z to A[/option]
[option value="quantity:desc"]In stock[/option]
[option value="reference:asc"]Reference: Lowest first[/option]
[option value="reference:desc"]Reference: Highest first[/option]
[/select]
that code will never pass w3c validation as well. If you choose other options in back office the problem dissappeared.

If you choose "Default order by PRODUCT PRICE, PRODUCT NAME, PRODUCT QUANTITY or PRODUCT REFERENCE" in back office settings, the selected attribute of #selectProductSort in front office duplicates that leads to errors in old browser.
here is the html code of such an error in product_sort.tpl in any category
<select id="selectProductSort" class="selectProductSort form-control">
<option value="price:asc" SELECTED="SELECTED">--</option>
<option value="price:asc" SELECTED="SELECTED">Price: Lowest first</option>
<option value="price:desc">Price: Highest first</option>
<option value="name:asc">Product Name: A to Z</option>
<option value="name:desc">Product Name: Z to A</option>
<option value="quantity:desc">In stock</option>
<option value="reference:asc">Reference: Lowest first</option>
<option value="reference:desc">Reference: Highest first</option>
</select>
that code will never pass w3c validation as well. If you choose other options in back office the problem dissappeare
gRoussac added a commit that referenced this pull request Feb 9, 2015
@ikorogodsky
Copy link
Author

nice

@gRoussac
Copy link
Contributor

gRoussac commented Feb 9, 2015

Thank you.

Regards

@gRoussac gRoussac closed this Feb 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants