Jump to content
  • 0

Polskie województwa - szybkie dodanie


PrestaShark

Question

Witajcie,

Być może komuś się przydadzą.

Aby dodać należy posiadać podstawową wiedzę z obsługi phpMyAdmin.

Lepsze to niż klepanie "z palca" ;)

 

Zapytanie do bazy:

- automatycznie znajduje sobie kolejne wolne ID dla is_state,

- warunek to ew. zmiana prefiksu tabeli ps_ jeśli został podany inny podczas instalacji sklepu,

- id_country dla Polski to 14 (standardowo w przypadku wersji 1.5.6.2)

INSERT INTO `ps_state` (`id_country`, `id_zone`, `name`, `iso_code`, `tax_behavior`, `active`) VALUES
(14, 1, 'dolnośląskie', 'DS', 0, 1),
(14, 1, 'kujawsko-pomorskie', 'KP', 0, 1),
(14, 1, 'lubelskie', 'LU', 0, 1),
(14, 1, 'lubuskie', 'LB', 0, 1),
(14, 1, 'łódzkie', 'LD', 0, 1),
(14, 1, 'małopolskie', 'MA', 0, 1),
(14, 1, 'mazowieckie', 'MZ', 0, 1),
(14, 1, 'opolskie', 'OP', 0, 1),
(14, 1, 'podkarpackie', 'PK', 0, 1),
(14, 1, 'podlaskie', 'PD', 0, 1),
(14, 1, 'pomorskie', 'PM', 0, 1),
(14, 1, 'śląskie', 'SL', 0, 1),
(14, 1, 'świętokrzyskie', 'SK', 0, 1),
(14, 1, 'warmińsko-mazurskie', 'WN', 0, 1),
(14, 1, 'wielkopolskie', 'WP', 0, 1),
(14, 1, 'zachodniopomorskie', 'ZP', 0, 1);
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...