{"id":1235,"date":"2017-09-19T12:27:46","date_gmt":"2017-09-19T12:27:46","guid":{"rendered":"http:\/\/www.taywa.ch\/blog\/?p=1235"},"modified":"2017-09-19T12:47:26","modified_gmt":"2017-09-19T12:47:26","slug":"text-pfeilnavigation-fuer-buch-produktslideshow-auf-about-books-mit-woocommerce","status":"publish","type":"post","link":"https:\/\/www.taywa.ch\/blog\/wordpress\/text-pfeilnavigation-fuer-buch-produktslideshow-auf-about-books-mit-woocommerce\/","title":{"rendered":"Text-\/ Pfeilnavigation f\u00fcr Buch-produktslideshow auf About Books mit woocommerce"},"content":{"rendered":"<p>woocommerce ist eines der verbreitetsten shop-plugins f\u00fcr wordpress. taywa hat f\u00fcr bruno margreth von der about books gmbh einen onlineshop damit entwickelt. unser ziel war bestm\u00f6gliche updatef\u00e4higkeit zu gew\u00e4rleisten und nicht enfach im plugin\/theme rumzuhacken oder zuviel zu \u00fcberschreiben.<\/p>\n<p>woocommerce bietet viele filter\/functions\/hooks an, aber die meisten sind schlecht dokumentiert. bei &#8222;About Books&#8220; &#8211; <a href=\"https:\/\/aboutbooks.ch\">aboutbooks.ch<\/a> &#8211; sollten bei der produktslideshow prev\/next links hin und keine thumbnails.<\/p>\n<p>Designvorlage f\u00fcr die produktseite von aboutbooks.ch mit dem buch The Images of Architects als beispiel:<br \/>\n<a href=\"https:\/\/www.taywa.ch\/blog\/wp-content\/uploads\/2017\/09\/aboutbooks.png\" style=\"display:block;\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.taywa.ch\/blog\/wp-content\/uploads\/2017\/09\/aboutbooks-1024x567.png\" alt=\"Einzelansicht von The Images of Architects auf aboutbooks.ch\" style=\"max-width:100%; height:auto;\" width=\"1024\" height=\"567\" class=\"alignnone size-large wp-image-1239\" srcset=\"https:\/\/www.taywa.ch\/blog\/wp-content\/uploads\/2017\/09\/aboutbooks-1024x567.png 1024w, https:\/\/www.taywa.ch\/blog\/wp-content\/uploads\/2017\/09\/aboutbooks-300x166.png 300w, https:\/\/www.taywa.ch\/blog\/wp-content\/uploads\/2017\/09\/aboutbooks-768x426.png 768w, https:\/\/www.taywa.ch\/blog\/wp-content\/uploads\/2017\/09\/aboutbooks.png 1812w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>nach der analyse des quellcodes haben wir die javascript-optionen f\u00fcr die gallery gefunden. und \u00fcber diese den filter <strong>&#8222;woocommerce_single_product_carousel_options&#8220;<\/strong> entdeckt. im <strong>functions.php<\/strong> des about books themes konnten wir so folgenden filter ansprechen:<\/p>\n<div class=\"js dean_ch\">\nadd_filter( &#8218;woocommerce_single_product_carousel_options&#8216;, function( $options ) {<br \/>\n&nbsp; &nbsp; $options[&#8218;directionNav&#8216;] = true;<br \/>\n&nbsp; &nbsp; $options[&#8218;controlNav&#8216;] = false;<br \/>\n&nbsp; &nbsp; $options[&#8218;animationLoop&#8216;] = true;<br \/>\n&nbsp; &nbsp; return $options;<br \/>\n} );<\/div>\n<p>hier das resultat anhand des buches &#8222;The Images of Architects&#8220;:<br \/>\n<a href=\"https:\/\/aboutbooks.ch\/product\/the-images-of-architects-edited-by-valerio-olgiati\/\">https:\/\/aboutbooks.ch\/product\/the-images-of-architects-edited-by-valerio-olgiati\/<\/a><\/p>\n<p>wie man im quellcode der seite sieht, ver\u00e4ndert der filter die eigenschaft <strong>&#8218;flexslider&#8216;<\/strong> des javascript variable <strong>&#8218;wc_single_product_params&#8216;<\/strong> womit der slider konfiguriert wird.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>woocommerce ist eines der verbreitetsten shop-plugins f\u00fcr wordpress. taywa hat f\u00fcr bruno margreth von der about books gmbh einen onlineshop damit entwickelt. unser ziel war bestm\u00f6gliche updatef\u00e4higkeit zu gew\u00e4rleisten und nicht enfach im plugin\/theme rumzuhacken oder zuviel zu \u00fcberschreiben. woocommerce bietet viele filter\/functions\/hooks an, aber die meisten sind schlecht dokumentiert. bei &#8222;About Books&#8220; &#8211; aboutbooks.ch<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[183,200],"class_list":["post-1235","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-js","tag-woocommerce"],"_links":{"self":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/1235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/comments?post=1235"}],"version-history":[{"count":9,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/1235\/revisions"}],"predecessor-version":[{"id":1246,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/1235\/revisions\/1246"}],"wp:attachment":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/media?parent=1235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/categories?post=1235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/tags?post=1235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}