Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases

Reply
 
Thread Tools
Amazon Store Integration Details »»
Amazon Store Integration
Version: 1.00, by mikelbeck mikelbeck is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Version: 3.0.9 Rating:
Released: 09-19-2005 Last Update: 09-26-2005 Installs: 6
DB Changes Template Edits
Code Changes Additional Files Is in Beta Stage  
No support by the author.

This is my first mod for vBulletin, so take it easy on me if I've done something incorrect...

Anyway, this is an Amazon store integration mod for vB. One of my sites is job/career oriented, so I offer books that are related to this through this mod. It will pull all of the items in a particular category (Amazon BrowseNode) and display them for users to pick & choose what they want. They can add the items to a remote Amazon shopping cart, and when they're finished shopping they can check out through Amazon.

Note that only logged in users will be able to add item to their carts.

See the attached file "install.txt" for installation instruction.

You can see it in action here:

http://www.discusscareers.com/book_store.html

Let me know what you think, have any problems, questions, suggestions, etc.

Show Your Support

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

Comments
  #22  
Old 09-25-2005, 08:08 PM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
 
Join Date: Jul 2005
Location: 4C6F6E672049736C616E642C2
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hbalagh1
great, i also wonder if there is a way to show a subtotal somehow?
A subtotal of... the items in the cart? I could add that.
Reply With Quote
  #23  
Old 09-27-2005, 02:55 PM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
 
Join Date: Jul 2005
Location: 4C6F6E672049736C616E642C2
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got a bunch of fixes completed, I'm hoping to have the rest done today.

Completed:
- No more than 250 pages can be requested, but this app would keep going forever, allowing the user (or a spider) to keep requesting past page 250 but nothing would be displayed. Now it will stop at page 250 and won't display the "Next" link.
- Corrected the page description, keywords & title.
- A user on a detail page wasn't been shown properly in "Who's Online"
- Added a subtotal to the cart page
- In some cases, after adding an item to the cart the "items in cart" wasn't updated immediately.
- In some cases, guests could add items to the cart.

In Progress:
- Once I added the subtotal to the cart page, I found that the price displayed was wrong.
- Add "Continue Shopping" link to the cart, and have it go back to the last page displayed.
- Straighten out the boxes
Reply With Quote
  #24  
Old 09-27-2005, 06:29 PM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
 
Join Date: Jul 2005
Location: 4C6F6E672049736C616E642C2
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've updated the files attached to this mod with the latest & greatest.

Fixes in 1.0.2 include:

- No more than 250 pages can be requested, but this app would keep going forever, allowing the user (or a spider) to keep requesting past page 250 but nothing would be displayed. Now it will stop at page 250 and won't display the "Next" link.
- Corrected the page description, keywords & title.
- A user on a detail page wasn't been shown properly in "Who's Online"
- Added a subtotal to the cart page.
- In some cases, after adding an item to the cart the "items in cart" wasn't updated immediately.
- In some cases, guests could add items to the cart.
- The price displayed were wrong.
- Added "Continue Shopping" link to the cart, and have it go back to the last page displayed.

Still left to do, for the 1.0.3 version:

- Straighten out the boxes on the main page.

To upgrade from 1.0.1 to 1.0.2 (the latest), download the amazon_store.php file and replace the one you already have.

Then, make these few changes:

In functions_online.php
Find:
PHP Code:
    case 'book_store.html':
        
$userinfo['activity'] = 'amazon_store';
        break; 
Add after:
PHP Code:
    case 'sort_salesrank.html':
        
$userinfo['activity'] = 'amazon_store';
        break; 
In the amazon_store template
Find:
PHP Code:
 In Cart 
Replace with:
PHP Code:
 In Cart ($CartSubTotal) - 
Find:
PHP Code:
<a href="$PurchaseURLtarget=_blank>Checkout</a
Add after:
PHP Code:
<if condition="$cart_title">
 - <
a href="/book_store/page_$page/category_$category/sort_$sort.html">Continue Shopping</a>
</if> 
Find:
PHP Code:
Amazon Store for vBulletin version 1.0.1<br /> 
Replace with:
PHP Code:
Amazon Store for vBulletin version 1.0.2<br /> 
Reply With Quote
  #25  
Old 09-27-2005, 06:59 PM
hbalagh1's Avatar
hbalagh1 hbalagh1 is offline
 
Join Date: Jun 2005
Location: San Diego
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i get this 1 Item In Cart () instead of a price in it...and my continue shopping link doesn't show up
Reply With Quote
  #26  
Old 09-27-2005, 07:14 PM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
 
Join Date: Jul 2005
Location: 4C6F6E672049736C616E642C2
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hbalagh1
i get this 1 Item In Cart () instead of a price in it...and my continue shopping link doesn't show up
Did you replace your amazon_store.php file with the one attached to the beginning on this thread? In addition to those two problems, it looks like your store is still showing the wrong prices, I think you're running old code.
Reply With Quote
  #27  
Old 09-27-2005, 07:17 PM
hbalagh1's Avatar
hbalagh1 hbalagh1 is offline
 
Join Date: Jun 2005
Location: San Diego
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol, ohh my im a dork... hahah

i downloaded the most recent php file at the top, and saved it to my docs, made the changes (as needed for my store) and uploaded the old one back up instead of the new one...i normally save everything ot my desktop

my bad, so sorry
Reply With Quote
  #28  
Old 09-27-2005, 07:20 PM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
 
Join Date: Jul 2005
Location: 4C6F6E672049736C616E642C2
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hbalagh1
lol, ohh my im a dork... hahah

i downloaded the most recent php file at the top, and saved it to my docs, made the changes (as needed for my store) and uploaded the old one back up instead of the new one...i normally save everything ot my desktop

my bad, so sorry
That's quite alright, I do that sort of thing all the time.

I think I PM'd you on your site with the same info... If it wasn't you then I'm bothering one of your users and they won't have a clue what I'm talking about. ;-)
Reply With Quote
  #29  
Old 10-18-2005, 07:07 PM
Scribbller Scribbller is offline
 
Join Date: Nov 2004
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mikel can we add categories to it?
Reply With Quote
  #30  
Old 10-18-2005, 07:17 PM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
 
Join Date: Jul 2005
Location: 4C6F6E672049736C616E642C2
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Scribbller
Mikel can we add categories to it?
You can change the category, the instructions for doing that are in the install.txt file.
Reply With Quote
  #31  
Old 01-07-2006, 12:55 AM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
 
Join Date: Jul 2005
Location: 4C6F6E672049736C616E642C2
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is anybody using this? Should I update it from 3.5?
Reply With Quote
Reply

Thread Tools

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 03:21 PM.


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.05492 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_php
  • (4)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
  • (3)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_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