Hi,
in my installation of VM2.0.18a the shipping adress is only stored when i enable the Field "address_type_name" in the user fields...is this correct?
If i remember right in VM1 was this field created automaticly, wich was the solution i would prefer...
Cause when you enable it, the cutomer must fill it also with his billing adress, wich could lead to confusion
So is this a bug, or will it be changed?
thx
I hide it
edit_address-userfields.php
if ($_field['name']=='shipto_address_type_name') continue;
user/edit.php
at the bottom of the form
<?php if (JRequest::getVar('addrtype')=='ST') { echo '<input type="hidden" name="shipto_address_type_name" value="Shipping" />';}?>
Quote from: PRO on January 21, 2013, 20:16:45 PM
I hide it
edit_address-userfields.php
if ($_field['name']=='shipto_address_type_name') continue;
user/edit.php
at the bottom of the form
<?php if (JRequest::getVar('addrtype')=='ST') { echo '<input type="hidden" name="shipto_address_type_name" value="Shipping" />';}?>
Ok, can you be a little bit more specific?
I always got an error like "check failed: ST has no name"....
Maybe you can tell me the lines in the files where to paste this........
And can i hide the field in the userfields, or must i publish it?
try this with it unpublished
user/edit.php
at the bottom of the form
<?php if (JRequest::getVar('addrtype')=='ST') { echo '<input type="hidden" name="shipto_address_type_name" value="Shipping" />';}?>
you css see at the bottom of the form it has other input type hidden elements
Hi,
this is what i've got now in users/edit.php:
lines 125-131.
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="controller" value="user" />
<?php if (JRequest::getVar('addrtype')=='ST') { echo '<input type="hidden" name="shipto_address_type_name" value="Shipping" />';}?>
<?php echo JHTML::_( 'form.token' ); ?>
</form>
And where i have to add this in edit_adress_userfields.php?Anywhere?
if ($_field['name']=='shipto_address_type_name') continue;
At this moment it won't work whatever i do....
Maybe i should say, that i can't save the shipto adress in the backend also....
under
// Output: Userfields
Ah, i got it....this change:
<?php if (JRequest::getVar('addrtype')=='ST') { echo '<input type="hidden" name="shipto_address_type_name" value="Shipping" />';}?>
Has to be made in users/edit_adress.php NOT in edit.php
Thank you so much !!!