Posts:
11
Registered:
22-Dec-2014
|
|
|
|
Craft Show Kiosk with Inventory Access?
Posted:
4 Jan 22, 17:26
|
|
|
Does a skin currently exist that permits inventory database access? I've been a jAlbum user for many years, and I would like to create a kiosk (actually 3 kiosks) to display my photographs in my booth at craft fairs. I want the kiosks to be connected to a central database (I'm thinking MySQL, but I'm not married to the idea) that will permit inventory count (number of 8x10s, 11x14s, & 16x20s in stock at the show). Or, at the minimum, show whether at least 1 of a particular size is in stock. I'm not interested in customers purchasing with a shopping cart, as I have been using Square to process payment transactions.
I don't see how I can setup Tiger or Photoblogger to work, but I'd be happy to learn how. I'd also be happy to get suggestions on a direction to take to develop my own skin for these features. All help is appreciated.
My jAlbum gallery: http://soaringeagle.photography/gallery/
|
|
|
Posts:
493
Registered:
30-Aug-2004
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
5 Jan 22, 05:14
in response to: jimberry
|
 |
Helpful |
|
|
I don't think that any current skin produces pages that use scripts to extract data from a database like MySQL, but I believe that it is possible to add that functionality if you have or can learn PHP_ skills.
An early skin (BluPlusPlus) used PHP and MySQL to maintain a "user comments" capability.
See the response from n'Anders in this post
And this might also be helpful
|
|
|
Posts:
11
Registered:
22-Dec-2014
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
5 Jan 22, 09:14
in response to: jimberry
|
|
|
|
I have some PHP & MySQL skills. I currently use Square for inventory control, and I could export from Square then import to MySQL prior to a show.
I'd prefer no display of an out of stock image. An item count in the comment would work fine.
Edited by: rdubbs on 5 Jan 2022, 09:15
|
|
|
Posts:
493
Registered:
30-Aug-2004
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
5 Jan 22, 09:47
in response to: rdubbs
|
|
|
Have you looked at the two links in my second reply?
I am not familiar with Square, but I think you would be better off using the main database that gets regularly updated while you are selling rather than have it export to a second database every time you make a sale. Do you know whether PHP supports Square? If not, would you consider changing your main database to MySQL? You might have to get advice from the Square people on how to use it with PHP.
Is this test site something like what you are after? NOTE: this is not referring to a data base, it is just checking your required layout.
Suppressing the display of an out of stock image might be difficult.
|
|
|
Posts:
11
Registered:
22-Dec-2014
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
6 Jan 22, 15:41
in response to: jimberry
|
|
|
Thanks! Your demo page would work well. I very much like n'Anders reply in the MySQL thread. I will throw some time at this problem this weekend.
You can see my PHP/MySQL ability here (choose any name in the login dropdownĺ: http://frugalpix.com/nlwl/index.php
Edited by: rdubbs on 6 Jan 2022, 15:45
|
|
|
Posts:
493
Registered:
30-Aug-2004
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
6 Jan 22, 22:54
in response to: rdubbs
|
|
|
It seems that the Square POS system uses PHP to communicate with its database, so you shouldn't need to convert to MySQL.
Square should be able to help with the PHP code needed to extract stock levels into your jAlbum pages
Let us know how you go. This method of inventory access could be useful for other jAlbum users.
|
|
|
Posts:
11
Registered:
22-Dec-2014
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
7 Jan 22, 16:58
in response to: jimberry
|
|
|
|
Thank you for finding the Square info for me. This looks really promising. I will report back my findings, though I'm not a fast programmer so patience will be required. I really want to move my booth to digital display of my open stock photos, so I plan to be successful with this project.
|
|
|
Posts:
493
Registered:
30-Aug-2004
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
8 Jan 22, 00:05
in response to: rdubbs
|
|
|
|
I look forward to eventually seeing your results.
In my sample album, the inventory details were not extracted from a database, but simply typed (including newline characters) into the "Comments" box in the Explore>Details view.
Your PHP code could possibly do the same when extracting the "size" and "stock quantity" details from the "Square" database into PHP variables, but there may be other ways of formatting the information which would better reflect your intentions.
|
|
|
Posts:
11
Registered:
22-Dec-2014
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
16 Jan 22, 15:00
in response to: jimberry
|
|
|
|
I've been looking at the API information that Square provides. I believe that that resource could provide the service I need, however I'm not going to pursue that path right now. I have no experience working with APIs. It seems to me that jAlbum wants to hit a static database or paths (I'm not fully up to speed on jAlbum data access), and I have MySQL experience. My plan, now, is to see if I can get jAlbum to get inventory counts from MySQL, and then I'll write a PHP front end to that database so I can update inventory counts on the fly. It won't be entirely automatic, but I believe it will work. It also has the benefit that I cab run it locally, if I don't have Internet access.
|
|
|
Posts:
11
Registered:
22-Dec-2014
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
18 Jan 22, 03:34
in response to: jimberry
|
|
|
|
Success!!
Today I created a MySQL database, and then modified the SimpleSkin to produce PHP pages to get comments from the database. My near-term plan is to build a front end to the database that will permit database update 1) from a Square catalog file, and 2) manually.
My goal would be to PHP/MySQL enable a few major skins.
|
|
|
Posts:
11
Registered:
22-Dec-2014
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
18 Jan 22, 13:54
in response to: jimberry
|
|
|
|
I haven't found similar database access. Instead Square provides API access, which I have no experience with. Also, to directly access the Square database, I would have to have Internet access. I've been to shows without it. I believe that I will work on API connectivity in the future, but MySQL will work for now.
In practice, I'm not maintaining 2 databases - just 1. The Square database automatically updates as I make sales (both cash & card). So I only need to manually update my local database during a show. Presently, I have to remove a physical "In Stock" sticker on my display photo if I run out of inventory. The digital display will eliminate that.
When I have the database front end written, then I'll post my demo online.
Edited by: rdubbs on 18 Jan 2022, 13:55
Edited by: rdubbs on 20 Jan 2022, 11:16
|
|
|
Posts:
11
Registered:
22-Dec-2014
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
21 Jan 22, 13:25
in response to: jimberry
|
|
|
|
Further success!
This weekend, I'll post a "proof of concept" site that will be permit some manipulation. I have it to the point where the entire database can be updated from the Square items catalog, and individual items can be edited.
On the jAlbum side, I've modified the SampleOne skin to directly produce the PHP files needed for MySQL access. The only editing required is to set the MySQL access credentials. I have tried to modify the Tiger skin, and it threw a number of errors. I'm not which skin I'll settle on for my booth, but I expect it can be PHP/MySQL enabled.
One key consideration is the name of the photo in Square must be the same in jAlbum. If there are many photos in the album/catalog, synchronizing those names may be a challenge. I did a manipulation in a spreadsheet to change the names in Square, as Square permits catalog updates via CSV.
|
|
|
Posts:
11
Registered:
22-Dec-2014
|
|
|
|
Re: Craft Show Kiosk with Inventory Access?
Posted:
24 Jan 22, 16:46
in response to: jimberry
|
|
|
Proof of concept - http://frugalpix.com/php_jAlbum/index.php
Please be gentle. I believe everything works, but this is a very long way from finished.
Known issues
- It's not pretty (just functional)
- DB edit tool includes unnecessary features (e.g. Delete, Insert)
- Need to create skin/editor installation script inside jAlbum
Edited by: rdubbs on 24 Jan 2022, 17:28
Edited by: rdubbs on 24 Jan 2022, 17:29
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|