|
The Shoctor
|
 |
« on: August 16, 2010, 10:14:37 am » |
|
I wanted to be sure I wasn't missing anything before I started digging around in the code, but there are a few things I need from the store.
Tickets for events need a few things and a few optional things that would really help. Required: Item Availability date- I need tickets to be able to be setup in advanced and go on sale at a specific date/time. Item expiration- I need items to have a date/time when they can no longer be purchased. Registration Key- I need to be able to issue them a unique identifier for their item that I will be using in another system for them to reserve their seat.
Optional: Together Discounts- For instance since we do LAN Parties we would like you to get a discount if you purchase events in advance. Like you buy a ticket to the next event and the one after and you get a discount. The best example I could find of this would be prestashop mod better together. The other work around would be only allowing a coupon to be used if a cart is over a specific amount.
I apologize if any of this is already in the store. I have only been working with it for about an hour but I am really pleased, but I am sure I might have missed some things.
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #1 on: August 16, 2010, 10:42:49 am » |
|
Item Availability date- I need tickets to be able to be setup in advanced and go on sale at a specific date/time. Item expiration- I need items to have a date/time when they can no longer be purchased.
That sounds like a good feature request I can add a system to do a start date and end date for products Registration Key- I need to be able to issue them a unique identifier for their item that I will be using in another system for them to reserve their seat.
Our system supports a license key system for downloads. A workaround might be to add a text file as a download with a description of the event. Then just add a list of registration keys to be used as the license keys.
|
|
|
|
|
Logged
|
|
|
|
|
The Shoctor
|
 |
« Reply #2 on: August 16, 2010, 10:54:15 am » |
|
Thanks for the super quick reply. I have been toying with it, the only problem I see is that I need to allow people to purchase more than one seat at a time. And from what testing I have done if you buy 5 seats (items) you only get one key. This is not a problem itself. The thing is when I dig back through the DB, I can't easily see what key is linked to which transaction. My work around for the old system was to make the "download" really just a link to another php file that would generate the ticket(s) based upon the transaction information. But that would mean having to do a poor hack job on your code. (Mine is never pretty.) And then the next time you update it would break my changes.  I guess the quick version of this ramble would be: I would need a way of linking the license key to a transaction.
|
|
|
|
|
Logged
|
|
|
|
|
The Shoctor
|
 |
« Reply #3 on: August 16, 2010, 11:02:06 am » |
|
I apologize. One more thing I need would like to have, but I might just be overlooking something...
I NEED to have quantity remaining of an item shown.
|
|
|
|
|
Logged
|
|
|
|
|
The Shoctor
|
 |
« Reply #4 on: August 16, 2010, 12:28:34 pm » |
|
Well, I took care of the displaying quantity remaining. It was a simple change to the template.
I was going to add a section before comments that showed who bought the item and how many. It's another one of those things that people what to know when signing up for an event.
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #5 on: August 16, 2010, 12:32:42 pm » |
|
I am going to add the start/end date shortly. I recommend using something like Beyond Compare to see what files are edited.
|
|
|
|
|
Logged
|
|
|
|
|
The Shoctor
|
 |
« Reply #6 on: August 16, 2010, 01:35:42 pm » |
|
Thank you very much. Once I get the start and stop dates I will be in good shape. The last thing I am having an issue is working around linking a license key to a transaction.
This would also be nice because you could put their key on the order detail page with the download link.
Also, I have been looking at the download item code. I would like to be able to upload a small php file that if the system saw that string. Just say for instance (LANTicket-PC.php or LANTicket-Console.php) it would know that it should execute that code and present the page rather than just offering the raw file. My theory is then if the key is linked to the purchase I could generate a PDF ticket on the fly. So all the customer would see when they click on the download link a PDF or page that is displaying their ticket.
Thanks for your help!
|
|
|
|
|
Logged
|
|
|
|
|
The Shoctor
|
 |
« Reply #7 on: August 16, 2010, 02:24:02 pm » |
|
Also, I have been looking at the download item code. I would like to be able to upload a small php file that if the system saw that string. Just say for instance (LANTicket-PC.php or LANTicket-Console.php) it would know that it should execute that code and present the page rather than just offering the raw file.
Welp, I got this part I love SMF in. I apologize for ruining your nice code, but I needed a good base to work on and I thought that I would keep you updated. I don't mean to be a pain. If you ever want to see this slashed up code let me know. I guess after you get the dates squared away, the last thing I need to figure out is linking the license code. I could forget about that since I have it running my own code and just generate the ticket information from other unique fields. Like date/time of order, order id, user id. and some voodoo... But it would be easiest linking to a pre-made key. Thanks again for the help. Don't mean to be a pain with all the posts.
|
|
|
|
|
Logged
|
|
|
|
|
The Shoctor
|
 |
« Reply #8 on: August 16, 2010, 08:14:19 pm » |
|
Me again! I am sorry, got too much drive to get this ticket system finished once and for all and with such a good base to work from, well, I am having trouble stopping.  I got the linkage done between the transaction and the serial number/code. I decided to go on ID_BASKET from what I saw it's probably the safest bet. So now when they go to the my orders -> downloads if the item has a code it will be displayed in the column. And I thought about it and tried to get to see other people's codes and ya can't cause the query also matches on your user id! I attached an image example of that.
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #9 on: August 16, 2010, 08:24:03 pm » |
|
Me again! I am sorry, got too much drive to get this ticket system finished once and for all and with such a good base to work from, well, I am having trouble stopping.  I got the linkage done between the transaction and the serial number/code. I decided to go on ID_BASKET from what I saw it's probably the safest bet. So now when they go to the my orders -> downloads if the item has a code it will be displayed in the column. And I thought about it and tried to get to see other people's codes and ya can't cause the query also matches on your user id! I attached an image example of that. Looks great! Will add that as well.
|
|
|
|
|
Logged
|
|
|
|
|
The Shoctor
|
 |
« Reply #10 on: August 17, 2010, 09:11:06 am » |
|
Back at it again. I was just thinking we may not want to display the pricing for other member groups. I just went in a REMed out those lines, but it could be a nice toggle for some of your other customers. Not that it was a huge deal to show, but for events most of the Staff also attends, so we like to just make their tickets free. But at the same time I don't want it displayed. 
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #11 on: August 17, 2010, 09:44:38 am » |
|
Posted a new udpate Version 1.4beta 1 +Added product options to control the start/end date of an item. Note admin's can still see the item +Added setting to allow you to display the qty remaining of an item +Added license code/key next to download link !Fixed item in stock message on no category display of items Download at http://www.smfhacks.com/index.php/topic,825.msg5016.html#msg5016Keep a copy of your changes since the install will wipe over those use something like beyond compare to check for the changes
|
|
|
|
|
Logged
|
|
|
|
|
The Shoctor
|
 |
« Reply #12 on: August 17, 2010, 11:42:12 am » |
|
I saved my changes and I installed the update to check it out... And I don't know what happened, but now the store will no longer load. It just times out.
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #13 on: August 17, 2010, 11:45:51 am » |
|
What SMF version are you using? Can you get to the store's admin area inside smf?
|
|
|
|
|
Logged
|
|
|
|
|
The Shoctor
|
 |
« Reply #14 on: August 17, 2010, 11:54:10 am » |
|
2.0 RC3, and I get get to the admin page just fine. Just not the store front.
EDIT: I also wanted to add that I checked down the files that I had modified that were working and your new changes and I don't see really anything between this version and the last (forget about my changes) that would make this happen. I am going to walk away from it for a bit and come back with a clearer head.
|
|
|
|
« Last Edit: August 17, 2010, 12:01:34 pm by mkreafle »
|
Logged
|
|
|
|
|