Products     Magento Extension     PCI-Shopping-Carts     Templates       CRELoaded     WordPress Modules     osCommerce Modules       osCommerce Addons       osCommerce Features       osCommerce Management       Payment Modules     CRELoaded Modules       CRE Loaded Addons       CRE Loaded Features       CRE Loaded Management       Payment Modules       CRELoaded Services
Free Stuff
Customization
Templates
Compare Products
You have no items to compare.
Affiliate Info
Affiliate Program FAQ
Affiliate Log In
Recent Orders
Hot Keywords: Order Notification, Order Search, Coupon, Flash Board, Compare, Floating Message, Tracking, Moneris, RSS, Visitor Filter

  CCGV(trad)

The following osCommerce contribution is a free Opensource code originated from official osCommerce website and provided for your reference only, you may download the original contribution file(s) and install it on your own; or you may request a Paid Installation Service from Agents Of Power; Agents Of Power does the "AS IS" installation on your website, we do not guarantee it will work properly on your website. Extra Paid service is available for repairing the problem from the original contribution or from your website.
If any product which is eligible for discount coupon and linked to more than one category, then for those categories "restrict to categories" fails.
During coupon redeem at the catalog side, Only the first category is considered and other categories are ignored for the particular products linked to many categories.

We have modified only two file includesmodulesorder_totalot_coupon.php and includesfunctionsgeneral.php
The modification is very simple but important.
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.
   Posted on: 03/26/2008     See contribution details Request Installation with Paid service