vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Amazon Store Integration (https://vborg.vbsupport.ru/showthread.php?t=96607)

mikelbeck 09-25-2005 08:08 PM

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.

mikelbeck 09-27-2005 02:55 PM

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

mikelbeck 09-27-2005 06:29 PM

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 /> 


hbalagh1 09-27-2005 06:59 PM

i get this 1 Item In Cart () instead of a price in it...and my continue shopping link doesn't show up :(

mikelbeck 09-27-2005 07:14 PM

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.

hbalagh1 09-27-2005 07:17 PM

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

mikelbeck 09-27-2005 07:20 PM

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. ;-)

Scribbller 10-18-2005 07:07 PM

Mikel can we add categories to it?

mikelbeck 10-18-2005 07:17 PM

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.

mikelbeck 01-07-2006 12:55 AM

Is anybody using this? Should I update it from 3.5?


All times are GMT. The time now is 09:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02216 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete