Engraved Heaven Posted October 30, 2016 Share Posted October 30, 2016 I am running an engraving service and my products have options to customize them.Every item has different length of message. I need to maximize the message length. My idea is the following: I added this (maxlength="30") to themes/default..../product.tpl and it works fine: <textarea name="textField{$field.id_customization_field}" class="form-control customization_block_input" id="textField{$customizationField}" rows="3" cols="20" maxlength="30">{strip} So... I want to create a new column in product table like eg. message_max_length I need a SQL query in product.php which call message1 column and insert that string into above line (maxlength="$message_max_length") in product.tpl Thank You Regards Gabriel Engraved Heaven Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now