I have a customer that wants to build a site for second hand selling
Its not a regular store
He needs the clients to be able to select a category’ upload item description, price, there phone number and so on
Then the item should be displayed in the site at the relevant category page
I thought using the WIX Code to structure such database and display
What would you think would be the best way to build such structure?
'ĢlE
Hay Bestsite.israel,
They way I’d approach such a project is by creating a single collection with the category, title, description, photo and price fields (as well as any other fields you need there).
By setting the permissions to user generated content, you enable anyone to view the collection, but only site members to create new items and only the user who created an item to modify it.
Now you just need to create a few pages -
-
an item page to display the items
-
another item page to modify that is also set as a protected page. In this page you select the dataset to be read-write and use input elements and a submit button
-
a dynamic category page with a gallery that has the category field as part of the url, with links to the first page
-
a regular page for “my items” with a table filtered on the active user (this does require a little coding to get the active user from wix-users and set the dataset filter).
-
a regular page to add a new item using a write-only dataset and input elements.
-
a regular page with categories and links to the dynamic category page.
Hope this helps
Thanks Yoav
i’m going to try it
I had created it but there is one issue
the images are not uploaded from the input page
if i upload them manually to the DataBase then it shows on the product table and on the product page
Any idea why the why the image is not uploaded?
the site is:
https://bestsiteisrael.wixsite.com/yad2
There is a bug with the image upload right now, they are fixing it - do a search in this community , as there are other posts about this with workarounds.
You can now connect the upload button without code !. Check https ://www.wix.com/code/home/forum/product-updates/connect-upload-button-to-your-collection