vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - Cafe Press (https://vborg.vbsupport.ru/showthread.php?t=182424)

motowebmaster 06-28-2008 12:52 AM

The View Cart Button doesn't appear to be working properly. Each time I click on it an additional item is added to the cart before it is displayed.

NeitherSparky 06-28-2008 01:43 AM

Hey man, I must have done something wrong...I installed the new version of this today btw, and I don't know if this was happening with the old version or not because I never tried to actually buy something, lol.

Anyways when I go into my shop and then click on a design, and then go to click on an actual individual item to view it it takes me to a 404 page. (My site is here) What did I break?

edit: Btw here is my Cafepress shop, and it usually has a side menu...in your screencaps your shop still has it's side menu when embedded in the forum but mine doesn't, is it supposed to?

bigtime 06-28-2008 04:45 AM

Hi,

Great add-on!

http://www.defend.net/deluxeforums/shop.php


Thanks,

Tim

bigtime 06-28-2008 05:04 AM

On line 72 of shop.php I changed the following for security purposes:

PHP Code:

$item $_GET['item']; 

To This:

PHP Code:

$item_dirty $_GET['item'];
$item $vbulletin->input->clean($item_dirtyTYPE_NOHTML); 

-Tim

bigtime 06-28-2008 05:26 AM

Quote:

Originally Posted by NeitherSparky (Post 1560832)
Anyways when I go into my shop and then click on a design, and then go to click on an actual individual item to view it it takes me to a 404 page. (My site is here) What did I break?

That happens on my site too and it happens on the demo link provided by the author of this add-on. To duplicate the issue, click on a left category link. Then click on a product and get the 404 error.

bigtime 06-28-2008 05:30 AM

Here's the fix for the 404 error:

On line 140 of shop.php find this:

PHP Code:

$largeImgReplacement "<a href=\"store.php?item="

Change it to this:

PHP Code:

$largeImgReplacement "<a href=\"shop.php?item="


-Tim

Dylanblitz 06-28-2008 05:37 AM

Quote:

Originally Posted by motowebmaster (Post 1560808)
The View Cart Button doesn't appear to be working properly. Each time I click on it an additional item is added to the cart before it is displayed.

I fixed this, download the latest and check the install instructions at the bottom as it doesn't require a full install to fix.

Dylanblitz 06-28-2008 05:39 AM

Quote:

Originally Posted by NeitherSparky (Post 1560832)
Hey man, I must have done something wrong...I installed the new version of this today btw, and I don't know if this was happening with the old version or not because I never tried to actually buy something, lol.

Anyways when I go into my shop and then click on a design, and then go to click on an actual individual item to view it it takes me to a 404 page. (My site is here) What did I break?

edit: Btw here is my Cafepress shop, and it usually has a side menu...in your screencaps your shop still has it's side menu when embedded in the forum but mine doesn't, is it supposed to?

There was a hard code to store.php for some reason. I changed it to shop.php, should work now.
The menu wasn't showing up because it is hard to do a premium shop on anything but a case by case basis due to the variety of code differences. I checked your site and added it to the qualification and it will show the menu now.

Dylanblitz 06-28-2008 05:42 AM

Quote:

Originally Posted by bigtime (Post 1560932)
On line 72 of shop.php I changed the following for security purposes:

PHP Code:

$item $_GET['item']; 

To This:

PHP Code:

$item_dirty $_GET['item'];
$item $vbulletin->input->clean($item_dirtyTYPE_NOHTML); 

-Tim

Thanks for this one, I added it to the 2.0.5 release.
Don't know why it worked before with the store.php link. It was from the original code I downloaded to modify. Last changes I made must of kicked something into gear that caused that link to suddenly work heh.

bigtime 06-28-2008 05:53 AM

You're welcome.

One last issue I see. The hyperlink for "Get your own free online store today".

It looks like there is a preg_replace to fix that issue but apparently it isn't working:

PHP Code:

$itemdetail preg_replace("/<a href=\"http:\/\/www.cafepress.comhttp:\/\/www.cafepress.com/" "<a href=\"http://www.cafepress.com"$itemdetail); 

Thanks again...

Tim


All times are GMT. The time now is 11:52 AM.

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.01370 seconds
  • Memory Usage 1,754KB
  • 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
  • (7)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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