OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: a new different module for Quantity Price Breaks Per Product
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Order Total Modules
ioscommerce


Hi everybody, is there any of you have seen this kind of QPBPP?

Only some levels of the prices are visible without login, I think it was based on Quantity price break per product, but I'm not sure.

I think it's much more interesting for those who wants to begin their wholesale business.
You can get more closer to this module by visiting http://www.chinavasion.com/product_info.ph...e-media-center/

I hope somebody can help share this module thumbsup.gif
ioscommerce
I have found another site which is using this module

I found somebody successfully did this, you can see the real

site:http://www.tradestead.com/wholesale/iphone-accessories/iphone-crystal-case-p-2037.html


Jan Zonjee
QUOTE (ioscommerce @ Mar 23 2008, 07:46 PM) *
I have found another site which is using this module

I found somebody successfully did this

Hardcode it for certain quantities or quantity levels seems not too difficult with a change in the function getPriceString in includes/classes/PriceFormatter.php:
CODE
      // If you want to change the format of the price/quantity table
      // displayed on the product information page, here is where you do it.

    if($this->hasQuantityPrice == true) {
        for($i=1; $i<=8; $i++) {
            if($this->quantity[$i] > 0) {
              if ($this->quantity[$i] > 2 && !isset($_SESSION['customer_id'])) {
                $lc_text .= '<tr><td class='.$style.'>'
                . $this->quantity[$i]
                .'+ </td><td class='.$style.'>'
                .' Login</td></tr>';
              } else {
                $lc_text .= '<tr><td class='.$style.'>'
                . $this->quantity[$i]
                .'+ </td><td class='.$style.'>'
                . $currencies->display_price($this->price[$i],
                tep_get_tax_rate($this->taxClass))
                .'</td></tr>';
                }
            } // end if($this->quantity[$i] > 0)
        }
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.