News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Delete address nickname from shipto address fields

Started by psm, May 02, 2017, 22:57:45 PM

Previous topic - Next topic

psm

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.

GJC Web Design

if u remove it how will users set/use multiple shipping addresses?

if this doesn't matter just hide it with css
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

psm

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

psm

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.

psm

Dear all,
I have another problem, that I cannot hide the same field (address nickname) in invoice. Do you have any suggestions?

Thanks.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

psm

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

GJC Web Design

check the name with another "if" .. if it isn't what you want echo nothing
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

psm

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>';
      }
      }
       }
       ?>

GJC Web Design

well done

might be better to test the $field['name'] as this will be code friendly
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

psm