{"id":5373,"date":"2019-12-01T08:41:00","date_gmt":"2019-12-01T08:41:00","guid":{"rendered":"https:\/\/musilda.cz\/?p=5373"},"modified":"2019-12-01T08:41:00","modified_gmt":"2019-12-01T08:41:00","slug":"zasilani-kopii-zakaznickych-e-mailu-ve-woocommerce","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/zasilani-kopii-zakaznickych-e-mailu-ve-woocommerce\/","title":{"rendered":"Zas\u00edl\u00e1n\u00ed kopi\u00ed z\u00e1kaznick\u00fdch e-mail\u016f ve WooCommerce"},"content":{"rendered":"\n
WooCommerce zas\u00edl\u00e1 dva druhy e-mail\u016f. Jsou to e-maily administr\u00e1torovi a e-maily z\u00e1kazn\u00edk\u016fm. <\/p>\n\n\n\n
E-maily z\u00e1kazn\u00edk\u016fm se naz\u00fdvaj\u00ed transak\u010dn\u00ed a v\u017edy jsou v\u00e1zan\u00e9 na n\u011bjakou akci. V\u011bt\u0161inou na zm\u011bnu stavu objedn\u00e1vky. <\/p>\n\n\n\n
Z\u00e1kazn\u00edk tak dostane e-mail, \u017ee je jeho objedn\u00e1vka on-hold, processing, nebo completed. C\u00edlen\u011b zde nep\u0159ekl\u00e1d\u00e1m stavy objedn\u00e1vek, proto\u017ee mus\u00ed b\u00fdt jednozna\u010dn\u00e9, kdy je e-mail odesl\u00e1n. <\/p>\n\n\n\n
Ob\u010das se st\u00e1v\u00e1, \u017ee v r\u00e1mci nastaven\u00fdch proces\u016f uvnit\u0159 e-shopu, je \u017e\u00e1douc\u00ed, aby e-mail o zm\u011bn\u011b stavu objedn\u00e1vky, obdr\u017eel i n\u011bkdo jin\u00fd, ne\u017e z\u00e1kazn\u00edk. <\/p>\n\n\n\n
Bohu\u017eel v nastaven\u00ed WooCommerce, nem\u00e1te mo\u017enost p\u0159i\u0159azen\u00ed dodate\u010dn\u00e9ho e-mailu k transak\u010dn\u00edm e-mail\u016fm. Na\u0161t\u011bst\u00ed m\u00e1me k dispozici hned dva zp\u016fsoby, jak to obej\u00edt. <\/p>\n\n\n\n
U obou filtr\u016f mus\u00edte zn\u00e1t id transak\u010dn\u00edho e-mailu, v kter\u00e9m chcete zm\u011bnu ud\u011blat. Pro v\u00fd\u0161e zm\u00edn\u011bn\u00e9 stavy objedn\u00e1vek to je:<\/p>\n\n\n\n
Pak to je ji\u017e jednoduch\u00e9, jak je vid\u011bt z k\u00f3du, kter\u00fd jsem um\u00edstil na sv\u016fj Gist profil https:\/\/gist.github.com\/Musilda<\/a> <\/p>\n\n\n\n\n\n\n\n V prvn\u00edm p\u0159\u00edpad\u011b pou\u017e\u00edv\u00e1me dynamick\u00fd hook pro dokon\u010denou objedn\u00e1vku a p\u0159id\u00e1v\u00e1me adres\u00e1ta e-mailu, v druh\u00e9m p\u0159\u00edpad\u011b upravujeme pomoc\u00ed hooku, kter\u00fd je spole\u010dn\u00fd pro v\u0161echny e-maily, jeho hlavi\u010dku. Zde pak mus\u00edme kontrolovat id aktu\u00e1ln\u00edho e-mailu, jinak se n\u00e1m kopie ode\u0161le u ka\u017ed\u00e9ho e-mailu.<\/p>\n\n\n\n