Forum Moderators: coopster
To achieve this but still allow each Merchant to freely assign his own Product Code system I need to prefix the entered Product Code with the appropriate Merchant Code.
The Merchant Admin uses php forms and the product code field is:
<input type="text" name="code" id="code" value="<?php echo KT_escapeAttribute($row_rsstock['code']);?>" size="32" />
The insert function in the head of the page is:
$ins_stock->addColumn("code", "STRING_TYPE", "POST", "code");
For example I would like a product code ABC123 entered by Merchant D100 to automatically become:
D100-ABC123
I also need to prevent the automatically inserted prefix being overtyped in the form field.
As I am very much a beginner in PHP & MYSQL, a simple expression would be preferred with enough info for me to use with limited knowledge.
Thanks in advance.
All that works OK, but I don't know how to put "ABC123" in front of the "Product Code" text input field without the risk of overtyping.