Jump to content

add extra space


hrvoje29

Recommended Posts

sentq - isn't that a configurable option dropdown? if so, he'll need to do a Smarty replace in the template, won't he? :?:

 

e.g change the code below in standard_cart/configureproduct.tpl from...

 

{foreach key=num2 item=options from=$configoption.options}
                                                           <option value="{$options.id}"{if $configoption.selectedvalue eq $options.id} selected="selected"{/if}>
                                                               {$options.name}
                                                           </option>
                                                       {/foreach}

to...

 

{foreach key=num2 item=options from=$configoption.options}
                                                           <option value="{$options.id}"{if $configoption.selectedvalue eq $options.id} selected="selected"{/if}>
                                                               {$options.name|replace:' ':'  '}
                                                           </option>
                                                       {/foreach}

this would replace a single space with a double in all the configurable option dropdowns - if you only need to add a space to this one option, you could use an {if} statement to identify it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated