I’m trying to sort products by price, ASC and DESC with pdoPage and pdoresources:
But with pricing desc and
&sortby={"pricing":"desc]"}
option in pdoPage
I get this order :
€93.46
{“EUR”:{“regular_price”:9346,“price_types”:[]}}
€9.34 <----- ???
{“EUR”:{“regular_price”:934,“price_types”:[]}}
€92.52
{“EUR”:{“regular_price”:9252,“price_types”:[]}}
€91.59
{“EUR”:{“regular_price”:9259,“price_types”:[]}}
AND NOT
€9.34 <-----
{“EUR”:{“regular_price”:934,“price_types”:[]}}
€93.46
{“EUR”:{“regular_price”:9346,“price_types”:[]}}
€92.52
{“EUR”:{“regular_price”:9252,“price_types”:[]}}
€91.59
{“EUR”:{“regular_price”:9259,“price_types”:[]}}
I’m not sure it’s 100% related to Commerce (but my method could be wrong)
Here is the complete pdoPage call:
[[!pdoPage?
&parents=`[[*id]]`
&sortby=`{"[[!getUrlParam? &name=`filter_sort`]]":"[[!getUrlParam? &name=`filter_dir`]]"}`
&limit=`9`
&showUnpublished=`1`
&showHidden=`1`
&hideContainers=`0`
&tvPrefix=`tv.`
&includeTVs=`imgfeat,longtitle,offlineSale,artistSelector,image,stock,price,pricing,products,width,height,prodOrientation,prodRarity`
&processTVs=`1`
&tplWrapper=`pdowrapper_type01`
&tplCondition=`template`
&tplOperator=`==`
&conditionalTpls=`{"14":"swipperTplCard_concert",
"27":"swipperTplCard_product",
"9":"swipperTplCard_product",
"3":"swipperTplCard_product",
"1":"swipperTplCard_product",
"23":"swipperTplCard_product",
"4":"swipperTplCard_event",
"15":"swipperTplCard_exhibit",
"16":"swipperTplCard_festival",
"17":"swipperTplCard_live",
"18":"swipperTplCard_workshop"}`
&tpl=`swipperTplCard_fallback`
&sliderType=`slider-typegrid`
&sliderAddClasses=`shadow-cards`
&sliderName=`product-list`
&asgrid=`1`
&hideHeader=`1`
&tvFiltersAndDelimiter=`,`
&ajaxMode=`scroll`
]]