خرید بک لینک
Hi,

I have registered and designed a website with wix.com.

Until the 20th November 2017 I was able to import products to the Store via a CSV file. Wix have now removed the option.

So using the Wix Code I managed to

1. Created a collection, import all my products to the collection via CSV,
2. Add a gallery to a separate page
3. Coected the dataset to my collection
4. Coected the Gallery to dataset


I would like to add a x93Sortx94 option above the Gallery.

" SORT Price Low | Highx94 (two buttons for low and high)

I have no knowledge of coding/script.

So I added the question to the Wix code Forum and someone sent me this script:-

import wixData from 'wix-data';

$w.onReady( function() {
$w("#button227").onClick( (event, $w) => {
$w("#dresses1").setSort( wixData.sort()
.descending("price");
} );

$w("#button228").onClick( (event, $w) => {
$w("#dresses1").setSort( wixData.sort()
.ascending("price");
} );
} );


But when I added this script to the bottom of the page there is a red underline under the ; after descending("price")

I sent another message to the Wix forum about this message but no reply.

I appreciate if someone could give me any advice on this.

Thanks

برچسب: نویسنده: آیلین رضوانی تاريخ: شنبه 23 دی 1396 ساعت: 8:05

صفحه بندی