Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Query Factory


tbannist

Recommended Posts

I just finished uploading a new contribution, Product Query Factory (Misc category). It consolidates all the Product related queries into one location.

 

This makes it very easy to change columns names and table names for the database, for instance if you need to integrate OSC into a legacy application. It also greatly increase maintainability of the code, by removing duplicate SQL queries from the code base.

 

It's a simple as changing the define for the table name and changing the columns names in the query factory.

 

There are a couple of things that I am probably going to tackle in the next week or so:

  • order queries

user queries

And some that I am putting off for the forseable future:

 

  • use defined names for the returned column aliases

only include queries that are needed

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...