Bazaar | Web PHP Social Listings/Classifieds Shopping Template [XServer]


Bazaar | Web PHP Social Listings/Classifieds Shopping Template [XServer] - 1
Bazaar | Web PHP Social Listings/Classifieds Shopping Template [XServer] - 2
Bazaar | Web PHP Social Listings/Classifieds Shopping Template [XServer] - 3
Bazaar | Web PHP Social Listings/Classifieds Shopping Template [XServer] - 4
Bazaar | Web PHP Social Listings/Classifieds Shopping Template [XServer] - 5


Bazaar is a great solution for those who need to quickly build a website where people can list their used or new items for sale, and the community can browse ads and chat with products owners to agree on payments and purchases

Android version of Bazaar template

iOS version of Bazaar template

Online Documentation of Bazaar

Bazaar | Web PHP Social Listings/Classifieds Shopping Template [XServer] - 6


Bazaar is a full-working Web PHP Template for posting and browsing Ad listings. Have your clients find cool stuff, like and share ads to popular social networks.
Users can also chat with sellers to discuss price, shipping, or anything else.

This script can share the same database of the iOS and Android versions

The Admin should daily check the database for reported content/users, and take action for it.

The design is clean, code is commented and project folders and files are well organized in the package.

• Check out the Features section below to see what this app does.
• Read the online Documentation to learn how to configure the template’s features and the database.

• Check out the demo Database, login as:

Username: demo
Password: demo

• Check out the Demo Website

• Keep an eye to the Change Log on the bottom of this page when an update gets released.


The backend of this template is XServer, so you can either buy the XServer REST API an install it on your own VPS server, or create an account on and a Database for this app.
After performing the configurations mentioned below, you will run the app and see no content, so Sign Up with a test user in order to create a test account and start testing the app.

NOTE: in case you want to implement your own backend to this template, you do not need to buy the XServer API, nor create an account on, but please be aware that implementing a different backend to this template must be performed by you or your developers.

Extended License

As per Envato Marketplace Terms, the Extended License applies to all applications that charge money to their users. In case your users will not be charged of money through your own version of this app, you can still buy it under a Regular license.
Therefore, you must buy this template under and Extended License if your plans are either one or more of the following:

  • Add In-App Purchase or any other Payment Gateway in the source code and publish the app for free on the App/Play Store – NOTE: If you want to publish your own version of this application for FREE only, then you can still buy it under a Regular License.
  • Publish this application as a PAID app on the App Store.
  • Transfer the live app of your own verison of this app on the App/Play Store to another owner by selling your ownership on or similar marketplaces.

IMPORTANT: You ARE NOT allowed to sell or share the original source code of this template anywhere due to copyright infringement


PHP/Javascript/HTML/CSS language – Edit the template as you wish with SublimeText or any other HTML editor

Bootstrap – Responsive – jQuery – Get the power of responsiveness and Javascript functions with jQuery and Bootstrap libraries

PHP 7.x ready – Take advantage of the latest version of PHP, this script is compatible with it.

Backend with XServer – Built on a great and reliable BaaS that offers many features with just a few clicks, it’s super easy to create and set up a database on, as well as use the XServer REST API hosted on your VPS server.

Browse stuff from people you follow and don’t, and yours too – From the Home page, you can search for ads from any place, use the Google Map to select your location – you must allow it on your browser – or search for an address to fetch listings.

Chat with sellers – Ads owners can get private messages from interested users and reply in real time.

Change location on a custom Google Map popup – To either post ads or browse them, you can select a location by opening up the Map and clik on it to set a pin and search for products. You can also type a custom address or city name and select the distance range.

Email verification – After signing up, people will get an email with a validation link. Users with a verified address will be displayed in their profile pages.

Edit/Delete your own Ads – From the Listing Info page, people can choose to delete or edit their items with the 3-dot options button.

Report inappropriate listings or people – Users are able to flag offensive content/sellers, the Admin must daily check the database to see what has been reported and take action for it.

Like listings – Save favorite ads by liking them, you can find them in your Account page -> Liked section.
Search listings by keywords – Keywords search is essential, so you can perform it to find what you need around the selected location.

Custom Google Map popup – The Map shows up inside a popup window, you can place a pin with just a click, and it has got a slider to set a distance range where you want to search ads for.

Notifications page – Check likes and followers in this page, and get to users profiles.

See your Account’s data – The Account page is where you can enter the settings and see what ads you have posted, sold or liked.

Settings page – Edit your profile, avatar picture and biography, or logout the website.

Terms of Use and Privacy Policy HTML file (GDPR compliant) – The template contains an HTML file the Admin can edit to display his Terms of Service to the app’s users.

Google Sign in – People can quickly sign up or sign with their Google account from the Intro page.

Push Notifications – The website sends pushes to the mobile versions only.

Modern, clean design – The UI has been carefully crafted to offer the best user experience to your clients.

Online Documentation – Read the extensive guide of this template to be able to configure it properly.

PSD icons included in the package – App and buttons icons are stored into a PSD folder, for easy image replacement.


Sublime Text or any other HTML/text editor software – You may use Dreamweaver, Atom, or even EditText.

Basic knowledge of HTML/CSS and PHP languages – You don’t need to be a skilled or professional developer, anyway it’s recommended to have at least the basic knowledge of what you’re dealing with, to be able to customize this template.

XServer API – You can either create an account and a Database on, or buy the XServer REST API and host it into your own VPS server.

A domain + VPS server – This template has been tested on GoDaddy and Amazon AWS Lightsail, so these area the providers I strongly recommend you to use. DO NOT upload the files on or other free hosting providers, otherwise the script will NOT work!.

An active SSL certificate for your domain – This is to ensure that your website will get the https:// security prefix (not the http one), so the Facebook login feature will work properly, as well as other functionalities of this script.

Chrome, Firefox, Edge or Safari browsers – They are the most used internet browsers, although I suggest you to use Chrome for debugging too, it has got a great console that helps developers on editing the website.

Change Log

February 6, 2021

Due to the missing '&' character issue when saving data in the database, I've edited all the XSObject()'s instances in the following files:

- Edited the 'XSSignUp()' and 'XSObject()' functions in the 'XServerSDK.php' file

February 5, 2021

- Fixed a small bug for the description div that wasn't detecting line breaks:
a) Edited the code below the '<h4>Description</h4>' tag in the 'item-info.php' file
b) Edited the '#itemDescription' element in the 'style.css' file.

January 26, 2021

- Edited the 'citiesList' array in the 'XServerSDK.php' file by adding a first generic item as
    "All US Cities" 

- Edited the IF statements of the 'queryItems()' function in the 'listings.php' file
- Edited the code in the Location div of the 'list-item-info.php' file by adding these lines:
    var locList = citiesList;

In this way, you can now perform a search in all the cities of your website on the Home page and also on the Listings page.

December 16, 2020

- Added some code into the 'deleteItem()' function of the 'list-item-info.php' file, in order to delete Messages and Chats related to the deleted Item

November 23, 2020

- Wrapped some code into the 'XSSendPushNotifications()' function of the 'XServerSDK.php' file into an IF statement, in order to make such function run faster

September 11, 2020

- Edited the 'XSObject()'' function in the 'XServerSDK.php', now it can retrieve the saved data as a JSON object, so it can be used within the saving function
- Edited all the calls of the 'XSObject()'' function in the other PHP files where such call is present

July 30, 2020

- Adjusted the code in the 'my-items.php' and 'saved-items.php' files, to load data in a better way on Firefox while browsing the My Items and Saved Items pages
- Removed this line in the 'XSSendPushNotification()' function of the 'XServerSDK.php' file:{ icon: 'error', title: 'Oops...', text: 'Something went wrong.', });
Replaced it with:
    console.log('XSSendPushNotification -> Something went wrong: ' + e.message);

July 23, 2020

- Fixed a small bug in the 'settings.php' and 'user-login.php' files by changing 'XSForgotPassword()' into 'XSResetPassword()'

July 16, 2020

- The backend has been changed form Parse Server into XServer
- Redesigned UI and code

June 6, 2020

- Edited the following files in order to show a 728x90px Leaderboard ad on the top of each page:

December 23, 2019

- Updated the 'main.js' file to compile with the latest Parse Server 3.x version | Remember to update the Parse Server version of your app on back4app from the 'Manage Parse Server' section!


For any support requests, please contact me through my Profile’s Contact Form

Rate my Work

Your support is always greatly appreciated, from comments to product’s reviews, so please click here to rate your purchases!

Vendor Information

  • Store Name: xscoder
  • Vendor: xscoder
  • No ratings found yet!