To change "Save" to "Apply" there are 2 methods. As this language string is global and used in few locations through out in VirtueMart so changes to Step1 will also change other sections where this language string is used. If thats ok use Step1 to change otherwise use Step2 to add a new language string for "Apply" word.
Step1. Changing "Save" word itself.
Find file: \language\en-GB\en-GB.com_virtuemart.ini
Find Line: 434
- Code: Select all
COM_VIRTUEMART_SAVE="Save"
Step2. Adding new language string.
Find file: \language\en-GB\en-GB.com_virtuemart.ini
Add following to bottom of file
- Code: Select all
COM_VIRTUEMART_APPLY="Apply"
Find File: \components\com_virtuemart\views\cart\tmpl\default_coupon.php
Find Line: 27 which is below
- Code: Select all
<input class="details-button" type="submit" title="<?php echo JText::_('COM_VIRTUEMART_SAVE'); ?>" value="<?php echo JText::_('COM_VIRTUEMART_SAVE'); ?>"/>
Replace with below
- Code: Select all
<input class="details-button" type="submit" title="<?php echo JText::_('COM_VIRTUEMART_APPLY'); ?>" value="<?php echo JText::_('COM_VIRTUEMART_APPLY'); ?>"/>
Regarding checkbox and terms lining up you can use below css hack in override.css which is located in templates/gk_templatename/css/override.css and make sure it is enabled in template settings > advanced settings > css override.
Below puts Save button to right of coupon code box, then
Moves Checkbox to left side, then
Moves terms & cond.. to left side, push it downwards 5 pixel, pushes down CheckOut Now button by 20 pixels.
- Code: Select all
span.details-button { float:right; margin-top:-3px;}
.checkout-button-top input.terms-of-service { float: left !important;}
span.terms-of-service { float: left !important; margin-bottom: 20px; margin-top: 5px;}
See you around...