CCGV(trad)
for osCommerce Online Merchant v2.2
This is a reworking of an older version of CCGV, with bug fixes and security patches applied. It also has some additional features:
1. The ablity to Delete queued gift vouchers from within osCommerce admin.
2. Customers can see their Gift Voucher Balance in their Account page, and send Gift Vouchers from there
3. All Gift Vouchers are now queued. This is no longer an option.
Files are based on osCommerce 2.2 MS2 (updated November 2005).
Vger
Legend: 
Download

Report
This is an update to fix tax recalculations if the discout coupon is restricted to certain categories:
Find the following lines in /includes/modules/order_total/ot_coupon.php:
$cat_query = tep_db_query("select products_id from products_to_categories where products_id = '" . $products_id . "' and categories_id = '" . $cat_ids[$i] . "'");
Replace by:
$cat_query = tep_db_query("select products_id from products_to_categories where products_id = '" . $t_prid . "' and categories_id = '" . $cat_ids[$c] . "'");
Or simply replace the file in enclosed packe.
Full package included.
Ceci est la contribution d'origine éditée par Vger (22 Juin 2007), avec les fichiers de traduction en français.
Je remercie Vger pour son excellent travail et la qualité de fonctionnement de son module. Je pense sincèrement qu'il s'agit de la version CCGV la plus stable, et je vous recommande son installation.
Si votre version de boutique n'est pas update-20060817,
procédez d'abord à sa mise à niveau !!
###################################
This is the original Package edited by Vger (June 22th 2007) including french translation.
I wish to thank Vger for his great job and the quality of his CCGV module.
I truly think this is the best performing CCGV module you can download at this time.
If your Shop version is not update-20060817, please
update first using the including manual.
This way is a little better, keep it more in the flow of the admin panel I thought it would be a good idea to link the user guide into the Vouchers/Coupons box in the Admin.
This way it's always there when you might need it.
I thought it would be a good idea to link the user guide into the Vouchers/Coupons box in the Admin.
This way it's always there when you might need it.
Please ignore the last update with the 'fix' for virtual_weight. There is no problem that needs fixing.
If people keep posting silly fixes and updates to this contribution then it will get into the same mess as the original CCGV and I shall remove all support for it from this forum.
Vger
Only the shopping_cart class file (catalog/includes/classes/shopping_cart.php) is modified.
So, when you insert a product without any weight, it will be a virtual product.
What I have done:
1. Changed the content_type from "virtual_weight" to "virual". COD payment method need it.
2. Removed some extra codes.
Only shopping_cart.php file is uploaded. You can use the full package below and replace the class file with mine.
This is an update to my last packaging of CCGV(trad). It does not include any modifications supplied by others.
Unlike the original CCGV, which became a mess because of ill thought-out mods and updates, I am trying to keep this version clean - so please don't upload any more "updates" or "mods" to this contribution.
This update fixes tax calculation problems, removes the Redeem button from Checkout Payment for Discount Coupons (it's not necessary and causes errors if a payment method has not yet been selected), is updated to work with the latest version of osCommerce (August 2006) and contains a heavily rewritten User Guide. It also contains a PDF schematic about Tax Calculation and virtual/non-virtual products.
Vger
I guess the fix I made won't display correctly.
The correction is located in the text file I added to the package.
You can download this one.
***Mod, please remove my previous Upload***
This is just a fix for the Mod posted below.
in admin/languages/add_ccgvdc_english.php change:
define('TABLE_HEADING_RECEIVERS_EMAIL', 'Receiver's Email');
to this:
define('TABLE_HEADING_RECEIVERS_EMAIL', 'Receiver's Email');
** ENGLISH / AMERICAN DOLLAR MOD ONLY **
Added "Receiver's email" as a column, as well as added a $ or / % sign depending on the type of GV sent, since seeing a bunch sent for $10 instead of 10% was confusing me.
just add:
define('TABLE_HEADING_RECEIVERS_EMAIL', 'Receiver's Email');
to the end of adminlanguagesadd_ccgvdc_english.php
If you've modded this file previously, just look for the block between /*Changes Start*/ and /*Changes End*/
Here, just the french files :)
catalog + admin
for -> CCGV(trad)_1_2_3_4_5_6_7_8_9_10
Version avec les fichiers de la version française.
VERSION:
CCGV(trad)_1_2_3_4_5_6_7_8_9_10
je ne suis pas le traducteur, j'ai juste fait quelques corrections
et je ne me rapelle pas qui à fait ce travail, désolé :(
On doit installer sur une boutique OSCommerce
SANS autre contribution installé !!!
Ordre d'installation:
-> 1° OsCommerce
-> 2° CCGV
-> 3° les autres contributions à la suite...
La structure de OsCommerce est respecté
on peut "écraser" les fichiers déja présent ...
Slight change to /catalog/admin/coupon_admin.php
This change gets the 'coupon_start_date' and 'coupon_expire_date' fro the database and passes them correctly to the coupon edit form (action='voucheredit'). So the date does not have to be reset every time the coupon is edited.
I decided to give this a version number as it's an important upgrade. There are some minor changes for image definitions (contributed by Chris Dunning) but the major upgrade deals with tax on virtual products.
As things stood if a product was virtual, had zero weight, and skipped the shipping page, and was liable for tax, then no tax was applied - because tax was based on the shipping/delivery address (and there was no shipping/delivery address).
In this upgrade if a virtual product is liable for tax and the shipping page is skipped then the address (for tax) becomes the billing address.
An 'Upgrade Only' text file is included for those who only need to upgrade from the last version.
Enclosed is also a pdf document which shows the relationship between the various classes of product. This upgrade fixes a problem which existed from the earliest release of the original CCGV. All credit for this bug fix goes to Terra (Edith Karnitsch).
Vger
This contains a full file set, but only one new fix. In osCommerce the type 'virtual_product' is deemed to have weight if it has attributes - so a Gift Voucher with attributes is charged shipping. This fix corrects that. For those with previous installs of CCGV(trad) make this change to checkout_shipping.php on line 52 of an otherwise unmodified file:
if ( (DOWNLOAD_ENABLED == 'true') && ($cart->weight == 0) ) { // Edited for CCGV
Vger
This is a full file set, and fixes a bug which stopped CCGV working when products with attributes were targetted with discount coupons based on percentage discounts. The fix was actually posted two years ago by Mike Todd, but went unnoticed until unearthed again by Edith Karnitsch (Terra). Credit to both.
This is a full file set and contains an updated shopping cart class file, updated install instructions, and an extra text file for making CCGV(trad) compatible with the osCommerce Pay Pal IPN Module.
This is a full file set - but the only changes are to the Install and User Guide files to correct typos.
This is a full file set. Files changed are the original ReadMe file which contained incorrect information from the original CCGV contribution - this has been amended. Also this one file is now split into two - one for Install Instructions and one which is a User Guide (Post-Install).
The amendments to includes/classes/shopping_cart.php made by the updated version of MS2 (to prevent non-existent products being added to the cart) caused problems for CCGV - preventing CCGV from recognising when the Shopping Cart had been updated. Also, those code changes plus CCGV were preventing Product Attributes from being recognised in the Shopping Cart.
These two issues are now resolved, and (hopefully) doesn't break the fix to prevent non-existent products being added to the cart.
Vger
This is a full file set. One link is fixed, and one image removed.
This is a full file set. It clears up the typo in checkout_process.php, plus fixes the gv_admin_gv_queue issue, but it also installs Coupons and Vouchers in Modules --> Order Total in osCommerce admin as soon as the SQL file is run. A lot of people have been forgetting that they had to click to 'Install' both of these features, but now they are installed automatically.
My apologies for any problems with the last 'update' set of files. The Authorize Net fix only works if you use Authorize Net - otherwise it causes an error. And the popup_coupon_help page is no longer necessary, because all vouchers are queued for release. Those are now fixed. One missing (new) image has been added, and one extra curly bracket removed. Full file set.
This is a full file set, with two updates to cure a few problems which are a hangover from the old version of CCGV on which this was based:
1. Coupon Discount was not being correctly applied to Authorize Net AIM transactions - fixed in checkout_process.php
2. Javascript popup window previously not working in includes/boxes/shopping_cart.php
Thanks to those who pointed out these problems.
Vger
This is a reworking of an older version of CCGV, with bug fixes and security patches applied. It also has some additional features:
1. The ablity to Delete queued gift vouchers from within osCommerce admin.
2. Customers can see their Gift Voucher Balance in their Account page, and send Gift Vouchers from there
3. All Gift Vouchers are now queued. This is no longer an option.
Files are based on osCommerce 2.2 MS2 (updated November 2005).
Vger