Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add Product Actions to Lesane's Store Hack! Details »»
Add Product Actions to Lesane's Store Hack!
Version: 1.00, by ChurchMedia ChurchMedia is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-30-2003 Last Update: Never Installs: 24
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-14-2003, 12:51 PM
midnightz midnightz is offline
 
Join Date: Jan 2003
Location: Inside the Velvet Tunnel
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi There,

I would like to add a Image showing the product in the item box. How is that done. Such as 500 points for a CD and showing a pic of it, if they click on the pick, I could activate a popup window that tells more about the product.

midnightz
Reply With Quote
  #43  
Old 04-27-2003, 08:36 PM
Fking Fking is offline
 
Join Date: Mar 2003
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to edit the body of the mail sent to user who just purchased something?
Reply With Quote
  #44  
Old 04-27-2003, 08:41 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 03:36 PM Fking said this in Post #42
How to edit the body of the mail sent to user who just purchased something?

In the store_code_chunk edit the stuff below this line:

// ##################### Begin Email To User ############################
Reply With Quote
  #45  
Old 05-24-2003, 07:09 PM
midnightz midnightz is offline
 
Join Date: Jan 2003
Location: Inside the Velvet Tunnel
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
02-02-03 at 11:57 PM ChurchMedia said this in Post #32
You could do this -- It would require 2 templates per downloadable item and some code modifications. I can get that to you if you really want it...

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....
You can try to use amember, its is a script that helpes with secure downloads after processing http://membership.cgi-central.net/scripts/amember/ It is a retail script, but they have a lite version if I remember. Vbskins uses this as thier DL manager (I think)?

But thats what I use
Reply With Quote
  #46  
Old 05-24-2003, 07:10 PM
midnightz midnightz is offline
 
Join Date: Jan 2003
Location: Inside the Velvet Tunnel
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi ChurchMedia,

I would like to make the form with all fields required, since I can imagine a user processing thier points and sending me a blank email.

Is that possible if please, How?

Thanks,

midz
Reply With Quote
  #47  
Old 06-02-2003, 06:36 PM
WebMasterAJ WebMasterAJ is offline
 
Join Date: Oct 2001
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works perfectly, but I'm hacking this for a person who doesn't know too much about computers, and as simple as it sounds, editing store.php can be quite tedious and time consuming when we start to add/delete items.

So, is it possible to make it so you don't have to edit store.php?

Please let me know, I appreciate your help!

Sincerely,
Andrew Tatum
Reply With Quote
  #48  
Old 06-04-2003, 05:40 PM
WebMasterAJ WebMasterAJ is offline
 
Join Date: Oct 2001
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any takers?
Reply With Quote
  #49  
Old 06-09-2003, 05:46 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WebMasterAJ,

It's a great idea. Unfortunately I'm not that great of a PHP programmer. There should be a way to add the code to the file without having to do it manually, but I just don't know how. Sorry!
Reply With Quote
  #50  
Old 07-17-2003, 11:35 AM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just came across this add on.
And i must say with this add-on hack, you just gave me a reason to install Lesane's Store hack !

Thanks ChurchMedia
Reply With Quote
  #51  
Old 09-06-2003, 05:14 PM
EWorld EWorld is offline
 
Join Date: Jun 2003
Location: Rochester, NY
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am a bit confused, what is Action Code? I mean how do I know what to put that as? I am very confused. Anyone have any ideas?

- EWorld

i took a guess at the action code and just added like 123 or wand or whatever to the action code, but the prodcut doesnt show up! i need help. thanks.

- Speedy
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08451 seconds
  • Memory Usage 2,307KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete