Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Make GV and DC RC1 RC2 RC2a v1.2 work with SPPC v4.22


rpdesign

Recommended Posts

hi everybody, I've seen in the suport forrum of GV and DC RC1 RC2 RC2a v1.2 (gift vouchers and discount coupons)that some of you were looking for a way to make it work with SPPC v4.22 (seperate pricing per customeer). Well i found out how to do it :rolleyes:

 

step 1: Install both contribs if you haven't already. you can find each here:

Gift vouchers and discount coupons

Seperate pricing per customer

 

make sure you download the right version by going into the history section and getting a full contrib

 

step 2: modify the catalog/includes/functions/general.php file as follows

 

add

/// BOF Coupons

 function tep_count_active_coupons() {

   $coupon_query = tep_db_query("select count(*) as total from " . TABLE_COUPONS . " where coupon_status = '1'");
   $coupons = tep_db_fetch_array($coupon_query);

   return $coupons['total'];
 } /// EOF Coupons

anywhere in the head section preferably after the seperate pricing per customer code. This should work enjoy!!

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Link to comment
Share on other sites

Glad to help. It took me forever to find the right solution! :lol: I just wish there was a better way to test out solutions rather than to set up a test site. I'm looking at combining the two add-ons into one, as a contrib, but thought that by just giving instructions to fix the genersl. php file would work just as well.

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...