How can I change the language

GK User
Thu Jun 21, 2012 6:38 pm
Need to change from save to apply for the coupon button

looked in all of the obvious places

http://2crommy.partswench.com/index.php/cart.html

tried to upload screen shot but it did not upload
User avatar
Senior Boarder

GK User
Thu Jun 21, 2012 6:47 pm
I also need to line up the terms of service with the check box at the bottom of the page

thanks
User avatar
Senior Boarder

GK User
Thu Jun 21, 2012 9:47 pm
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...
User avatar
Platinum Boarder


cron