ePrivacy and GPDR Cookie Consent by Cookie Consent

Optimize tep get tax rate method

Optimize tep_get_tax_rate() method 1.1

Optimize tep_get_tax_rate() method 1.1 Download Summary

  • Language: PHP
  • Platform: Windows / Linux / BSD
  • License: GPL - GNU Public License
  • Databases: MySQL
  • Downloads: 324
  • Released: Jun 15, 2007

Optimize tep_get_tax_rate() method 1.1 Description

Each time a price is displayed on osCommerce the tax rate for that product is queried. Even if the user has set to not display taxes with price the tax rate is queried.

Query for each rate one time as it is needed and then store it in session cache.

What this contribution does:
This code change will modify the tep_get_tax_rate() method so the first time a tax rate is requested it stores it in session. On every tax rate query it is first checked to verify if it's already in sesssion and if not will query / store in cache. If it is already in session it will return that value and save the database lookup.

Reduction in per page query count and faster execution times. Query reduction has been demonstrated to be around 75% savings on some pages.

Tested on:
8 setups with differing server configurations and osC setup. This change should not affect any other contributions.

Install time:
As fast as you can open a file, make one change, and upload.

free download

Optimize tep get tax rate method Bookmark

Hyperlink code:
Hyperlink for Forum code:

Optimize tep_get_tax_rate() method 1.1 Script Download Notice

Top 4 Download periodically updates information of Optimize tep_get_tax_rate() method 1.1 script from the developer, but some information may be slightly out-of-date.

Our script download links are directly from our mirrors or publisher's website. Optimize tep_get_tax_rate() method 1.1 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!

PlugnPay API Payment Method

API Payment Method For SSL Enabled Servers. Used with all builds of osCommerce v2.2 ...

cod table rate calculation

This module calculates a surplus tax based on a table. The module is based on Zones.php and other contributions.Zones can be defined based on a country list. In case total amount is over the greatest tabled interval, then a percentage (if defined) is calculated.The admin configuration is in Portuguese language, But ...

payment method depends on shipping method

... works in any other payment module!)look for:// class methodsfunction update_status() {global $order;change to:// class methodsfunction update_status() {global $order, $shipping;after: if ($check_flag == false) >{$this-enabled = false;}}insert:// disable if shipping is free - startif ($shipping['id']=="free_free") >{$this-enabled = false;}// disable if ...

SEO Manual

... not have code on how to search engine optimize an osC store but has links to a few good contributions. ...

Default Selected Shipping Method

Choose the shipping method default selected in the checkout_shipping.php page in the shop; not necessarily the cheapest. ...