osHelpers - Help for your osCommerce store
 
Google Base Feed Germany
iFrame Defender v1.2
oscommerce Seo
  Seo Pack 2
  SE Friendly URLs
  Session ID Removal
  Title and Meta Tags
  Google Sitemap
Magnum Shopping Cart
  Magnum MVS 8.4 Basic
osCommerce Services
  osc / cre patch
  Data Entry
  Data Extraction
  bugs and fixing
  Site Transfer
  creloaded Transfer
  Design Special
  Hosting
osCommerce Templates
osCommerce Contributions
  Credit Modules
  Features
  Images
  InfoBoxes
  Languages
  Order Total Modules
  Other
  Payment Modules
  Reports
  Shipping Modules
  Templates/Themes
  Zones
osCommerce Articles
osCommerce Tutorials
  Installing osCommerce
  Configuring your store
  Adding categories
  Adding products
  Adding product attributes
  Configuring currency
  Adding payment modules
  Adding shipping modules
  Configuring sales tax
  Editing your home page
  Editing columns
  Editing header and footer
  Creating specials
  Managing customers
  Sending out a newsletter
  Sending out email
  Managing your banners
  Backup database
CRELoaded Tutorials
  Add Administrators
  Add Article Author
  Additional Images
  Create a New Page
  Define Mainpage
  Disable cc Encryption
  Disable Company Field
  Disable Country
  Disable Date of Birth
  Display broken images
  Easypopulate Export
  Email confirmation
  Insert Faq
  Max Package Weight
  Require Terms of Use
  Affiliate Newsletter
  Enable Cache
CB Power Affiliate
Tell A Friend
 

Tell someone you know about this product.

   OSHELPERS | OSCOMMERCE CONTRIBUTIONS | FEATURES | 2810   


oscommerce ModuleDisplayOrderMatchesSortOrderinAdmin
[2810]
 
 
box_bg_l.gif.
"Do you hate the way in the Admin section, under Modules, all your order modules and shipping modules have a Sort Order assigned to them but don't actually DISPLAY in that sort order? It's kind of confusing, and since in the case of the Order Total modules it actually determines the order in which order prices are calculated, this can be a pain in the neck. So I made a small tweak and now all modules in the Admin>Modules section actually DISPLAY in order so it's easier to size them up at a glance.

This contribution makes only a rather minor change to the admin/modules.php file, which will make it list your Order Total, Shipping, and Payment Modules in the sort order you gave them in the first place. (They normally display alphabetically, which is dumb.)

This remedies that. It's purely a cosmetic improvement, and makes the list display much more sensible, as it should have been in the first place. It doesn't affect store functionality in any manner, but should make administrators' jobs a teeny bit easier.

For the sake of convenience, it also puts "not active" text on any module which is in the list but not installed yet, and which therefore HAS no sort order assigned.

Note: Once again, this doesn't change the way the store functions, it ONLY makes the modules display in order in the admin section. Purely a convenience.

HOW IT WORKS: The modules.php file just reads all the module files in your modules directory in alphabetical order and outputs the HTML for each one right there and then. I just created an array to hold the HTML for each module the script finds, and then it sorts that array, and THEN outputs the HTML in proper order.

BACK UP YOUR MODULES.PHP FILE BEFORE INSTALLING. If it doesn't work, just restore the original file.

DIFFICULTY: Novice. Extremely easy! Follow the instructions closely--select a single block of text in your existing modules.php and past new text to replace it."

 


For more information, visit the official osCommerce contribution webpage.
box_bg_r.gif.
 

osHelpers

osHelpers