News:

Looking for documentation? Take a look on our wiki

Main Menu

Shopper's field reorder in mails

Started by hk, April 30, 2014, 17:16:22 PM

Previous topic - Next topic

hk

Hi,

In VM, the Ordering of Shopper Fields is such that state_id is after country_id, i.e.
virtuemart_country_id - 38
virtuemart_state_id - 40

This helps the user while registration that he has to select Country and based on his selection the State names are filtered.

However, in the emails and in the invoices, I want to show the address as State name and then the Country name.
First_name Last_name
Address_1
Address_2
City Zip
State
Country


There is an older post http://forum.virtuemart.net/index.php?topic=115486.msg390088#msg390088 which shows how to customize the fields, however I'm not sure how do I change the order of the fields

GJC Web Design

yes - it's the same file and section - but instead of using a foreach loop you would have to build your own sequence  or loop past the State and Country (with a continue) and echo them out at the bottom

something like

echo $this->userfields['fields']['state'].'<br />'.$this->userfields['country'];
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