vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - CartPlog: The Lite PayPal Shopping Cart (https://vborg.vbsupport.ru/showthread.php?t=247779)

ispots 11-20-2014 03:34 PM

FYI for anyone else having these issues on a 4.2.* install, I think I fixed them myself.

The first error is corrected by replacing the deprecated functions & syntax in 330 and 397:
Line 330:
Quote:

$cartplog['product_list'] = preg_replace(preg_quote('#</tr><tr>#'), '$', $cartplog['product_list']);
Line 397:
Quote:

$cartplog['popular_products'] = preg_replace(preg_quote('#</tr><tr>#'), '$', $cartplog['popular_products']);
The second error is corrected by replacing with this context in line 275 and 416:
Quote:

$vbulletin->GPC['cartplogprice'][$ugid][$key] = (float) number_format($value, 2, '.', '');
and setting default values in lines 241 to 246 as this:
Quote:

value="0.00"
NOTE: If you delete values from the pricing the code will error out, but it actually still functions correctly. The solution is to always put "0.00" instead of "" in the fields. Someone who knows PHP better than I could probably write something quick to replace the null value when it's passed. I tried it quickly and had no luck.

I AM NOT A CODER - DON'T ASK ME HOW TO FIX ANYTHING ELSE. I'm a hack at best.

Idawg 05-15-2015 10:28 AM

Will this work on 4.2.2 ???

pratul11 08-20-2020 04:45 AM

Hi I am using vBulleting 4.2.5 and tried doing a test checkout using CartPlog. But it seems Add Cart button is not working properly because when I add the product in cart, it updates to zero product in cart. How to fix it?

Hostboard 12-17-2020 03:32 PM

Quote:

Originally Posted by pratul11 (Post 2603769)
Hi I am using vBulleting 4.2.5 and tried doing a test checkout using CartPlog. But it seems Add Cart button is not working properly because when I add the product in cart, it updates to zero product in cart. How to fix it?

Uninstall and try:
https://vbulletin.org/forum/showthread.php?t=246427

Probably the lesser of the 2 evils...


All times are GMT. The time now is 10:44 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.01156 seconds
  • Memory Usage 1,726KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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