Dear all,
please how could I delete address nickname from shipto formular on checkout page? When I do it in configuration->shopper field then I cannot update shipto address formular, it is not possible to save it.
Thank you very much.
if u remove it how will users set/use multiple shipping addresses?
if this doesn't matter just hide it with css
I think just small amount of people will use this option. Please how can I hide it by css? Where I can find this css?
Thank you
I have it. Thank you. I set id #shipto_address_type_name_field in onepage_generic folder css file as:
#shipto_address_type_name_field
{
display:none;
visibility:hidden;
}
Thanks for help.
Dear all,
I have another problem, that I cannot hide the same field (address nickname) in invoice. Do you have any suggestions?
Thanks.
there u have to remove it in the invoice template by looping the fields and remove what u don't want
over ride components\com_virtuemart\views\invoice\tmpl\mail_html_shopperaddresses.php
If I understand well I should modify this code and replace $field['title'] and $field['value'] by some specific itmes (family_name, etc). Is it like this? If yes, where can I find how to define specific item instead of value or title, pls?
<?php
foreach ($this->shipmentfields['fields'] as $field) {
if (!empty($field['value'])) {
echo '<tr><td class="key" align="left"><strong>' . $field['title'] . ':</strong></td>'
. '<td>' . $field['value'] . '</td></tr>';
}
}
?>
Thanks
check the name with another "if" .. if it isn't what you want echo nothing
Thank you very much. I add this condition if($field['title']!="Názov (značka)"){
to this code below and now it is working well.
<?php
foreach ($this->shipmentfields['fields'] as $field) {
if (!empty($field['value'])) {
if($field['title']!="Názov (značka)"){
echo '<tr><td class="key" align="left"><strong>' . $field['title'] . ':</strong></td>'
. '<td>' . $field['value'] . '</td></tr>';
}
}
}
?>
well done
might be better to test the $field['name'] as this will be code friendly
Changed, thanks again. ;)