osCmax v2.5 User Manual
Results 1 to 4 of 4

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://www.oscommerce.com/community/contributions,1242 At issue is the ...

      
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    77
    Rep Power
    0


    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.

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    77
    Rep Power
    0


    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'];
    }

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    77
    Rep Power
    0


    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.

  4. #4
    Member
    Join Date
    Mar 2003
    Posts
    77
    Rep Power
    0


    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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •