The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add Product Actions to Lesane's Store Hack! Details »» | |||||||||||||||||||||||||||
Add Product Actions to Lesane's Store Hack!
Developer Last Online: Jun 2013
Physical Product Hack for Lesane's Store Hack
by ChurchMedia --------------------------------------------------------- NOTE: This hack has not been updated for the latest version of the Store Hack for VB2. I'll write a new hack if and when there is a VB3 version of the Store Hack --------------------------------------------------------- What this hack is for: If you want to sell actual products in your community store, such as books, videos, coffee mugs... whatever. I suggest adding products that promote your site. You can get all sorts of customized merchandise from Cafe Press. Before you ask, this is not a shopping cart to sell things with real money. It's to redeem points for tangible products. If you don't like the idea of giving stuff away for posting, this isn't the hack for you. --------------------------------------------------------- How this hack works/what it does (after initial setup): 1) You add a new action to the database from your admin cp 2) You modify 2 small parts of a code chunk and add it to your store.php 3) When a user purchases an item, they enter their address, etc. 4) You will receive an email with the product info and shipping info 5) The user receives a "receipt" by email as well --------------------------------------------------------- INSTRUCTIONS: 1) Follow the instructions in: initial_hack_instructions.txt You only have to do this once! --------------------------------------------------------- 2) For new actions, follow the instructions in add_action_instructions.txt You have to follow these instructions for each new action/product you add, so keep them handy! --------------------------------------------------------- Modifications: 1 Initial Modification to store.php 1 Modification to index.php in admin Templates: 2 new templates are added Screenshots are included in the zip file. Enjoy! Show Your Support
|
Comments |
#32
|
|||
|
|||
got a question
is it possible when users buy the item the they get a link to download instead of a email. |
#33
|
||||
|
||||
Quote:
The only "danger" I can see is that the download link would not be secure -- so once it's bought, the user could share it with someone else.... It might be better to just strip out all of the shipping info stuff from the templates and from the code and then email them a unique download link.... |
#34
|
|||
|
|||
ok thx bud
and what about a page that creat a random password and protect the directory of the file or is that to much work? ps i'm a newbi to php |
#35
|
||||
|
||||
Believe it or not, I'm a newbi too . I'm sure there's a way you could do it. Maybe when I have a few more months of programming under my belt I can write something like that....
|
#36
|
|||
|
|||
Church. First of all, thanks again for doing this.
Question: I've installed the hack, added an item and tried testing it out. When I hit submit my order on top it said, "Could not send email" but it did send it and I got it in my email box with all of the pertinent information. |
#37
|
||||
|
||||
Strange... Double-check this line of code in the store chunk:
PHP Code:
PHP Code:
Code:
or print "Could NOT send mail" PHP Code:
|
#38
|
|||
|
|||
Thank you very much, sir.
|
#39
|
|||
|
|||
Another question if I may.
Say I set quantity of 3. Anyway I can make the code say something like, you can't buy anymore once the quantity == to sold#? |
#40
|
||||
|
||||
That's a good idea and should be pretty simple. You would need to run a query to find out how many have been sold and then use an "if" statement. Unfortunately, I'm really swamped right now and wouldn't be able to code it for a couple of weeks. I'm actually a little new to PHP, otherwise I bet I could bang it out in a few minutes. If anyone else sees this request, feel free to give us some code. It would have to be hard-coded in the product action sections, otherwise a new field would have to be added and some admin modifications...
If no one comes up with something I'll get to it ASAP. Good luck |
#41
|
|||
|
|||
Sounds great. I wish I was a decent programmer. Unfortunately, I have a mental block (although I think I would have been very good at this).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|