{"id":4153,"date":"2017-08-31T07:17:00","date_gmt":"2017-08-31T07:17:00","guid":{"rendered":"http:\/\/musilda.cz\/?p=4153"},"modified":"2017-08-31T07:17:00","modified_gmt":"2017-08-31T07:17:00","slug":"kupony-ve-woocommerce","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/kupony-ve-woocommerce\/","title":{"rendered":"Kup\u00f3ny ve Woocommerce"},"content":{"rendered":"\n

Kup\u00f3ny jsou jednou z \u010d\u00e1st\u00ed WooCommerce, kterou m\u00e1te dostupnou ihned po instalaci a nemus\u00edte pou\u017e\u00edvat \u017e\u00e1dn\u00e1 dodate\u010dn\u00e1 roz\u0161\u00ed\u0159en\u00ed.<\/p>\n\n\n\n

Pokud se pokus\u00edme definovat, co kup\u00f3ny jsou, d\u00e1 se \u0159\u00edci, \u017ee se jedn\u00e1 o slevy. Nejsou v\u0161ak automaticky generovan\u00e9, na z\u00e1klad\u011b n\u011bjak\u00e9ho algoritmu, ale jednotliv\u00e9 kup\u00f3ny je t\u0159eba nadefinovat.<\/p>\n\n\n\n

N\u00e1sledn\u011b mus\u00ed z\u00e1kazn\u00edk kup\u00f3n pou\u017e\u00edt, aby pro n\u011bj byla sleva dostupn\u00e1.<\/p>\n\n\n\n

Ten lze zadat v ko\u0161\u00edku, nebo p\u0159i dokon\u010den\u00ed objedn\u00e1vky, vlo\u017een\u00edm k\u00f3du do formul\u00e1\u0159ov\u00e9ho pol\u00ed\u010dka.<\/p>\n\n\n\n

V ko\u0161\u00edku:<\/strong><\/p>\n\n\n

\n
\"\"<\/a><\/figure><\/div>\n\n\n

V pokladn\u011b:<\/strong><\/p>\n\n\n

\n
\"\"<\/a><\/figure><\/div>\n\n\n

Sleva se pak aplikuje dle toho, jak je nadefinov\u00e1na:<\/p>\n\n\n

\n
\"\"<\/a><\/figure><\/div>\n\n\n

Vytvo\u0159en\u00ed kup\u00f3nu<\/h2>\n\n\n\n

Kup\u00f3n vytvo\u0159\u00edme v administraci – WooCommerce -> Kup\u00f3ny:<\/p>\n\n\n

\n
\"\"<\/a><\/figure><\/div>\n\n\n

Zde vyd\u00edte v\u00fdpis v\u0161ech vytvo\u0159en\u00fdch kup\u00f3n\u016f. V\u00fdpis je velmi podobn\u00fd v\u00fdpisu \u010dl\u00e1nk\u016f, jen zobrazen\u00e9 \u00fadaje se li\u0161\u00ed a tak\u00e9 filtrovat m\u016f\u017eete pode typu kup\u00f3n\u016f.<\/p>\n\n\n\n

Pro vytvo\u0159en\u00ed nov\u00e9ho kup\u00f3nu klikn\u011bta na tla\u010d\u00edtko P\u0159idat kup\u00f3n<\/strong> a zobraz\u00ed se v\u00e1m formul\u00e1\u0159 pro vytvo\u0159en\u00ed kuponu:<\/p>\n\n\n

\n
\"\"<\/a><\/figure><\/div>\n\n\n

N\u00e1zev kup\u00f3nu<\/h2>\n\n\n\n

P\u0159i zad\u00e1v\u00e1n\u00ed nov\u00e9ho kup\u00f3nu, mus\u00edte definovat jeho n\u00e1zev. A proto\u017ee se jeho n\u00e1zev pou\u017e\u00edv\u00e1 jako k\u00f3d kup\u00f3nu, doporu\u010duji nepou\u017e\u00edvat diakritiku. Pou\u017eijte libovolnou kombinaci \u010d\u00edsel a p\u00edsmen.<\/p>\n\n\n\n

Popis kup\u00f3nu<\/h2>\n\n\n\n

Nyn\u00ed jsem pon\u011bkud na rozpac\u00edch, proto\u017ee popis kup\u00f3nu nepou\u017e\u00edv\u00e1m a ani netu\u0161\u00edm, na co p\u0159esn\u011b jej WooCommerce pou\u017e\u00edv\u00e1. Zkou\u0161el jsem jej vypnit, ale p\u0159i uplatn\u011bn\u00ed, na d\u011bkovn\u00e9 str\u00e1nce a ani v emailu jsem nezaznamenal \u017e\u00e1dnou zm\u011bnu.<\/p>\n\n\n\n

\u00dadaje kup\u00f3nu<\/h2>\n\n\n\n

Tento typ metaboxu ji\u017e zn\u00e1me z dat produktu, na lev\u00e9 stran\u011b jsou z\u00e1lo\u017eky, pomoc\u00ed nich\u017e se pohybujeme mezi jednotliv\u00fdmi formul\u00e1\u0159i.<\/p>\n\n\n\n

Obecn\u00e9 \u00fadaje:<\/h3>\n\n\n
\n
\"\"<\/a><\/figure><\/div>\n\n\n

Z\u00e1lo\u017eka obecn\u00e9 \u00fadaje slou\u017e\u00ed k tomu, aby bylo mo\u017eno nadefinovat z\u00e1kladn\u00ed chov\u00e1n\u00ed kup\u00f3nu:<\/p>\n\n\n\n

Typ slevy<\/h4>\n\n\n\n