Я нашёл по этой теме информацию на совсем для меня не понятном английском языке, может вы поможете разобраться? Спасибо.
---------------------------------------------
I noticed that after updating to 2.0.6 and VirtueMart make changes to the template no longer add additional shipping addresses.
The problem occurred in the edit_address.php catch pattern
Code: [Select]
<? php if (! empty ($ this-> virtuemart_userinfo_id)) {
echo '<input type="hidden" name="shipto_virtuemart_userinfo_id" value="'.(int)$this-> virtuemart_userinfo_id.' "/> ';
}
echo JHTML :: _ ('form.token');
?>
If the parameter $ new = 1 virtuemart_userinfo_id variable is set to 0. Since "! Empty ()" responds to this as an empty string is respectively in the model user.php not be carrying out the condition if (isset (shipto_virtuemart_userinfo_id)) and there are no records in the database.
Solving problems delete an additional condition in the template file, or to correct model user.php on line 865
Code: [Select]
if (isset ($ data ['shipto_virtuemart_userinfo_id'])) {
changed to:
Code: [Select]
if ($ data ['address_type'] == 'ST' | | isset ($ data ['shipto_virtuemart_userinfo_id'])) {
Please correct this in the next version, and I apologize for bad English
P.S. From the administrative part of the site as an additional shipping address is not added. On the solution of this problem, I have not understood
-----------------------------------------------