Tom Muck

Alpha Dog Blues Band
Home page
All articles
All Extensions | Extension News | Extension FAQs | Customer Login
Books authored or co-authored by Tom Muck
Extensions, books, and other products | Customer Login
Your current cart contents
Tom-Muck.com Blog | CMXTraneous Blog | Flash Remoting Blog
About the site

Updating Prices

Updating the price list in tbl_skus

If you have the sku ids stored in your pricelist, you should be able to import the table with your database admin tool, join it with the tbl_skus table, and run a simple update statement in your admin tool to update prices.

For example, given this sample table:

CREATE TABLE newprices(
 skuid varchar (50) NOT NULL ,
 price double NULL
)

Join to the tbl_skus table and update the SKU_Price field:

(access,mysql)
UPDATE tbl_skus
INNER JOIN newprices
ON newprices.skuid = tbl_skus.sku_merchskuid
SET tbl_skus.sku_price = newprices.price
WHERE newprices.skuid = tbl_skus.sku_merchskuid

(sql server)
update tbl_skus
SET tbl_skus.sku_price = newprices.price
from tbl_skus, newprices
WHERE newprices.skuid = tbl_skus.sku_merchskuid

 

Back to Cartweaver PHP FAQ, code changes, and samples

Pay me securely with your Visa, MasterCard, Discover, or American Express card through PayPal!
Pay me securely with your Visa, MasterCard, Discover, or American Express card through PayPal!
About | Privacy Policy | Contact | License Agreement | ©2002-2025 Tom Muck | Dreamweaver Extensions