osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Price Break Integration

This is a discussion on Price Break Integration within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; I hope this is kosher to post here: I need to integrate the price-break-1.11.2 module: http://...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 General Mods Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-20-2004, 09:48 AM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default Price Break Integration

I hope this is kosher to post here:

I need to integrate the price-break-1.11.2 module:

http://www.oscommerce.com/community/contributions,1242

At issue is the already embedded (oscMAX 1.7) Price Per Customer Module:

http://www.oscommerce.com/community/contributions,716

Either I need to remove the PPC module... which I really don't want to do, or I need to change the Price Break module to recognize the PPC discounts. In order to do this, some PPC code needs to be reworked, and provision made for it in the PriceFormatter.php class. The files that are affected are:

catalog/includes/classes/shoppingcart.php
catalog/includes/modules/product_listing.php
catalog/product_info.php

...and the PriceFormatter.php class from the Price Break module needs to have some code added to accomodate PPC discounts.

I think that one of the original authors or someone familiar with the code could do this without too much study of the code... I on the other hand would find it difficult at best.

--gabe

PS: whatever comes of this, I will post the code back to the forum so that it can be integrated in 1.7 if that is wanted.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 12-20-2004, 10:22 AM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default RE: Commercial: Price Break Integration

Actually it appears that the following code just needs to be integrated into the PriceFormatter.php class...

--gabe

Code:
global $customer_id;
$customer_group_id_query = tep_db_query("select customers_group_id from " . TABLE_CUSTOMERS . " where customers_id = '". $customer_id . "'");
$customer_group_id = tep_db_fetch_array($customer_group_id_query);
$orders_customers_price = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where customers_group_id = '". $customer_group_id['customers_group_id'] . "' and products_id = '" . $products['products_id'] . "'");
if (($orders_customers = tep_db_fetch_array($orders_customers_price)) && ($customer_group_id['customers_group_id'] != 0)) {
  $products_price = $orders_customers['customers_group_price'];
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-20-2004, 08:19 PM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default RE: Commercial: Price Break Integration

Well, I have it almost done as an either/or deal... if you have a customer specific price, you get that, otherwise you get the tiered discount. Pretty lame implementation, but its all I need for this particular shop. I'll post the how-to file once I have finished it up, and tested it a bit.

--gabe

PS: still looking for someone who might do a nice integration using the PriceFormatter.php class.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 12-22-2004, 01:47 PM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default RE: Commercial: Price Break Integration

I personally would wait until Master/Slave is done, and use that, however, if you need this now (like I did), I have hacked the Price Break mod into oscMAX 1.7

Small caveat: it does not do lowest price comparrison with per customer pricing. Either the customer has per customer price breaks and does not get quantity price breaks, or the customer has no per customer price breaks and gets quantity breaks.

Larger caveat: I have not done extensive testing.

The attached files should drop in on top of an unmodified oscMAX1.7 (you have to change the file names and copy them to the proper directories)

--gabe

PS: the original contrib for MS2.2 can be seen here:
http://www.oscommerce.com/community/contributions,1242
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Break <br> tag don't break line kestas osCommerce 2.2 Modification Help 1 01-16-2006 08:30 PM
price-break-1.11 with ms2-max 1.5.5 fridgemags osCMax v1.7 General Mods Discussion 3 06-03-2004 05:47 AM
Automatically break a results set over multiple pages Anonymous osCMax v1.7 Discussion 0 04-02-2004 12:27 PM
how do i add a line break before the buy now button bagged89s10 osCMax v1.7 Discussion 2 03-04-2004 09:20 AM
javascript integration bushman osCMax v1.7 Discussion 3 09-16-2003 10:12 AM


All times are GMT -8. The time now is 09:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax