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

Departamentos de Colombia

Started by plasti, November 07, 2017, 18:15:21 PM

Previous topic - Next topic

plasti

Hola, para el que necesite agregar los departamentos de Colombia a la base de datos de virtuemart 3.x puede hacerlo con el siguiente código SQL que puede ejecutarse desde phpMyAdmin, solo se debe cambiar el prefijo de la tabla:


INSERT INTO `prefijo_virtuemart_states`
(`virtuemart_state_id`, `virtuemart_vendor_id`, `virtuemart_country_id`, `state_name`, `state_3_code`, `state_2_code`) VALUES
(NULL, 1, 47,'Amazonas','AMA', 'AM'),
(NULL, 1, 47,'Antioquia','ANT','AN'),
(NULL, 1, 47,'Arauca','ARA','AR'),
(NULL, 1, 47,'Atlantico','ATL','AT'),
(NULL, 1, 47,'Boyaca','BOY','BO'),
(NULL, 1, 47,'Caldas','CAL','CA'),
(NULL, 1, 47,'Caqueta','CAQ','CQ'),
(NULL, 1, 47,'Cauca','CAU','CC'),
(NULL, 1, 47,'Cesar','CES','CE'),
(NULL, 1, 47,'Chocó','CHO','CH'),
(NULL, 1, 47,'Cordoba','COR','CO'),
(NULL, 1, 47,'Guaviare','GUA','GU'),
(NULL, 1, 47,'Guainia','GUI','GI'),
(NULL, 1, 47,'Huila','HUI','HU'),
(NULL, 1, 47,'La Guajira','LAG','LA'),
(NULL, 1, 47,'Magdalena','MAG','MG'),
(NULL, 1, 47,'Meta','MET','ME'),
(NULL, 1, 47,'Nariño','NAR','NA'),
(NULL, 1, 47,'Norte de Santander','NOR','NO'),
(NULL, 1, 47,'Putumayo','PUT','PU'),
(NULL, 1, 47,'Quindio','QUI','QU'),
(NULL, 1, 47,'Risaralda','RIS','RI'),
(NULL, 1, 47,'San Andres y Providencia','SAN','SA'),
(NULL, 1, 47,'Santander','STR','ST'),
(NULL, 1, 47,'Sucre','SUC','SU'),
(NULL, 1, 47,'Tolima','TOL','TO'),
(NULL, 1, 47,'Valle del Cauca','VAL','VC'),
(NULL, 1, 47,'Vaupés','VAU','VA'),
(NULL, 1, 47,'Vichada','VIC','VI'),
(NULL, 1, 47,'Casanare','CAS','CS'),
(NULL, 1, 47,'Cundinamarca','CUN','CU'),
(NULL, 1, 47,'Bolivar','BOL','BV'),
(NULL, 1, 47,'Bogotá D.C.','BOG','BG')


Espero que les sirva  ;)

Jörgen

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.