Jump to content

[SOLVED] OPC comments about order


ml.

Recommended Posts

Hi everyone!

 

I enabled order comments in one page checkout in order-address.tpl by removing {if !$opc},  {/if}.

 

    {if !$opc}
        <div id="ordermsg" class="form-group">
            <label>{l s='If you would like to add a comment about your order, please write it in the field below.'}</label>
            <textarea class="form-control" cols="60" rows="6" name="message">{if isset($oldMessage)}{$oldMessage}{/if}</textarea>
        </div>
    {/if}

 

It is working... Message field is displayed, but after confirming order NO MESSAGE is saved and/or transported to an order page and order mail as well.

 

Can anyone help with this?

 

I use Presta 1.6.0.6

 

BR,

Mirek Liminowicz

Edited by ml. (see edit history)
Link to comment
Share on other sites

Its a bug in the theme code, the textarea element is missing the id attribute, so the javascript function that sends the message to the server never gets invoked.

 

Change From

<textarea class="form-control" cols="60" rows="6" name="message">{if isset($oldMessage)}{$oldMessage}{/if}</textarea>

Change To

<textarea class="form-control" cols="60" rows="6" name="message" id="message">{if isset($oldMessage)}{$oldMessage}{/if}</textarea>
  • Like 4
Link to comment
Share on other sites

  • 7 months later...
  • 1 year later...

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
×
×
  • Create New...