Contributions

Credit Modules (Category Index)
Search: 

Credit Class & Gift Voucher

The base credit class and the Gift Voucher module in one package.

Expand All / Collapse All

Fixed Files for New RC2a (drop-in) Install dtwins 14 Apr 2009

*Sorry. Forgot some files in last upload. This is the full package.

When installing on a fresh install of RC2a, the following errors occur in admin section:

errors on admin/coupon_admin.php
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /gearupaz/public_html/admin/includes/functions/database.php on line 107

errors on admin/gv_mail.php:
Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in /gearupaz/public_html/admin/includes/functions/database.php on line 117

Warning: Cannot modify header information - headers already sent by (output started at /gearupaz/public_html/admin/includes/functions/database.php:117) in /gearupaz/public_html/admin/includes/functions/general.php on line 22

This is a fix for the CCGV (Contibution 282) where certain database.php errors and other problems are happening with the admin side.

This is a full package for new installation, where the previous package caused some problems for new (drop-in) installations.

*Built onto version 5.21
*Credit for these solutions goes to original contributors and forum users.

Fix gv_mail.php error:
On line 64 replace:
$insert_id = tep_db_insert_id($insert_query);
with:
$insert_id = tep_db_insert_id();

Fix coupon_admin.php (under case: voucherreport, lines:227-230)
replace:
$cc_query_raw = "select * from " . TABLE_COUPON_REDEEM_TRACK . " where coupon_id = '" . (int)$coupon_id . "'";
$cc_query_numrows = tep_db_num_rows($cc_query);
$cc_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $cc_query_raw, $cc_query_numrows);
$cc_query = tep_db_query($cc_query_raw);
with:
$cc_query_raw = "select * from " . TABLE_COUPON_REDEEM_TRACK . " where coupon_id = '" . (int)$coupon_id . "'";
$cc_query = tep_db_query($cc_query_raw);
$cc_query_numrows = tep_db_num_rows($cc_query);
$cc_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $cc_query_raw, $cc_query_numrows);

*Thanks OSC community for all efforts and making one of the most practical contributions a possibility.

Fixed Files for New RC2a (drop-in) Install dtwins 14 Apr 2009
Fix for when voucher balance is > than order total. gtilflm 2 Apr 2009
major fix JimbobobHacker2 30 Jan 2009
2 minor fixes for CCGV 5.21 JimbobobHacker2 28 Jan 2009
error in directions gtilflm 20 Jan 2009
Version 5.21 jpf 8 Jan 2009
Status Active and Inactive fix Andyy 3 Jan 2009
V5.20a fix Download the file to see the fix Andyy 31 Dec 2008
V5.20a fix Andyy 31 Dec 2008
small error v5.20a findtim 13 Dec 2008
Corrected some small errors, extended and corrected installation gewuerznelke 27 Nov 2008
Credit Class and Gift Voucher/Coupon V5.20a jpf 15 Oct 2008
Credit Class and Gift Voucher/Coupon V5.20 jpf 13 Oct 2008
CCGV 5.19 Fix for GVQueue with Paypal IPN CreativePortal 13 Aug 2008
CCGV 5.19 bug breaks specials JimbobobHacker2 18 Jun 2008
re: New bug from valguss JimbobobHacker2 18 Jun 2008
New product insert error fix bedfordch 5 Jun 2008
New bug valguss 24 Apr 2008
coupon restrictions error fix lildog 12 Mar 2008
redeem alert fix lildog 11 Mar 2008
Fix when credit covers whole order. jemmasta 26 Feb 2008
CCGV5.19 bug fix2 hnzzyanglin 19 Jan 2008
CCGV5.19 bug fix hnzzyanglin 28 Dec 2007
Some Erro fix hnzzyanglin 27 Dec 2007
Minor Bug Fix valguss 12 Dec 2007
order_total_gv.sql rossjp 28 Nov 2007
added install notes.. thehost 4 Oct 2007
NEW INSTALL v5.19 install notes thehost 4 Oct 2007
CCGV5.18 with danish tekst anetteogjesper 20 Mar 2007
CCGV collective fixes lildog 14 Mar 2007
CCGV5.19 HireMatt 3 Mar 2007
CCGV5.18 order_total class fix JimbobobHacker 6 Feb 2007
Fixed Release Button Image BTBlomberg 29 Jan 2007
CCGV5.18 checkout_payment.php FIX xXDesertRoseXx 24 Dec 2006
CCGV 5.18 Checkout 'ot_coupon.php' Display Fix BTBlomberg 10 Dec 2006
Fix in ot_gv.php ceimedia 28 Nov 2006
Re: This version of CCGV chooch 17 Nov 2006
news version mauriziomagnino 17 Nov 2006
instruction to use mauriziomagnino 8 Nov 2006
Credit Class & Gift Voucher 5.18 mauriziomagnino 7 Nov 2006
bug fix payment to javascript disabled mauriziomagnino 24 Oct 2006
Fix for email voucher redeem xmanflash 4 Oct 2006
Euro images for gift contrib mauriziomagnino 28 Sep 2006
Credit Class & Gift Voucher 5.17 mauriziomagnino 20 Sep 2006
CCGV5.16 Manual Install Instructions Version 2.1 deathgod 21 Jul 2006
Full package??? Phosky 20 Jul 2006
Bug Fix for Gift Voucher Session Phocea 19 Jul 2006
CCGV Manual Instructions Version 2 deathgod 30 Jun 2006
CCGV516 manual install bopper 18 Jun 2006
Corrected version for german/coupon_admin.php infobroker 8 May 2006
CCGV Tax System Fix V1.1 Christian_P. 22 Mar 2006
CCGV Tax System Fix Christian_P. 22 Mar 2006
bunch of fixes v1.1 (table/roundoff/etc.) aviram 24 Feb 2006
bunch of fixes (table/roundoff/etc.) aviram 24 Feb 2006
Coupon Admin rollup 3 molafish 22 Feb 2006
CCGV5.16 (patch file) gtoso 21 Feb 2006
Minor error in gv_send.php husmousa 15 Feb 2006
little Error aki-kun 13 Feb 2006
Update Credit Report aki-kun 10 Feb 2006
Credit Stats aki-kun 10 Feb 2006
CCGV version 5.16 Chris Dunning 8 Feb 2006
Updated rollup2 insomniac2 6 Feb 2006
Coupon Admin Bug fix rollup 2 molafish 6 Feb 2006
Bad Debug code hillro 30 Jan 2006
Fix some Paypal Mod error (is work fine to me) Not a Full Package, u still need to dowload CCGV5.15a2 1st brucelim 25 Jan 2006
English version of module install file HallMarc 23 Jan 2006
Coupon Admin Bug fix rollup molafish 23 Jan 2006
CCGV 5.15a2 ScrltOTara 22 Jan 2006
CCGV 5.12a2 Part 1 shanejackson 12 Jan 2006
CCGV 5.15a2 Part 2 shanejackson 12 Jan 2006
CCGV 5.15a1 Part 1 shanejackson 8 Jan 2006
CCGV 5.15a1 Part 2 shanejackson 8 Jan 2006
CCGV 5.15a (Full Package) shanejackson 6 Jan 2006
Spanish image for credit class jaleel 2 Jan 2006
Fix for 'ERROR_REDEEMED_AMOUNT_ZERO' error for COUPONS 5.15 bonhommie 20 Dec 2005
5.14/5 Voucher Fix for cart total less than voucher amount kittmaster 20 Dec 2005
CCGV 5.15 (FULL PACKAGE) yesudo 17 Dec 2005
CCGV useful SQL scranmer 29 Nov 2005
CCGV and Authorize.net AIM solution tomed8 26 Nov 2005
CCGV Easier to Understand Payment Addon v1.2 aarondwyer 20 Nov 2005
CCGV Easier to Understand Payment Addon v11 aarondwyer 17 Nov 2005
fix MODULE_ORDER_TOTAL_COUPON_TEXT_ERROR and use better buttons trafficjam 17 Nov 2005
CCGV Easier to Understand Payment Addon aarondwyer 15 Nov 2005
Redeem message fix scranmer 9 Nov 2005
Notes for new install of CCGV brian175 6 Oct 2005
Account Page Box chooch 15 Sep 2005
Credit Class & Gift Voucher - checkout layout mod ckyshop.co.uk 29 Aug 2005
Use this to easily install CCGV 5.14 (UPDATE INFO) Jessman 10 Aug 2005
Treeview Bugs Fixed Beer Monster 8 Aug 2005
Use this to easily install CCVG 5.14 Jessman 7 Aug 2005
Use This to easily install CCVG 5.10 Jessman 7 Aug 2005
Treeviev category/product selector popup for coupon_admin.php (very cool!) Beer Monster 6 Aug 2005
French fix + others for 5.14 shawkes 1 Aug 2005
Installation instructions Hub 31 Jul 2005
fix for 5.14 tommy11011 28 Jul 2005
CCGV v5.14 + PaypalIPN v1.1 fix aarondwyer 28 Jul 2005
CCGV v5.14 addon with French - English SQL fix aarondwyer 28 Jul 2005
Could Someone add a package to fix the French Problem ldygunner 25 Jul 2005
Credit Class and Gift Voucher 5.14 Baby Boy 22 Jul 2005
5.13e Changes + Bug Fixes brettsg 22 Jul 2005
Paypal fix a2b2c2d 15 Jul 2005
CCGV v5.13d Jennifer Sullivan 30 May 2005
CCGB V5.13c Jennifer Sullivan 29 May 2005
Clickable link in Email Fix Taryn 29 May 2005
Order Total Module Jennifer Sullivan 26 May 2005
CCGB V5.13b Gyakutsuki 24 May 2005
Update 5.13a Rigadin 18 May 2005
Update to ot_coupon.php Joseph Dalton 30 Apr 2005
spelling error mark 22 Apr 2005
Show up discount in index.php CORRIGE Francesco 22 Apr 2005
Full package 5.13 Rigadin 22 Apr 2005
Show up discount in index.php Francesco 22 Apr 2005
german language file Jens Borklund 16 Apr 2005
add addslashes will fix the bug Kevin Feng 21 Feb 2005
GV_redeem anti SQL injection Predster 19 Feb 2005
gv_redeem bug Falk 10 Feb 2005
Corrections I Love This Contribution! 7 Feb 2005
The final kayode Muyibi 4 Feb 2005
PayPal IPN Update Allan Knabe 27 Jan 2005
German Language Peter 22 Jan 2005
German language files netelf 7 Jan 2005
Simpler Fix for Below mentioned Exploit Wlad 21 Dec 2004
GV_REDEEM_EXPLOIT_FIX Frederick Ricaforte 21 Dec 2004
Credit Class & Gift Voucher 5.11 Yurik Stembr 16 Dec 2004
security flaw Strider 10 Dec 2004
Class creates a TAX problem ron 18 Nov 2004
Dutch translation Hans Mignon 29 Oct 2004
Error fix Patrik Baumgärtner 23 Oct 2004
German translation Gerd Schoolmann 21 Sep 2004
CCGV 510c Bug Fix Chris Martin 4 Sep 2004
ccgv-510c_TC.zip - Traditional Chinese language file update Tim Huang 31 Aug 2004
Credit Class and Gift Voucher - minor language file update Jack of Arts 30 Aug 2004
Credit Class & Gift Voucher Kristina de Don 11 Jul 2004
ccgv-510c Steel Shadow 26 Jun 2004
New gift-voucher/credit class buttons for French, Spanish, and German Matthew 5 Apr 2004
French language files Emmanuel Dos Santos 19 Mar 2004
admin/gv_mail.cpp Neeraj Murarka 7 Mar 2004
ccgv-510b Strider 2 Jan 2004
ccgv-510 Strider 16 Dec 2003
GV-DC 5.06 Strider 26 Sep 2003
Category Restriction Fix Nick Stanko 3 Aug 2003
Oooops, forgot some language files... Andre 1 Aug 2003
Credit Class/GV/Discount Coupons v5.05 Andre 1 Aug 2003
Credit Class/GV/Discount Coupons v5.04 Strider 24 Jul 2003
GV5.03 Bug Fixes Rob Cote 7 Jul 2003
Credit Class/GV/Discount Coupons v5.03 Ian C Wilson 18 May 2003
Credit Clas/GV/Discount Coupon v5.02 Ian C Wilson 5 May 2003
Credit Class/GV/Discount Coupon v5.01 Ian C Wilson 4 May 2003
Credit Class/GV/Discount Coupons v5.0 Ian C Wilson 3 May 2003
Gift Voucher Images Ryan Hobbs 5 Mar 2003
Credit Class & Gift Voucher v4.2 Ian Wilson 28 Feb 2003
Credit Class/Gift Voucher v4.1 Ian C Wilson 14 Dec 2002
Credit Class GV v4.0 Ian Wilson 22 Nov 2002
Credit Class & Gift Voucher v3.2 Ian Wilson 4 Oct 2002
Credit Class GV v3.1 Ian C Wilson 24 Aug 2002
Credit Class GV v3.0 Ian C Wilson 24 Aug 2002
Gift Voucher System v2.10 Ian C Wilson 29 Jun 2002
Gift Voucher System v1.1 Ian C Wilson 29 Jun 2002
Credit Class/Discount System v1.1 Ian C Wilson 29 Jun 2002
Gift Voucher System V2.0 Ian C Wilson 21 Jun 2002
Credit Class/ Discount System v1.0 Ian C Wilson 20 Jun 2002
Gift Voucher System V1.1(Patch) Ian C Wilson 7 Jun 2002
Gift Voucher System v1.1 Ian C Wilson 7 Jun 2002
Gift Voucher System V1.0 (Patched) Ian C Wilson 13 May 2002
Gift Voucher System V1.0 Ian C Wilson 5 May 2002

Note: Contributions are used at own risk.