VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Thanasis on July 21, 2016, 15:27:33 PM

Title: How can i change the Shipment text
Post by: Thanasis on July 21, 2016, 15:27:33 PM
Hi, want to Change the text "Shipment" from "Ship To" form and i dont find it. I found how to delete to this file components/com_virtuemart/views/cart/tmpl/default_address.php removing the section:
echo $this->cart->lists['shipTo'];

You need to login to see it...
Look to my attachment to see what i mean, thanks.
Title: Re: How can i change the Shipment text
Post by: GJC Web Design on July 21, 2016, 15:30:56 PM
assume one of these

COM_VIRTUEMART_USER_FORM_SHIPTO_LBL
Ship To
COM_VIRTUEMART_ORDER_PRINT_SHIP_TO_LBL
Ship To
COM_VIRTUEMART_USER_FORM_SHIPTO_LBL
Ship To
COM_VIRTUEMART_ORDER_PRINT_SHIP_TO_LBL
Ship To
Title: Re: How can i change the Shipment text
Post by: Thanasis on July 21, 2016, 15:39:13 PM
on this file components/com_virtuemart/views/cart/tmpl/default_address.php only the COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL exists end it is for the label Ship to, Thanks.
Title: Re: How can i change the Shipment text
Post by: Thanasis on July 22, 2016, 10:24:18 AM
Ok, i rename the /components/com_virtuemart/language/en-GB/ to /components/com_virtuemart/language/en-GB2 and the "Shipment" exists, i think it is hardcoded but i cannot find it. I have attachment to se exactly what i mean. Thanks
Title: Re: How can i change the Shipment text
Post by: GJC Web Design on July 22, 2016, 12:24:01 PM
why not just make a std. Joomla lang over ride for COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL  in your language?
Title: Re: How can i change the Shipment text
Post by: Thanasis on July 22, 2016, 12:59:56 PM
if i overwrite COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL, the only change is the label not the select value "Shipment" radio. I want the "Shipment" input radio
Title: Re: How can i change the Shipment text
Post by: GJC Web Design on July 22, 2016, 17:48:12 PM
that is the "default" value in the shopper field "address_type_name"

Title: Re: How can i change the Shipment text
Post by: Thanasis on July 22, 2016, 20:05:49 PM
Really thanks for your help, this is exactly that i need to change:
'.$address->address_type_name.'
can i remove and add something like this:
'.vmText::_('COM_VIRTUEMART_ACC_BILL_DEF2').'

Title: Re: How can i change the Shipment text
Post by: GJC Web Design on July 23, 2016, 01:15:55 AM
It is only the default .. so try adding the lang var u want in the default

if it doesn't render then the try

vmText::_($address->address_type_name) where it displays