(Sandwitch theme) Regarding the order comments area

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

(Sandwitch theme) Regarding the order comments area

Postby loppan » Tue Feb 04, 2020 12:38 am

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 4927 times

area2.png
area2.png (18.58 KiB) Viewed 4927 times
loppan
 
Posts: 25
Joined: Thu Oct 27, 2016 7:26 am

Re: (Sandwitch theme) Regarding the order comments area

Postby admin » Thu Mar 05, 2020 8:39 pm

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
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x

cron