Page 1 of 1

(Sandwitch theme) Regarding the order comments area

PostPosted: Tue Feb 04, 2020 12:38 am
by loppan
Hi,

my customers are sometimes having trouble finding the "order comments" area, where they are allowed to put comments about their order.

I use the sandwitch theme and by default the customer has to click on it to expand it and start typing.

Obviously everybody doesn't realize this, so I'm thinking it would be better to have it expanded by default?

I have a weak memory that I've seen settings for this, but I could be wrong also. Or it was for another theme. Or another extension :D.

Could you Stan please tell me which is the best way to make this area always visable?

Thanks!

Best

Peter

area1.png
area1.png (17.15 KiB) Viewed 4978 times

area2.png
area2.png (18.58 KiB) Viewed 4978 times

Re: (Sandwitch theme) Regarding the order comments area

PostPosted: Thu Mar 05, 2020 8:39 pm
by admin
hello, please find this code in your onepage.unlogged(and logged).tpl.php

Code: Select all
<div class="opc_heading" ><button name="stbutton" onkeypress="javascript:return alterButton(this, 'customer_note_id');" class="button_checkbox_uned" onclick="javascript: return alterButton(this, 'customer_note_id');" autocomplete="off" >
<div>&nbsp;</div>
<span class="opc_title"><?php    
                           $comment = OPCLang::_('COM_VIRTUEMART_COMMENT_CART');
                            if ($comment == 'COM_VIRTUEMART_COMMENT_CART')
                           echo OPCLang::_('COM_VIRTUEMART_COMMENT');
                           else echo $comment; ?></span></button>
<?php
?></div>
  <div class="opc_inside" id="customer_note_id" style="display: none;">


and update it to:
Code: Select all
<div class="opc_heading" ><button name="stbutton" onkeypress="javascript:return alterButton(this, 'customer_note_id');" class="button_checkbox_ed" onclick="javascript: return alterButton(this, 'customer_note_id');" autocomplete="off" >
<div>&nbsp;</div>
<span class="opc_title"><?php    
                           $comment = OPCLang::_('COM_VIRTUEMART_COMMENT_CART');
                            if ($comment == 'COM_VIRTUEMART_COMMENT_CART')
                           echo OPCLang::_('COM_VIRTUEMART_COMMENT');
                           else echo $comment; ?></span></button>
<?php
?></div>
  <div class="opc_inside" id="customer_note_id" style="">


i.e. 2 changes:
- button_checkbox_uned to button_checkbox_ed
- and remove display: none from the other wrapper

best regards, stan