Community Add-Ons
product_model auto insert
for osCommerce Online Merchant v2.2
a small php script writen by a friend and given to me that will auto-insert a product model with a custom prefix based on the product_id field in the products table of the osc database
example:
1)edit the php file to connect to your database
2)your product_id is 103, in the script you set the length to "6" and the prefix to "ABC-"
3)the output to the "product_model" field will be "ABC-000103"
when adding a product in the admin section, just leave the product model blank and then run the script. you can run this script as many times as you need, all it does is takes the product_id and add the prefix and max length to output the model #
this script will overwrite any existing product models you have set
Legend:
Download
Report
Instead of using image name to prefix the model number this contribution uses the product name instead.
