Forums / Setting Up Categories, Products, Attributes / Mysql instruction to populate new price column?

Mysql instruction to populate new price column?

Views: 506

Results 1 to 3 of 3
24 May 2015, 2:03 PM
#1
ilmarchez avatar

ilmarchez

Zen Follower

Join Date:
Aug 2009
Posts:
128
Plugin Contributions:
0

Mysql instruction to populate new price column?

Hi,

I recently intsalled Dual Price addon and now I have in the table "products" a new columns "products_price_w" with all rows set to 0.
I'd like to populate through mysql qith a SQL instruction this colums setting the value of "products_price_w" the 80% of the value of the column "product_price".

How could I do that?

Thnak you

24 May 2015, 3:25 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Mysql instruction to populate new price column?

Might be easiest to use a plugin easy populate
https://www.zen-cart.com/downloads.php?do=file&id=868

Zen-Venom Get Bitten

24 May 2015, 5:20 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Mysql instruction to populate new price column?

kobra:

Might be easiest to use a plugin easy populate
https://www.zen-cart.com/downloads.php?do=file&id=868

As that version hasn't been updated to be compatible with the lastest ZC version and that your site is still using an old version of ZC that really should be upgraded, might I suggest a version of EasyPopulate (EP4) that covers all of this: https://www.zen-cart.com/showthread.php?200407-Edit-Orders-v4-0-Support-Thread
That way when/if the site is upgraded, there is no relearning how to use the tool for the most part.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...