osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Quantity Price Breaks for Separate Pricing Per Customer

This is a discussion on Quantity Price Breaks for Separate Pricing Per Customer within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This *upgrade* for the basic version of Quantity Price Breaks for SPPC 1.0.2 only has a few changes but might ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-31-2007, 04:03 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Quantity Price Breaks for Separate Pricing Per Customer

This *upgrade* for the basic version of Quantity Price Breaks for SPPC 1.0.2 only has a few changes but might make quite a difference in the number of queries once a customer starts adding products to the cart. You need to have installed the basic version of Quantity Price Breaks for SPPC 1.0.2 first!

Changes:
- added PriceFormatterStore.php as a class/object to store mysql results. For the shopping cart box PriceFormatter is called 5 times per product, each time using 2-3 queries (depending on the customer group). Now only two to three are used for all products in the cart.
- changed PriceFormatter to take advantage of PriceFormatterStore (changes in function loadProduct, commented out functions encode and decode because they are not used anyway, added quotes around the $style in function getPriceString)
- added instructions to change the function tep_get_stock to take advantage of PriceFormatterStore (instead of using 1 query per product in catalog/shopping_cart.php)

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
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
add Quantity Price Breaks Per Product mod to OSCMAX lazua osCMax v2 Customization/Mods 10 09-07-2007 06:16 PM
Quantity Price Breaks Per Product michael_s New osCommerce Contributions 0 01-31-2007 02:54 PM
Separate Pricing Per Customer & Login.php gamerigs osCMax v2 Installation issues 2 12-13-2005 10:16 PM
Separate Pricing Per Customer - SPPC tastar osCMax v2 Customization/Mods 0 07-08-2005 03:09 AM
Where is Separate Pricing Per Customer? adam71o osCMax v1.7 Installation 11 06-03-2005 12:25 PM


All times are GMT -8. The time now is 11:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax