{"id":4173,"date":"2017-09-01T05:53:10","date_gmt":"2017-09-01T05:53:10","guid":{"rendered":"http:\/\/musilda.cz\/?p=4173"},"modified":"2017-09-01T05:53:10","modified_gmt":"2017-09-01T05:53:10","slug":"objednavky-ve-woocommerce","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/objednavky-ve-woocommerce\/","title":{"rendered":"Objedn\u00e1vky ve WooCommerce"},"content":{"rendered":"\n
Objedn\u00e1vka ve WooCommerce je z\u00e1znam, jen\u017e se vytvo\u0159\u00ed ve chv\u00edli, kdy v pokladn\u011b kliknete na tla\u010d\u00edtko Objednat.<\/p>\n\n\n\n
Nez\u00e1le\u017e\u00ed na tom, zda dojde k \u00fasp\u011b\u0161n\u00e9mu proveden\u00ed platby, nebo vy\u0161e objedn\u00e1vka sel\u017ee. Z\u00e1znam se vytvo\u0159\u00ed v\u017edy. Po vytvo\u0159en\u00ed objedn\u00e1vky je pak z\u00e1kazn\u00edk p\u0159esm\u011brov\u00e1n na d\u011bkovnou str\u00e1nku. Co\u017e nen\u00ed samostatn\u00e1 str\u00e1nka, jak si pop\u00ed\u0161eme jindy, ale technicky se jedn\u00e1 o str\u00e1nku pokladny.<\/p>\n\n\n\n
Ne\u017e se vrhneme do detailn\u00edho popisu objedn\u00e1vky v dal\u0161\u00edch \u010dl\u00e1nc\u00edch, mus\u00edme v\u011bd\u011bt, jak\u00e1 data se ukl\u00e1daj\u00ed p\u0159i vytvo\u0159en\u00ed z\u00e1znamu.<\/p>\n\n\n\n
Seznam je pom\u011brn\u011b dlouh\u00fd a nebude zcela kompletn\u00ed, pro znalost n\u00e1vaznosti dat je v\u0161ak pot\u0159ebn\u00fd.<\/p>\n\n\n\n
Nejd\u016fle\u017eit\u011bj\u0161\u00ed je z\u00e1znam o objedn\u00e1vce, jen\u017e je v tabulce posts<\/p>\n\n\n\n
To co zahrnuji pod polo\u017ekou dal\u0161\u00ed \u00fadaje, jsou z\u00e1znamy, kter\u00e9 pro n\u00e1s v tuto chv\u00edli nejsou relevantn\u00ed.<\/p>\n\n\n\n
Co je d\u016fle\u017eit\u00e9, WooCommerce si p\u0159i vytvo\u0159en\u00ed z\u00e1znamu v tabulce posts ulo\u017e\u00ed stav objedn\u00e1vky. k t\u011bm se je\u0161t\u011b dostaneme, ale nyn\u00ed je t\u0159eba, aby jste v\u011bd\u011bli, \u017ee stav objedn\u00e1vky je to co p\u0159i vytv\u00e1\u0159en\u00ed \u010dl\u00e1nku jeho publikace. \u010cl\u00e1nek m\u00e1 tedy nap\u0159\u00edklad publish, ale objedn\u00e1vka nem\u00e1 competed, ale wc-completed. Pokud budete p\u0159istupovat k dat\u016fm p\u0159\u00edmo do tabulky, je t\u0159eba na prefix myslet.<\/p>\n\n\n\n
Pokud v\u00e1\u0161 z\u00e1kazn\u00edk vypln\u00ed pozn\u00e1mku k objedn\u00e1vce na str\u00e1nce poklady, tato hodnota je ulo\u017eena jako post_excerpt v tabulce posts.<\/p>\n\n\n\n
Pokud jste ji\u017e n\u011bjakou objedn\u00e1vku ud\u011blali, v\u00edte, \u017ee se v adminstraci na prav\u00e9 stran\u011b zobrazuj\u00ed takzvan\u00e9 pozn\u00e1mky objedn\u00e1vky – nezam\u011b\u0148ovat s pozn\u00e1mkou z\u00e1kazn\u00edka!<\/strong><\/p>\n\n\n