Is there a way to convert Sort Options in HeatClinic from links to dropdown??
productSortOptions.html:-
Code: Select all
<a blc:addsortlink="salePrice asc"><span th:utext="#{productSortOptions.price}"></span></a>
Regards,
rudy
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.
Moderator: jocanas
Code: Select all
<a blc:addsortlink="salePrice asc"><span th:utext="#{productSortOptions.price}"></span></a>
Code: Select all
<select onchange = "window.location=this.options[this.selectedIndex].value">
<option value="http://www.google.com">GOOGLE</option>
<option value="http://www.hotmail.com">HOTMAIL</option>
</select>
Code: Select all
<a blc:addsortlink="price"><span th:utext="#{productSortOptions.price}"></span></a>
Code: Select all
@Override
protected Map<String, String> getModifiedAttributeValues(Arguments arguments, Element element, String attributeName) {
Map<String, String> attrs = super.getModifiedAttributeValues(arguments, element, attributeName);
String url = attrs.get("href");
attrs.remove("href");
attrs.put("value",url );
return attrs;
}
Code: Select all
<bean id="blAddSortLinkProcessor" class="<your_extended_class_here>" />
Code: Select all
<select onchange = "window.location=this.options[this.selectedIndex].value">
<option blc:addsortlink="price" />
<option blc:addsortlink="name" />
</select>
Return to “Broadleaf Commerce”
Users browsing this forum: No registered users and 55 guests