Forums / All Other Contributions/Addons / Datbase Manipulation: make Products_price_sorter = price

Datbase Manipulation: make Products_price_sorter = price

Locked

Views: 1,137

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
22 Apr 2008, 2:16 AM
#1
zeroca avatar

zeroca

New Zenner

Join Date:
Oct 2007
Posts:
31
Plugin Contributions:
0

Datbase Manipulation: make Products_price_sorter = price

I am by no means a database expert so this may seem like a stupid question, but is there a way, either by a SQL query or a via a database change, to make the products_price_sorter within the produts table, always pull its value from the price field?

I need this functinoality, as ia am using magnetic One's store manager. As it was created for OsCommerce, it does not know what this field should be, so if i can make it always equal the price fiels which store manager does recognize, then i wont have to worry about it.

If that is successful, i would also like to know if it is possible to make the meta_tags_description field always equal to the product description field.

TIA

1 May 2008, 12:37 PM
#2
schizoman avatar

schizoman

New Zenner

Join Date:
Jun 2007
Posts:
7
Plugin Contributions:
0

Re: Datbase Manipulation: make Products_price_sorter = price

The SQL statement should be something like this:

update tablename set products_price_sorter = products_price

You can run that statement manually. If you wanted to integrate it into Zen Cart, there would be a little more manipulation involved.

Hope this helps.

3 May 2008, 7:16 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Datbase Manipulation: make Products_price_sorter = price

schizoman:

The SQL statement should be something like this:

update tablename set products_price_sorter = products_price

You can run that statement manually. If you wanted to integrate it into Zen Cart, there would be a little more manipulation involved.

Hope this helps.

Or better yet, just go to Admin->Tools->Store Manager and click the Update Products Price Sorter button to calculate everything accurately.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 May 2008, 7:23 PM
#4
zeroca avatar

zeroca

New Zenner

Join Date:
Oct 2007
Posts:
31
Plugin Contributions:
0

Re: Datbase Manipulation: make Products_price_sorter = price

Man Do I feel stupid. was there the whole time. :smile:

Thanks gentlemen.:clap: