{"id":4021,"date":"2017-07-07T20:54:19","date_gmt":"2017-07-07T20:54:19","guid":{"rendered":"http:\/\/musilda.cz\/?p=4021"},"modified":"2017-07-07T20:54:19","modified_gmt":"2017-07-07T20:54:19","slug":"seskupeny-produkt-ve-woocommerce","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/seskupeny-produkt-ve-woocommerce\/","title":{"rendered":"Seskupen\u00fd produkt ve WooCommerce"},"content":{"rendered":"\n

Tento produkt je uk\u00e1zkou toho, co se d\u00e1 s WooCommerce v\u0161e vytvo\u0159it, ale z\u00e1rove\u0148 je \u010dasto \u0161patn\u011b pochopeno jeho fungov\u00e1n\u00ed.<\/p>\n\n\n\n

Proto si uk\u00e1\u017eeme na p\u0159\u00edkladu, jak seskupov\u00e1n\u00ed funguje.<\/p>\n\n\n\n

Nejprve si vytvo\u0159\u00edme jednotliv\u00e9 jednoduch\u00e9 produkty, kter\u00e9 budeme cht\u00edt seskupit. Co je d\u016fle\u017eit\u00e9, pokud je budete cht\u00edt m\u00edt k dispozici pouze v seskupen\u00ed, mus\u00edte produkt nastavit jako skryt\u00fd v katalogu, jinak si jej budou moci z\u00e1kazn\u00edci zakoupit i samostatn\u011b.<\/p>\n\n\n

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

Pro n\u00e1\u0161 p\u0159\u00edklad jsem zvolil pro seskupen\u00ed telefon Samsung, plus sluch\u00e1tka, nab\u00edje\u010dku a dokovac\u00ed stanici. V\u0161echny produkty jsou nastaveny jako jednoduch\u00e9.<\/p>\n\n\n\n

Nyn\u00ed mus\u00edme vytvo\u0159it seskupen\u00fd produkt.<\/p>\n\n\n\n

Ve v\u00fdb\u011bru typu produktu nastav\u00edme Seskupen\u00fd produkt a data produktu budou vypadat takto:<\/p>\n\n\n

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

Na frontendu se produkt bude zat\u00edm zobrazovat bez jak\u00fdchkoliv dat na prav\u00e9 stran\u011b:<\/p>\n\n\n

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

Nyn\u00ed se p\u0159epneme do z\u00e1lo\u017eky Prov\u00e1zan\u00e9 produkty a za\u010dneme sestavovat produkt:<\/p>\n\n\n

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

Do pol\u00ed\u010dka formul\u00e1\u0159e sta\u010d\u00ed vepsat po\u010d\u00e1te\u010dn\u00ed t\u0159i p\u00edsmena produktu a ji\u017e v\u00e1m s\u00e1m za\u010dne na\u0161ept\u00e1vat v\u00fdsledky:<\/p>\n\n\n\n

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

Vybereme v\u0161echny produkty, kter\u00e9 chceme seskupit:<\/p>\n\n\n

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

V\u00fdsledek:<\/p>\n\n\n

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

Jak m\u016f\u017eete vid\u011bt, tak na prav\u00e9 stran\u011b, vedle obr\u00e1zku se vypsaly produkty, spole\u010dn\u011b s v\u00fdb\u011brem po\u010dtu kus\u016f a tla\u010d\u00edtkem, pro p\u0159id\u00e1n\u00ed do ko\u0161\u00edku.<\/p>\n\n\n\n

Po p\u0159id\u00e1n\u00ed do ko\u0161\u00edku, se v n\u011bm automaticky dopln\u00ed v\u0161echny vybran\u00e9 produkty. Pokud nech\u00e1te nulu, produkt se do ko\u0161\u00edku nep\u0159id\u00e1.<\/p>\n\n\n

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

Seskupen\u00fd produkt m\u00e1me hotov\u00fd. Je t\u0159eba si uv\u011bdomit, \u017ee toto je v\u00fdchoz\u00ed chov\u00e1n\u00ed WooCommerce a pokud chcete m\u00edt sestavu, jako jeden produkt pro vlo\u017een\u00ed do ko\u0161\u00edku, mus\u00edte pou\u017e\u00edt n\u011bjak\u00fd plugin.<\/p>\n\n\n\n

P\u0159\u00ed\u0161t\u011b se pod\u00edv\u00e1me na extern\u00ed produkt.<\/p>\n","protected":false},"excerpt":{"rendered":"

Tento produkt je uk\u00e1zkou toho, co se d\u00e1 s WooCommerce v\u0161e vytvo\u0159it, ale z\u00e1rove\u0148 je \u010dasto \u0161patn\u011b pochopeno jeho fungov\u00e1n\u00ed. Proto si uk\u00e1\u017eeme na p\u0159\u00edkladu, jak seskupov\u00e1n\u00ed funguje. Nejprve si vytvo\u0159\u00edme jednotliv\u00e9 jednoduch\u00e9 produkty, kter\u00e9 budeme cht\u00edt seskupit. Co je d\u016fle\u017eit\u00e9, pokud je budete cht\u00edt m\u00edt k dispozici pouze v seskupen\u00ed, mus\u00edte produkt nastavit jako<\/p>\n","protected":false},"author":1,"featured_media":8732,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[25,26],"tags":[341],"class_list":["post-4021","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce","category-woocommerce-manual","tag-seskupeny-produkt"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/4021"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=4021"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/4021\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8732"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=4021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=4021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=4021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}