Sorting products in Blurt Market on Blurt.pl

in blurt •  5 months ago  (edited)

I finally managed to figure out how to sort products in the Blurt Market :)

image

As you can see in the images attached above, Products can now be sorted by categories based on the tags attached to the entry:


  • Offers (tag: offers) - I will do, for example, a website, logo, program, service, work
  • Art (tag: art) - paintings, graphics, art, everything that falls under art :)
  • Handmade (tag: handmade) - handmade things of all kinds
  • Services (tag: services) - services such as cleaning, vehicle mechanics, etc
  • Clothing (tag: clothing) - all clothes :)
  • Looking for(tag: locatingfor) - I am looking for, I will commission
  • Design(tag: design) - I will design
  • NFT(tag: nft) - all nft :)

The last option is to manually enter a tag and sort the entries by tag. For now, it has a drawback that we need to know the exact name of the tag, but it can still be helpful.

image

I haven't thought much about the structure of all the categories that will be created, etc., but in order to maintain order, everyone who publishes on blurt market should from now on pay attention to what tags they use and use this list by adding one of them to their entry.

The second thing that will definitely catch your eye is the prices.


image

No, I didn't add them manually. The price is found by the script in the post content.

The script displays the lowest and highest prices found. This is not an optimal solution because the content may contain different prices, including partial prices, and the script is not "intelligent" and does not distinguish between them. In the future, when I figure out how to best figure it out, we will introduce a standard for publishing the price in the entry so that the script can find it well ;)

Ultimately, in the future, I dream of creating a special form for posting offers that will save them in the post in a unified format so that the script will have no problems finding the right data.

I encourage you to test the solution and report errors, as well as to publish according to the new scheme.

https://blurt.pl/market.php

Let me know what categories would be needed

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!