Forum OpenACS Q&A: Response to Ecommerce Shopping Cart Change Quantities

Collapse
Posted by Dave Bauer on
Dan,

Places I changes from $QQcolor_list etc... or [DoubleApos $color_choice : to [db_postgres_null_sql ...]

www/admin/ecommerce/products/ add-4.tcl and edit-3.tcl

These insert the products into ec_products. If color_list, size_list, and style_list are empty it inserts nulls

www/ecommerce/shopping-cart-add.tcl

$color_choice, etc... to [db_postgres_null_sql $color_choice]

www/ecommerce/shopping-cart-quantities-change.tcl

the insert to add more items has
[DoubleApos $color_choice]

changed to [db_postgres_null_sql [DoubleApos $color_choice]]

If I find anything else I'll let you know.

If anyone wants to learn how OpenACS works, just try customizing the ecommerce module!