{"id":6367,"date":"2021-10-10T10:43:00","date_gmt":"2021-10-10T10:43:00","guid":{"rendered":"https:\/\/musilda.cz\/?p=6367"},"modified":"2021-10-10T10:43:00","modified_gmt":"2021-10-10T10:43:00","slug":"zmena-poctu-upsell-produktu-ve-woocommerce","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/zmena-poctu-upsell-produktu-ve-woocommerce\/","title":{"rendered":"Zm\u011bna po\u010dtu upsell produkt\u016f ve WooCommerce"},"content":{"rendered":"\n

Upsell produkty jsou ve WooCommerce p\u0159elo\u017eeny jako navy\u0161ovac\u00ed prodej. Ve v\u00fdchoz\u00edm stavu se zobrazuj\u00ed pouze t\u0159i. <\/p>\n\n\n\n

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

V p\u0159\u00edpad\u011b, \u017ee pot\u0159ebujete jejich po\u010det zm\u011bnit, a\u0165 ji\u017e sn\u00ed\u017eit, nebo zv\u00fd\u0161it, sta\u010d\u00ed pou\u017e\u00edt n\u00e1sleduj\u00edc\u00ed k\u00f3d, kter\u00fd vlo\u017e\u00edte do functions.php:<\/p>\n\n\n\n

add_filter( 'woocommerce_upsell_display_args', 'wc_change_number_related_products', 20 );\nfunction wc_change_number_related_products( $args ) {\n\n \t$args['posts_per_page'] = 4;\n \t$args['columns'] = 4;\n \treturn $args;\n\n}<\/code><\/pre>\n\n\n\n

T\u00edm zm\u011bn\u00edte po\u010det produkt\u016f na \u0159\u00e1dek. Toto je nejlep\u0161\u00ed zp\u016fsob, proto\u017ee WooCommerce do loopu produkt\u016f p\u0159id\u00e1v\u00e1 css t\u0159\u00eddy s kter\u00fdmi se pak mus\u00edte dost pr\u00e1t, nap\u0159\u00edklad nulov\u00fd margin na prav\u00e9 stran\u011b poledn\u00edho produktu. <\/p>\n\n\n\n

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

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

Dal\u0161\u00ed u\u017eite\u010dn\u00e9 tipy najdete na U\u017eite\u010dn\u00e9 snippety pro WooCommerce<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

Upsell produkty jsou ve WooCommerce p\u0159elo\u017eeny jako navy\u0161ovac\u00ed prodej. Ve v\u00fdchoz\u00edm stavu se zobrazuj\u00ed pouze t\u0159i. V p\u0159\u00edpad\u011b, \u017ee pot\u0159ebujete jejich po\u010det zm\u011bnit, a\u0165 ji\u017e sn\u00ed\u017eit, nebo zv\u00fd\u0161it, sta\u010d\u00ed pou\u017e\u00edt n\u00e1sleduj\u00edc\u00ed k\u00f3d, kter\u00fd vlo\u017e\u00edte do functions.php: T\u00edm zm\u011bn\u00edte po\u010det produkt\u016f na \u0159\u00e1dek. Toto je nejlep\u0161\u00ed zp\u016fsob, proto\u017ee WooCommerce do loopu produkt\u016f p\u0159id\u00e1v\u00e1 css t\u0159\u00eddy s<\/p>\n","protected":false},"author":1,"featured_media":5600,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[29],"tags":[],"class_list":["post-6367","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce-snippety"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/6367"}],"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=6367"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/6367\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/5600"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=6367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=6367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=6367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}