Jump to content
Sign in to follow this  
DanDobras

[REZOLVAT] Campuri Text Limitate

Recommended Posts

Buna ziua,

Stie cineva cum pot sa fac la personalizarea unui produs cu text, ca acel camp sa poata fi completat doar cu 15 caractere maxim.

Share this post


Link to post
Share on other sites

Te referi la denumirea produsului? Sa aiba maxim 15 caractere? Fi ceva mai explicit...

Share this post


Link to post
Share on other sites

Ma refer la textul de personalizare a unui produs.
Sa zicem ca numarul maxim de caractere pe care un client sa il poata introduce sa fie pe linia 1 este de 15, pe linia 2 de 10 caractere si tot asa.

26725_bdYiW5O7erISW9w5VA4s_t

Share this post


Link to post
Share on other sites

Cauta linia asta in product.tpl:

                            {if !empty($field.name)}{$field.name}{/if}<input type="text" name="textField{$field.id_customization_field}" id="textField{$customizationField}" value="{if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if}" class="customization_block_input" />{if $field.required}*{/if}



si inlocuieste-o cu asta:

                            {if !empty($field.name)}{$field.name}{/if}<input type="text" name="textField{$field.id_customization_field}" MAXLENGTH="15" id="textField{$customizationField}" value="{if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if}" class="customization_block_input" />{if $field.required}*{/if}

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More