SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2012, 08:07:02 pm

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 45
Total: 45
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: 1 [2] 3 Go Down Print
Author Topic: Ticket Sales  (Read 4376 times)
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #15 on: August 17, 2010, 12:09:43 pm »

Hmm tested on my rc3 was ok enabled all the different front page blocks.

I would check your error log on your forum to see if there are any related errors.

What I do generally on a time out page. Is figure out what is causing it to timeout generally I keep adding die statements until I figure out what block of code is doing it.
See if you can see the categories by action=store;cat=1  or a product action=store;sa=view;id=1
Logged
The Shoctor
Newbie
*
Offline Offline

Posts: 27


View Profile
« Reply #16 on: August 17, 2010, 12:49:26 pm »

OMG I am soooooo sorry. This was totally my fault and didn't even notice!

I have a block on the site that loads from another site... And to keep it from being an iFrame it actually pulls the page down... It's for my stupid Teamspeak server status... Well it was down and causing timeouts.

EDIT:
I have disabled the block and I am working well it seems.
« Last Edit: August 17, 2010, 12:50:57 pm by mkreafle » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #17 on: August 17, 2010, 12:52:29 pm »

No problem at all. Glad you found what is causing. I am pretty impressed that you have started to modify the store for their own needs Smiley
Logged
The Shoctor
Newbie
*
Offline Offline

Posts: 27


View Profile
« Reply #18 on: August 17, 2010, 01:18:34 pm »

Well to be honest we/I was a little apprehensive about paying, I had written our old seating registration system for wordpress. Well, we ditched that and I just have a hard time making things from the ground up. But we has tried many other ecommerce solutions, but nothing really does what we wanted. But you had such a great base product and the fee was so worth not pulling my hair out. Once I got it installed and got in to peek at the code I found it very easy to modify.

Also, I never really worked with a diff type program, but your suggestion of Beyond Compare is very nice. The demo even lets me see a quick side-by-side.

One thing that I noticed is the way you linked the code to the item is a bit different than I did it because I need to go backwards to build a ticket...

Is it ok to post code snip-its?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #19 on: August 17, 2010, 01:26:29 pm »

It's fine to post snippets for code etc

Generally I try to make it pretty easy to modify. Normally function name for the template/display then function name2 to handle the data posted. I tend to stick to only a couple php function calls and use them for all the code so do not have to do a lot of looking up how a function works or if it works with a certain php version.

Probably the hardest part for me was the shopping cart system and data storage.

I wasn't really impressed with other shopping carts either. I do actually have a online hosted solution for prestashop carts that I was working on. But general seems like so many steps to get a product added.
Logged
The Shoctor
Newbie
*
Offline Offline

Posts: 27


View Profile
« Reply #20 on: August 17, 2010, 01:49:00 pm »

The weirdness we had with PrestaShop is that people just could flat out not logon. This was the biggest reason we are leaving it. It went so well, testing and everything, but when it came to going live we just had TONs of people with issues logging in and we just couldn't figure it out.

So, back to your system. I know I am just breaking things here, but check this out. The way you pull license code does some weird stuff.

I attached an image of what it does. Your code pulls every key I ever purchased, but mine only pulls the key from that transaction. (Which is how I need it so I can go back and see how many seats are associated with that key.)

Your code pulls it all at once, which does work, but not for what I need.
Code:
SELECT f.ID_FILE, f.title, f.filesize, f.maxdownloads, f.remotefilename, c.code
FROM {db_prefix}store_item_file as f
LEFT JOIN {db_prefix}store_item_code as c ON (c.ID_FILE = f.ID_FILE AND c.ID_MEMBER = " . $user_info['id'] .")
WHERE f.ID_ITEM = " . $context['store_itemid']);

Instead I left that alone. When the store goes through the completetransaction phase and assigns the key it also attaches the Basket ID to the ID_TRANS of the code table. (I should probably make that back to transaction ID to keep it consistent, but here is what I have.)
When you go to display the license code I run another query in that spot.
Code:
<td align="center">',$row['code'],'</td>'; //This is where you are displaying the code in the image attached.
//Begin my code
echo '<td align=center>';
$dbresult3 = $smcFunc['db_query']('', "
SELECT code
FROM {db_prefix}store_item_code
WHERE ID_FILE = " . $row['ID_FILE'] . " AND ID_MEMBER = " . $user_info['id'] . " AND ID_TRANS = " . $context['store_transid']);
$row3 = $smcFunc['db_fetch_assoc']($dbresult3);
$smcFunc['db_free_result']($dbresult3);
echo $row3['code'];
echo '</td>';
//End my code
echo '</tr>';
.
Should I just send you the two files I have edited so you can see my hack job first hand?
Logged
The Shoctor
Newbie
*
Offline Offline

Posts: 27


View Profile
« Reply #21 on: August 17, 2010, 02:41:12 pm »

Well, it seems there is only one thing left to get done... And I have NO idea how to do it.

http://www.thatsoftwareguy.com/ makes a "better together" module.

I guess the simplest way of explaining it by example.

For instance we have two upcoming events. Event A and Event B. Both are $15. BUT if you purchase together you get a $5 discount.

So I put event A and B in my cart. Boom $5 off.
So I put 2 of Event A and 2 of Event B in my cart. Pow $10 off.
So I put 3 of Event A and 2 of Event B in my cart. Still only $10 off.

I don't know how to figure out the logic to check that. That guys code is available and I have read through it, but frankly I just don't understand it. If his module or something like it could be put into this shop my world would be complete!

Just on a little side note... I made another little hack. I noticed that your shipping confirmation sends PMs on the board. I made the completion of an order do the same thing. I just found that gmail and a few others are fickle about our server... Some mail gets in, some gets junked... Some just vanishes so this helps greatly.

EDIT: Sorry for the abrupt name change. I figured that if you ever visited my site that you could id me since the names now match.
« Last Edit: August 17, 2010, 03:07:20 pm by The Shoctor » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #22 on: August 17, 2010, 03:13:09 pm »

hmm

Well if use the shopping cart mode on the store you could do something like
If Item 1 and Item 2 is in the cart deduct $5 from the shopping cart.
Now for multiple event pairs.

For multiple pairs of events count the number of item 1 and number of item 2
For each pair deduct $5 from the cart total

Logged
The Shoctor
Newbie
*
Offline Offline

Posts: 27


View Profile
« Reply #23 on: August 17, 2010, 03:21:24 pm »

Might be more trouble than it's worth... Might be simpler to do say a 15% off coupon for orders $30 and over. I don't know how often this issue would present itself. It's extremely rare that we have two events scheduled out. Usually it's case by case on venue, but now that we have a stable venue looks like our scheduling is going to be easier.
Logged
The Shoctor
Newbie
*
Offline Offline

Posts: 27


View Profile
« Reply #24 on: August 18, 2010, 09:58:00 pm »

Welp, I gave you almost a whole day without dealing with me. But I gotta say I have been hard at work...
I made it PM people on sale completion instead of just email. I linked the code to the transaction.
The ticket.php download executes the php and creates a pdf of the ticket. (Almost done this part.)
Sorry, it's late and I am off to bed, but I thought I would just drop a line. More tomorrow.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #25 on: August 18, 2010, 10:04:44 pm »

Sounds great what are you doing for pdf generation or using?
Logged
The Shoctor
Newbie
*
Offline Offline

Posts: 27


View Profile
« Reply #26 on: August 19, 2010, 09:43:02 am »

fpdf is what I am working with now. It's a bit more of challenge because you have to layout all items by code, but overall it's pretty easy to use. Just lots of tinkering.

Also, just as a personal preference I flipped the main store page to show items first then categories.

Once I get the last few parts squared away I will show you a sample ticket. Smiley
Logged
The Shoctor
Newbie
*
Offline Offline

Posts: 27


View Profile
« Reply #27 on: August 22, 2010, 03:23:14 pm »

Well, the store is open. And things appear to be going well!

But again, I have another question. I have noticed that you can add custom fields and I noticed in the database that it's table has a price field. I am going to keep looking, but am I missing something? I want to add a field that if selected will increase the cost by the entered value. Is this built in to the system already?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #28 on: August 22, 2010, 03:25:20 pm »

Not currently that was something I was looking into adding at one point but started to get somewhat complicated
Logged
The Shoctor
Newbie
*
Offline Offline

Posts: 27


View Profile
« Reply #29 on: August 22, 2010, 04:43:26 pm »

Well, I have tacked it on, again like the other things, somewhat crudely. And so far it only works with check boxes... I am still in testing to see if it will actually take the count down. I promise once I get done with my mangling I will send it back to you and you can decide if you want any of my changes. Or hopefully you could at least check that I didn't break anything important. Wink
Logged
Pages: 1 [2] 3 Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 08:02:50 am]

[Today at 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.278 seconds with 18 queries.