Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI

Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed (PTTComp1-2nd-MINI)

$54.99 $ 49.99

Availability:
In Stock
Brand:
ProTechTrader
UPC:
789048343415
Model #:
PTTComp1-2nd-MINI
MPN
PTTMakeKit1-Mini

Description

ProTechTrader 789048343415 Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed

Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed

 

 

 

 

 

 

 

<table align="center" style="border-spacing: 0px;"> <tbody> <tr> <td> <div id="ds_div"> <div> <h1 class="a-size-large a-spacing-none" id="title" style="padding: 0px; text-align: center; line-height: 1.3 !important; font-family: " amazon="" ember="" arial="" sans-serif="" font-size:="" large="" font-weight:="" margin-top:="" margin-right:="" margin-bottom:="" margin-left:="" box-sizing:="" border-box="" background-color:="" rgb="" text-rendering:="" optimizelegibility=""><font rwr="1" size="4" style="font-family: Arial;"><span class="a-size-large" id="productTitle" style="line-height: 1.3 !important; box-sizing: border-box; text-rendering: optimizelegibility;"><font color="#00429a" size="7">Make: Electronics 2nd Edition</font></span></font></h1> <h1 class="a-size-large a-spacing-none" id="title" style="padding: 0px; text-align: center; line-height: 1.3 !important; font-family: " amazon="" ember="" arial="" sans-serif="" font-size:="" large="" margin-top:="" margin-right:="" margin-bottom:="" margin-left:="" box-sizing:="" border-box="" background-color:="" rgb="" text-rendering:="" optimizelegibility=""><font rwr="1" size="4" style="font-family: Arial;"><span class="a-size-large" style="line-height: 1.3 !important; box-sizing: border-box; text-rendering: optimizelegibility;"><font size="7"><span style="color:#ff3333;"><u><i>Mini*</i></u><span style="font-weight: 400;"> </span></span><span style="color: rgb(0, 66, 154); font-weight: 400;">Component Pack 1</span></font></span></font></h1> <div style="text-align: center;"><font rwr="1" size="4" style="font-family: Arial;"><span style="color:#000080;"><font size="5">*Mini Component Pack 1 comes with all the same electronic parts, </font></span></font></div> <div style="text-align: center;"><font rwr="1" size="4" style="font-family: Arial;"><span style="color:#000080;"><font size="5">components, and circuits in the original kit </font><font style="font-size: x-large;">in a smaller storage case </font></span></font></div> <div style="text-align: center;"><font rwr="1" size="4" style="font-family: Arial;"><span style="color:#000080;"><font style="font-size: x-large;">available for a limited time only </font></span><b><u><font color="#00ae5f" size="6">for a lower price!</font></u></b></font></div> <div style="text-align: center;"> </div> <h1 class="a-size-large a-spacing-none" id="title" style="padding: 0px; text-align: center; line-height: 1.3 !important; font-family: " amazon="" ember="" arial="" sans-serif="" font-size:="" font-weight:="" margin-top:="" margin-right:="" margin-bottom:="" margin-left:="" box-sizing:="" border-box="" background-color:="" rgb="" text-rendering:="" optimizelegibility=""> </h1> <h1 class="a-size-large a-spacing-none" id="title" style="padding: 0px; text-align: center; line-height: 1.3 !important; font-family: " amazon="" ember="" arial="" sans-serif="" font-size:="" font-weight:="" margin-top:="" margin-right:="" margin-bottom:="" margin-left:="" box-sizing:="" border-box="" background-color:="" rgb="" text-rendering:="" optimizelegibility=""><font rwr="1" size="4" style="font-family: Arial;"><span class="a-size-large" style="line-height: 1.3 !important; box-sizing: border-box; text-rendering: optimizelegibility;"><font color="#111111">This Second Edition Kit Follows The Latest Make: Electronics Educational Book by Charles Platt</font><font color="#ff0010">*</font></span></font></h1> </div> <div style="text-align: center; font-size: large;"><font rwr="1" size="4" style="font-family: Arial;"><span class="a-size-large" style="line-height: 1.3 !important; box-sizing: border-box; text-rendering: optimizelegibility;"><font color="#ff0010">*Book is not Included and pictured for reference only</font></span></font></div> <div style="text-align: center; font-size: large;"><font rwr="1" size="4" style="font-family: Arial;"><img alt="Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-Ed-1742" src="../image/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-Ed-1742-descriptionImage0.jpg"/></font></div> <div style="text-align: center; font-size: large;"> <div><font rwr="1" size="4" style="font-family: Arial;"><span class="a-size-large" style="line-height: 1.3 !important; box-sizing: border-box; text-rendering: optimizelegibility;"><span class="a-size-large" style="line-height: 1.3 !important; box-sizing: border-box; text-rendering: optimizelegibility;"><font color="#ff0010">*Book is not Included and pictured for reference only</font></span></span></font></div> <div> </div> </div> <div style="text-align: center;"> </div> <div> </div> <div> </div> <ul class="a-unordered-list a-vertical a-spacing-none" style="margin: 0px 0px 0px 18px; padding: 0px; color: rgb(148, 148, 148); font-family: " amazon="" ember="" arial="" sans-serif="" box-sizing:="" border-box="" background-color:="" rgb=""> <li style="margin: 0px; box-sizing: border-box; overflow-wrap: break-word;"><font rwr="1" size="4" style="font-family: Arial;"><span class="a-list-item" style="color: rgb(17, 17, 17); box-sizing: border-box;"><font size="4">Essential Components for Experiments 1 - 11 in the second edition of Make: Electronics by Charles Platt</font></span></font></li> <li style="margin: 0px; box-sizing: border-box; overflow-wrap: break-word;"><font rwr="1" size="4" style="font-family: Arial;"><span class="a-list-item" style="color: rgb(17, 17, 17); box-sizing: border-box;"><font size="4">Over 125 pieces included covers all the new experiments in Chapters 1 & 2 in the latest 2nd ed Learning by Discovery book</font></span></font></li> <li style="margin: 0px; box-sizing: border-box; overflow-wrap: break-word;"><font rwr="1" size="4" style="font-family: Arial;"><span class="a-list-item" style="color: rgb(17, 17, 17); box-sizing: border-box;"><font size="4">Double Sided Storage Carrying Case with over 30 compartments to keep your electronics organized - Configurable to hold your completed circuits as well.</font></span></font></li> <li style="margin: 0px; box-sizing: border-box; overflow-wrap: break-word;"><font rwr="1" size="4" style="font-family: Arial;"><span class="a-list-item" style="color: rgb(17, 17, 17); box-sizing: border-box;"><font size="4">Includes a solderless breadboard which is used for circuit prototyping and provides an excellent base for anyone to learn electronics. These electronic kits have also become a popular choice for students and teachers and are being used in STEM programs</font></span></font></li> <li style="margin: 0px; box-sizing: border-box; overflow-wrap: break-word;"><font rwr="1" size="4" style="font-family: Arial;"><span class="a-list-item" style="color: rgb(17, 17, 17); box-sizing: border-box;"><font size="4">Designed for the updated rewritten 2015 2nd Ed update of Make: Electronics - Also great for anyone beginning to learn electronics and circuit design</font></span></font></li> </ul> <div> </div> <div> </div> <div> <div class="disclaim" style="margin: 0px 0px 1em; color: rgb(136, 136, 136); font-family: verdana, arial, helvetica, sans-serif; box-sizing: border-box; background-color: rgb(255, 255, 255);"><font rwr="1" size="4" style="font-family: Arial;"><span style="color:#000000;"><font size="4">Style: <strong>Mini </strong><span style="font-weight: 700; box-sizing: border-box;">Regular Pack 1</span></font></span></font></div> <p style="margin: 0em 0px 1em 1em; padding: 0px; color: rgb(51, 51, 51); font-family: " amazon="" ember="" arial="" sans-serif="" box-sizing:="" border-box="" background-color:="" rgb=""><font rwr="1" size="4" style="font-family: Arial;"><font size="4">The ProTechTrader Make: Electronics Component Kit 1 has been designed to be used with the second edition of Charles Platt’s hands on learning book, Make: Electronics. Rounding up all of the necessary components can be time consuming and frustrating and we think learning electronics should be fun and exciting, so we’ve created the ideal component kit for experiments 1-11. The component shopping has been done so you can hit the ground running. You can rely on the ProTechTrader Component Pack 1 to supply you with the necessary components you’ll need for chapters 1 & 2 which cover experiments 1 - 11 of the Amazon Best Seller Make: Electronics: Learning Through Discovery 2nd Edition by Charles Platt and all are housed in a durable easy to carry double-sided plastic organizer. Each of the components are clearly labeled for easy access. <br style="box-sizing: border-box;"/> <br style="box-sizing: border-box;"/> <br style="box-sizing: border-box;"/> <span style="font-weight: 700; box-sizing: border-box;">The ProTechTrader Mini Make: Electronics Component Pack 1 comes with an identification and includes:</span></font></font></p> <ul> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Double Sided Storage Compartment Carrying Case</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Solderless Breadboard</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Basic and Low Current LEDs</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Bipolar Transistors</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">9V Battery Connector</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Test Leads with Alligator Clips</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Carrier for AA Battery</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Toggle and Tactile PCB Switches</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">DPDT PCB Non-Latching relays</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Linear Potentiometers</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Trimmer Potentiometer</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Blade Fuses</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Small 8 Ohm Loudspeaker</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">Hookup Wire in Three Colors</font></font></li> <li><font rwr="1" size="4" style="font-family: Arial;"><font size="4">All Required Resistors and Capacitors</font></font></li> </ul> <br style="box-sizing: border-box;"/> <font rwr="1" size="4" style="font-family: Arial;"><font size="2">Please note The book Make: Electronics 2nd edition is sold separately.</font></font></div> </div> </td> </tr> </tbody> </table> <p> </p> </div></body></html></div> <h2 class="s_head">Photos (3)</h2><div id="product_gallery"><ul class="s_thumbs clearfix"><li><a class="s_thumb cloud-zoom-gallery" rel="useZoom: 'product_image_preview', smallImage: 'image/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491.jpg'" href="image/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491.jpg" title=""><img src="https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-340x340.jpg" width="140" height="140" title="" alt="Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed (PTTComp1-2nd-MINI) " /></a></li><li><!-- <a class="s_thumb cloud-zoom-gallery" rel="useZoom: 'product_image_preview', smallImage: 'https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-800x800.jpg" href="https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-800x800.jpg" title=""> --><a class="s_thumb cloud-zoom-gallery" rel="useZoom: 'product_image_preview', smallImage: 'https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-800x800.jpg'" href="https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-800x800.jpg" title=""><img src="https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-140x140.jpg" title="" alt="Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed (PTTComp1-2nd-MINI) " /></a></li><li><!-- <a class="s_thumb cloud-zoom-gallery" rel="useZoom: 'product_image_preview', smallImage: 'https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-800x800.jpg" href="https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-800x800.jpg" title=""> --><a class="s_thumb cloud-zoom-gallery" rel="useZoom: 'product_image_preview', smallImage: 'https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-800x800.jpg'" href="https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-800x800.jpg" title=""><img src="https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-140x140.jpg" title="" alt="Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed (PTTComp1-2nd-MINI) " /></a></li><li><!-- <a class="s_thumb cloud-zoom-gallery" rel="useZoom: 'product_image_preview', smallImage: 'https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-800x800.jpg" href="https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-800x800.jpg" title=""> --><a class="s_thumb cloud-zoom-gallery" rel="useZoom: 'product_image_preview', smallImage: 'https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-800x800.jpg'" href="https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-800x800.jpg" title=""><img src="https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-140x140.jpg" title="" alt="Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed (PTTComp1-2nd-MINI) " /></a></li></ul></div></div></div> <div id="related_products"><h2 class="s_title_1"><span>Related Products</span></h2><div class="s_listing s_grid_view size_2 clearfix"><div class="s_item product_7444"><a class="s_thumb" href="https://www.protechtrader.com/Make-electronics-component-pack-1-2nd-edition" onclick="GAClick('Make: Electronics Kits 2nd Ed Component Packs for ','7444','119.99','ProTechTrader','Electronics - Computers');"><img src="https://www.protechtrader.com/image/cache/data/compkit1/make-electronics-kits-2nd-ed-component-packs-for-make-electronics-second-editionpttcomppack-2nd789048342692-a28092-140x140.jpg" title="Make: Electronics Kits 2nd Ed Component Packs for Make: Electronics Second Edition" poip_id="image_related_products_7444" alt="Make: Electronics Kits 2nd Ed Component Packs for Make: Electronics Second Edition" /></a><div class="s_item_info"><h3><a href="https://www.protechtrader.com/Make-electronics-component-pack-1-2nd-edition" onclick="GAClick('Make: Electronics Kits 2nd Ed Component Packs for ','7444','119.99','ProTechTrader','Electronics - Computers');">Make: Electronics Kits 2nd Ed Component Packs for Make: Electronics Second Edition</a></h3><div class="s_price_holder s_size_2 s_label"><p class="s_price"><span class="s_currency s_before">$</span>119.99</p></div><div class="s_actions"><a class="s_button_add_to_cart" href="javascript:;" onclick="addToCart('7444');"><span class="s_icon_16"><span class="s_icon"></span>Add</span></a> <!-- Beginning of Buy With Prime Widget --><script async fetchpriority='high' src='https://code.buywithprime.amazon.com/bwp.v1.js'></script><div id="amzn-buy-now" data-site-id="lqpt8pson4" data-widget-id="w-QJeBBVVkUiaW8ywI8n9d34" data-sku="PTTComp1-2nd-MINI" ></div><!-- End of Buy With Prime Widget --><a class="s_button_wishlist s_icon_10" onclick="addToWishList('7444');"><span class="s_icon s_add_10"></span>Wishlist</a><a class="s_button_compare s_icon_10" onclick="addToCompare('7444');"><span class="s_icon s_add_10"></span>Compare</a></div></div></div><div class="s_item product_7462"><a class="s_thumb" href="https://www.protechtrader.com/Make-Electronics-Learning-Through-Discovery" onclick="GAClick('Make: Electronics Learning Through Discovery (2nd ','7462','30.99','','Electronics - Computers');"><img src="https://www.protechtrader.com/image/cache/data//1680450263/make-electronics-learning-through-discovery-2nd-edition-by-charles-platt978-1680450262-7462-140x140.jpg" title="Make: Electronics Learning Through Discovery (2nd Edition) by Charles Platt" poip_id="image_related_products_7462" alt="Make: Electronics Learning Through Discovery (2nd Edition) by Charles Platt" /></a><div class="s_item_info"><h3><a href="https://www.protechtrader.com/Make-Electronics-Learning-Through-Discovery" onclick="GAClick('Make: Electronics Learning Through Discovery (2nd ','7462','30.99','','Electronics - Computers');">Make: Electronics Learning Through Discovery (2nd Edition) by Charles Platt</a></h3><div class="s_price_holder s_size_2 s_label"><p class="s_price"><span class="s_currency s_before">$</span>30.99</p></div><div class="s_actions"><a class="s_button_add_to_cart" href="javascript:;" onclick="addToCart('7462');"><span class="s_icon_16"><span class="s_icon"></span>Add</span></a> <!-- Beginning of Buy With Prime Widget --><script async fetchpriority='high' src='https://code.buywithprime.amazon.com/bwp.v1.js'></script><div id="amzn-buy-now" data-site-id="lqpt8pson4" data-widget-id="w-QJeBBVVkUiaW8ywI8n9d34" data-sku="PTTComp1-2nd-MINI" ></div><!-- End of Buy With Prime Widget --><a class="s_button_wishlist s_icon_10" onclick="addToWishList('7462');"><span class="s_icon s_add_10"></span>Wishlist</a><a class="s_button_compare s_icon_10" onclick="addToCompare('7462');"><span class="s_icon s_add_10"></span>Compare</a></div></div></div><div class="s_item product_7463"><a class="s_thumb" href="https://www.protechtrader.com/Easy-Electronics-Kit-Pack-and-Book" onclick="GAClick('Make: Easy Electronics Kit Bundle - Component Pack','7463','67.99','ProTechTrader','Electronics - Computers');"><img src="https://www.protechtrader.com/image/cache/data/Easy-Electronics/make-easy-electronics-kit-bundle-component-pack-and-book-by-charles-platteasy-electronics-kit-pack-and-book789048342913-7463-140x140.jpg" title="Make: Easy Electronics Kit Bundle - Component Pack & Book by Charles Platt" poip_id="image_related_products_7463" alt="Make: Easy Electronics Kit Bundle - Component Pack & Book by Charles Platt" /></a><div class="s_item_info"><h3><a href="https://www.protechtrader.com/Easy-Electronics-Kit-Pack-and-Book" onclick="GAClick('Make: Easy Electronics Kit Bundle - Component Pack','7463','67.99','ProTechTrader','Electronics - Computers');">Make: Easy Electronics Kit Bundle - Component Pack & Book by Charles Platt</a></h3><div class="s_price_holder s_size_2 s_label"><p class="s_price"><span class="s_currency s_before">$</span>67.99</p></div><div class="s_actions"><a class="s_button_add_to_cart" href="javascript:;" onclick="addToCart('7463');"><span class="s_icon_16"><span class="s_icon"></span>Add</span></a> <!-- Beginning of Buy With Prime Widget --><script async fetchpriority='high' src='https://code.buywithprime.amazon.com/bwp.v1.js'></script><div id="amzn-buy-now" data-site-id="lqpt8pson4" data-widget-id="w-QJeBBVVkUiaW8ywI8n9d34" data-sku="PTTComp1-2nd-MINI" ></div><!-- End of Buy With Prime Widget --><a class="s_button_wishlist s_icon_10" onclick="addToWishList('7463');"><span class="s_icon s_add_10"></span>Wishlist</a><a class="s_button_compare s_icon_10" onclick="addToCompare('7463');"><span class="s_icon s_add_10"></span>Compare</a></div></div></div></div></div> <div class="clear"></div><div id="product_tags"><h2 class="s_title_1"><span>Tags:</span></h2><ul class="clearfix"><li><a href="https://www.protechtrader.com/tags/make:">make:</a></li><li><a href="https://www.protechtrader.com/tags/electronics">electronics</a></li><li><a href="https://www.protechtrader.com/tags/2nd">2nd</a></li><li><a href="https://www.protechtrader.com/tags/edition">edition</a></li><li><a href="https://www.protechtrader.com/tags/mini">mini</a></li><li><a href="https://www.protechtrader.com/tags/component">component</a></li><li><a href="https://www.protechtrader.com/tags/pack">pack</a></li><li><a href="https://www.protechtrader.com/tags/kit">kit</a></li><li><a href="https://www.protechtrader.com/tags/exp">exp</a></li><li><a href="https://www.protechtrader.com/tags/1-11">1-11</a></li><li><a href="https://www.protechtrader.com/tags/kits">kits</a></li></ul></div> </div><span class="clear"></span><!--microdatapro 7.8 breadcrumb start [microdata] --><span itemscope itemtype="https://schema.org/BreadcrumbList"><span itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"><link itemprop="item" href="https://www.protechtrader.com/"><meta itemprop="name" content="Home" /><meta itemprop="position" content="1" /></span><span itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"><link itemprop="item" href="https://www.protechtrader.com/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1-Exp-1-11-in-2nd-Ed"><meta itemprop="name" content="Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed" /><meta itemprop="position" content="2" /></span></span><!--microdatapro 7.8 breadcrumb end [microdata] --><!--microdatapro 7.8 breadcrumb start [json-ld] --><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "item": { "@id": "https://www.protechtrader.com/", "name": "Home" } },{ "@type": "ListItem", "position": 2, "item": { "@id": "https://www.protechtrader.com/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1-Exp-1-11-in-2nd-Ed", "name": "Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed" } }] } </script><!--microdatapro 7.8 breadcrumb end [json-ld] --><!--microdatapro 7.8 product start [microdata] --><span itemscope itemtype="https://schema.org/Product"><meta itemprop="name" content="Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" /><link itemprop="url" href="https://www.protechtrader.com/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1-Exp-1-11-in-2nd-Ed" /><link itemprop="image" href="image/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491.jpg" /><span itemprop="brand" itemtype="https://schema.org/Brand" itemscope><meta itemprop="name" content="ProTechTrader" /></span><meta itemprop="manufacturer" content="ProTechTrader" /><meta itemprop="model" content="PTTComp1-2nd-MINI" /><meta itemprop="gtin12" content="789048343415" /><meta itemprop="mpn" content="PTTMakeKit1-Mini" /><meta itemprop="sku" content="PTTComp1-2nd-MINI" /><span itemprop="offers" itemscope itemtype="https://schema.org/Offer"><meta itemprop="priceCurrency" content="USD" /><meta itemprop="price" content="49.99" /><meta itemprop="itemCondition" content="https://schema.org/NewCondition" /><link itemprop="availability" href="https://schema.org/InStock" /><meta itemprop="priceValidUntil" content="2026-10-27" /><link itemprop="url" href="https://www.protechtrader.com/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1-Exp-1-11-in-2nd-Ed" /></span><meta itemprop="description" content="ProTechTrader 789048343415 Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed               Make: Electronics 2nd Edition Mini* Component Pack 1 *Mini Component Pack 1 comes with all the same electronic parts,  components, and circuits in the original kit  in a smaller storage case  available for a limited time only  for a lower price!     This Second Edition Kit Follows The Latest Make: Electronics Educational Book by Charles Platt * *Book is not Included and pictured for reference only *Book is not Included and pictured for reference only         Essential Components for Experiments 1 - 11 in the second edition of Make: Electronics by Charles Platt Over 125 pieces included covers all the new experiments in Chapters 1 & 2 in the latest 2nd ed Learning by Discovery book Double Sided Storage Carrying Case with over 30 compartments to keep your electronics organized - Configurable to hold your completed circuits as well. Includes a solderless breadboard which is used for circuit prototyping and provides an excellent base for anyone to learn electronics. These electronic kits have also become a popular choice for students and teachers and are being used in STEM programs Designed for the updated rewritten 2015 2nd Ed update of Make: Electronics - Also great for anyone beginning to learn electronics and circuit design     Style: Mini  Regular Pack 1 The ProTechTrader Make: Electronics Component Kit 1 has been designed to be used with the second edition of Charles Platt’s hands on learning book, Make: Electronics. Rounding up all of the necessary components can be time consuming and frustrating and we think learning electronics should be fun and exciting, so we’ve created the ideal component kit for experiments 1-11. The component shopping has been done so you can hit the ground running. You can rely on the ProTechTrader Component Pack 1 to supply you with the necessary components you’ll need for chapters 1 & 2 which cover experiments 1 - 11 of the Amazon Best Seller Make: Electronics: Learning Through Discovery 2nd Edition by Charles Platt and all are housed in a durable easy to carry double-sided plastic organizer. Each of the components are clearly labeled for easy access.  The ProTechTrader Mini Make: Electronics Component Pack 1 comes with an identification and includes: Double Sided Storage Compartment Carrying Case Solderless Breadboard Basic and Low Current LEDs Bipolar Transistors 9V Battery Connector Test Leads with Alligator Clips Carrier for AA Battery Toggle and Tactile PCB Switches DPDT PCB Non-Latching relays Linear Potentiometers Trimmer Potentiometer Blade Fuses Small 8 Ohm Loudspeaker Hookup Wire in Three Colors All Required Resistors and Capacitors Please note The book Make: Electronics 2nd edition is sold separately.  " /><span id="related-product-1" itemprop="isRelatedTo" itemscope itemtype="https://schema.org/Product"><meta itemprop="name" content="Make: Electronics Kits 2nd Ed Component Packs for Make: Electronics Second Edition" /><meta itemprop="description" content="Make: Electronics Kits 2nd Ed Component Packs for Make: Electronics Second Edition" /><link itemprop="url" href="https://www.protechtrader.com/Make-electronics-component-pack-1-2nd-edition" /><link itemprop="image" href="https://www.protechtrader.com/image/cache/data/compkit1/make-electronics-kits-2nd-ed-component-packs-for-make-electronics-second-editionpttcomppack-2nd789048342692-a28092-140x140.jpg" /><span itemprop="offers" itemscope itemtype="https://schema.org/Offer"><meta itemprop="priceCurrency" content="USD" /><meta itemprop="price" content="119.99" /></span></span><span id="related-product-2" itemprop="isRelatedTo" itemscope itemtype="https://schema.org/Product"><meta itemprop="name" content="Make: Electronics Learning Through Discovery (2nd Edition) by Charles Platt" /><meta itemprop="description" content="Make: Electronics Learning Through Discovery (2nd Edition) by Charles Platt" /><link itemprop="url" href="https://www.protechtrader.com/Make-Electronics-Learning-Through-Discovery" /><link itemprop="image" href="https://www.protechtrader.com/image/cache/data//1680450263/make-electronics-learning-through-discovery-2nd-edition-by-charles-platt978-1680450262-7462-140x140.jpg" /><span itemprop="offers" itemscope itemtype="https://schema.org/Offer"><meta itemprop="priceCurrency" content="USD" /><meta itemprop="price" content="30.99" /></span></span><span id="related-product-3" itemprop="isRelatedTo" itemscope itemtype="https://schema.org/Product"><meta itemprop="name" content="Make: Easy Electronics Kit Bundle - Component Pack & Book by Charles Platt" /><meta itemprop="description" content="Make: Easy Electronics Kit Bundle - Component Pack & Book by Charles Platt" /><link itemprop="url" href="https://www.protechtrader.com/Easy-Electronics-Kit-Pack-and-Book" /><link itemprop="image" href="https://www.protechtrader.com/image/cache/data/Easy-Electronics/make-easy-electronics-kit-bundle-component-pack-and-book-by-charles-platteasy-electronics-kit-pack-and-book789048342913-7463-140x140.jpg" /><span itemprop="offers" itemscope itemtype="https://schema.org/Offer"><meta itemprop="priceCurrency" content="USD" /><meta itemprop="price" content="67.99" /></span></span></span><!--microdatapro 7.8 product end [microdata] --><!--microdatapro 7.8 image start[microdata] --><span itemscope itemtype="https://schema.org/ImageObject"><meta itemprop="name" content="Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" /><meta itemprop="description" content="Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" /><link itemprop="thumbnailUrl" href="https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-340x340.jpg" /><link itemprop="contentUrl" href="image/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491.jpg" /><meta itemprop="author" content="Electronic Component Kits | Computers | Consumer Electronics" /><meta itemprop="datePublished" content="2020-09-08"></span><!--microdatapro 7.8 image end [microdata] --><!--microdatapro 7.8 gallery start[microdata] --><span itemscope itemtype="https://schema.org/ImageGallery"><span itemprop="associatedMedia" itemscope itemtype="https://schema.org/ImageObject"><meta itemprop="name" content="Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" /><meta itemprop="description" content="Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" /><link itemprop="thumbnailUrl" href="https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-140x140.jpg" /><link itemprop="contentUrl" href="https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-800x800.jpg" /><meta itemprop="author" content="Electronic Component Kits | Computers | Consumer Electronics" /><meta itemprop="datePublished" content="2020-09-08"></span><span itemprop="associatedMedia" itemscope itemtype="https://schema.org/ImageObject"><meta itemprop="name" content="Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" /><meta itemprop="description" content="Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" /><link itemprop="thumbnailUrl" href="https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-140x140.jpg" /><link itemprop="contentUrl" href="https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-800x800.jpg" /><meta itemprop="author" content="Electronic Component Kits | Computers | Consumer Electronics" /><meta itemprop="datePublished" content="2020-09-08"></span><span itemprop="associatedMedia" itemscope itemtype="https://schema.org/ImageObject"><meta itemprop="name" content="Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" /><meta itemprop="description" content="Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" /><link itemprop="thumbnailUrl" href="https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-140x140.jpg" /><link itemprop="contentUrl" href="https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-800x800.jpg" /><meta itemprop="author" content="Electronic Component Kits | Computers | Consumer Electronics" /><meta itemprop="datePublished" content="2020-09-08"></span></span><!--microdatapro 7.8 gallery end [microdata] --><!--microdatapro 7.8 product start [json-ld] --><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Product", "url": "https://www.protechtrader.com/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1-Exp-1-11-in-2nd-Ed", "image": "image/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491.jpg", "brand": {"@type": "Brand","name": "ProTechTrader"}, "manufacturer": "ProTechTrader", "model": "PTTComp1-2nd-MINI", "gtin12": "789048343415", "mpn": "PTTMakeKit1-Mini", "sku": "PTTComp1-2nd-MINI", "description": "ProTechTrader 789048343415 Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed               Make: Electronics 2nd Edition Mini* Component Pack 1 *Mini Component Pack 1 comes with all the same electronic parts,  components, and circuits in the original kit  in a smaller storage case  available for a limited time only  for a lower price!     This Second Edition Kit Follows The Latest Make: Electronics Educational Book by Charles Platt * *Book is not Included and pictured for reference only *Book is not Included and pictured for reference only         Essential Components for Experiments 1 - 11 in the second edition of Make: Electronics by Charles Platt Over 125 pieces included covers all the new experiments in Chapters 1 & 2 in the latest 2nd ed Learning by Discovery book Double Sided Storage Carrying Case with over 30 compartments to keep your electronics organized - Configurable to hold your completed circuits as well. Includes a solderless breadboard which is used for circuit prototyping and provides an excellent base for anyone to learn electronics. These electronic kits have also become a popular choice for students and teachers and are being used in STEM programs Designed for the updated rewritten 2015 2nd Ed update of Make: Electronics - Also great for anyone beginning to learn electronics and circuit design     Style: Mini  Regular Pack 1 The ProTechTrader Make: Electronics Component Kit 1 has been designed to be used with the second edition of Charles Platt’s hands on learning book, Make: Electronics. Rounding up all of the necessary components can be time consuming and frustrating and we think learning electronics should be fun and exciting, so we’ve created the ideal component kit for experiments 1-11. The component shopping has been done so you can hit the ground running. You can rely on the ProTechTrader Component Pack 1 to supply you with the necessary components you’ll need for chapters 1 & 2 which cover experiments 1 - 11 of the Amazon Best Seller Make: Electronics: Learning Through Discovery 2nd Edition by Charles Platt and all are housed in a durable easy to carry double-sided plastic organizer. Each of the components are clearly labeled for easy access.  The ProTechTrader Mini Make: Electronics Component Pack 1 comes with an identification and includes: Double Sided Storage Compartment Carrying Case Solderless Breadboard Basic and Low Current LEDs Bipolar Transistors 9V Battery Connector Test Leads with Alligator Clips Carrier for AA Battery Toggle and Tactile PCB Switches DPDT PCB Non-Latching relays Linear Potentiometers Trimmer Potentiometer Blade Fuses Small 8 Ohm Loudspeaker Hookup Wire in Three Colors All Required Resistors and Capacitors Please note The book Make: Electronics 2nd edition is sold separately.  ", "name": "Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI", "offers": { "@type": "Offer", "availability": "https://schema.org/InStock", "price": "49.99", "priceValidUntil": "2026-10-27", "url": "https://www.protechtrader.com/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1-Exp-1-11-in-2nd-Ed", "priceCurrency": "USD", "itemCondition": "https://schema.org/NewCondition" },"isRelatedTo": [ { "@type": "Product", "image": "https://www.protechtrader.com/image/cache/data/compkit1/make-electronics-kits-2nd-ed-component-packs-for-make-electronics-second-editionpttcomppack-2nd789048342692-a28092-140x140.jpg", "url": "https://www.protechtrader.com/Make-electronics-component-pack-1-2nd-edition", "name": "Make: Electronics Kits 2nd Ed Component Packs for Make: Electronics Second Edition", "offers": { "@type": "Offer", "price": "119.99", "priceCurrency": "USD" } },{ "@type": "Product", "image": "https://www.protechtrader.com/image/cache/data//1680450263/make-electronics-learning-through-discovery-2nd-edition-by-charles-platt978-1680450262-7462-140x140.jpg", "url": "https://www.protechtrader.com/Make-Electronics-Learning-Through-Discovery", "name": "Make: Electronics Learning Through Discovery (2nd Edition) by Charles Platt", "offers": { "@type": "Offer", "price": "30.99", "priceCurrency": "USD" } },{ "@type": "Product", "image": "https://www.protechtrader.com/image/cache/data/Easy-Electronics/make-easy-electronics-kit-bundle-component-pack-and-book-by-charles-platteasy-electronics-kit-pack-and-book789048342913-7463-140x140.jpg", "url": "https://www.protechtrader.com/Easy-Electronics-Kit-Pack-and-Book", "name": "Make: Easy Electronics Kit Bundle - Component Pack & Book by Charles Platt", "offers": { "@type": "Offer", "price": "67.99", "priceCurrency": "USD" } }] } </script><!--microdatapro 7.8 product end [json-ld] --><!--microdatapro 7.8 image start [json-ld] --><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "ImageObject", "author": "Electronic Component Kits | Computers | Consumer Electronics", "thumbnailUrl": "https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-340x340.jpg", "contentUrl": "image/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491.jpg", "datePublished": "2020-09-08", "description": "Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI", "name": "Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" } </script><!--microdatapro 7.8 image end [json-ld] --><!--microdatapro 7.8 gallery start [json-ld] --><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "ImageGallery", "associatedMedia":[ { "@type": "ImageObject", "author": "Electronic Component Kits | Computers | Consumer Electronics", "thumbnailUrl": "https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-140x140.jpg", "contentUrl": "https://www.protechtrader.com/image/cache/data//Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-800x800.jpg", "datePublished": "2020-09-08", "description": "Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI", "name": "Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" },{ "@type": "ImageObject", "author": "Electronic Component Kits | Computers | Consumer Electronics", "thumbnailUrl": "https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-140x140.jpg", "contentUrl": "https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-800x800.jpg", "datePublished": "2020-09-08", "description": "Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI", "name": "Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" },{ "@type": "ImageObject", "author": "Electronic Component Kits | Computers | Consumer Electronics", "thumbnailUrl": "https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-140x140.jpg", "contentUrl": "https://www.protechtrader.com/image/cache/data/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-800x800.jpg", "datePublished": "2020-09-08", "description": "Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI", "name": "Electronic Kits Make: Electronics 2nd Edition Mini Component Pack Kit 1 - Exp 1-11 in 2nd Ed PTTComp1-2nd-MINI" }] } </script><!--microdatapro 7.8 gallery end [json-ld] --><script type='text/javascript'> var onWebChat={ar:[], set: function(a,b){if (typeof onWebChat_==='undefined'){this.ar. push([a,b]);}else{onWebChat_.set(a,b);}},get:function(a){return(onWebChat_.get(a));},w :(function(){ var ga=document.createElement('script'); ga.type = 'text/javascript';ga. async=1;ga.src='//www.onwebchat.com/clientchat/e0dd485d972b40fd8f6542b592531e64'; var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})()} </script></div> <link rel="stylesheet" type="text/css" href="https://www.protechtrader.com/catalog/view/theme/shoppica2/javascript/cloudzoom/css/jquery.cloud-zoom.css" media="all" /><script type="text/javascript" src="https://www.protechtrader.com/catalog/view/theme/shoppica2/javascript/cloudzoom/js/jquery.cloud-zoom.min.js"></script> <script type="text/javascript"> jQuery( function($) { function set_product_info() { var w = $("html").width(); if (w < 768) { $(".s_tabs").css("display", "block"); $(".s_tabs").tbTabs("destroy"); $(".s_tab_box").accordion ({ autoHeight: false, collapsible: true, active: false }); } else { $(".s_tab_box").css("display", "block"); $(".s_tab_box").accordion("destroy"); $(".s_tabs").tbTabs({ fx: { opacity: 'toggle', duration: 300 } }); } } set_product_info(); $(window).resize(function() { set_product_info(); }); }); $('#add_to_cart').bind('click', function() { $.ajax({ url: 'index.php?route=tb/cartCallback', type: 'post', data: $('#product_add_to_cart_form input[type=\'text\'], #product_add_to_cart_form input[type=\'hidden\'], #product_add_to_cart_form input[type=\'radio\']:checked, #product_add_to_cart_form input[type=\'checkbox\']:checked, #product_add_to_cart_form select, #product_add_to_cart_form textarea'), dataType: 'json', success: function(json) { $("#product_options p.s_error_msg").remove(); if (json['error']) { if (json['error']['profile']) { $('#option-payment_profile').append('<p class="s_error_msg">' + json['error']['profile'] + '</p>'); } if (json['error']['warning']) { productNotice(json['title'], json['thumb'], json['error']['warning'], 'failure'); $('.warning').fadeIn('slow'); } for (i in json['error']) { $('#option-' + i).append('<p class="s_error_msg">' + json['error'][i] + '</p>'); } } if (json['success']) { productNotice(json['title'], json['thumb'], json['success'], 'success'); $('#cart_menu span.s_grand_total').html(json['total_sum']); $('#cart_menu div.s_cart_holder').html(json['html']); } } }); return false; }); </script></div><!-- end of content --><script type="text/javascript"><!-- function livePrice() { $.ajax({ url: 'index.php?route=product/product/livePrice&product_id=7491', type: 'post', data: $('.product-info select, .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info input[type=\'text\']'), dataType: 'json', beforeSend: function() { $('.mptnew-price').parent('div').removeClass('pulse'); }, success: function(json) { // Pulse Effect $('.mptnew-price').parent('div').addClass('pulse'); // Line-Through Price Creates. if(json['old_price']) { $('.product-info .price-old').html(json['old_price']); } // Ex-Tax Price Creates. if(json['ex_tax']) { $('.product-info .price-tax').html('Ex Tax: '+ json['ex_tax']); } // Mail New Price Creates. if(json['total_price']) { $('.product-info .mptnew-price').html(json['total_price']); } // Discount Price Creates. if (json['discounts'] && json['discounts'] != '') { var html = ''; for (i = 0; i < json['discounts'].length; i++) { var string = ' pc.or more '; var quantity = json['discounts'][i]['quantity']; var price = json['discounts'][i]['price']; html += string.replace('%s', quantity).replace('%s', price); html += '<br/>'; } $('.product-info .discount').html(html); } } }); } $('.product-info').on('change', 'select, input[type=\'radio\'], input[type=\'checkbox\']', function() { livePrice(); }); $('.product-info').on('keyup', 'input[name=\'quantity\']', function() { livePrice(); }); $(document).ready(function() { livePrice(); }); //--></script><style> .pulse { -webkit-animation-name: pulse; animation-name: pulse; -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; animation-iteration-count: 4; -webkit-animation-iteration-count: 4; } @-webkit-keyframes pulse { 0% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 50% { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } 100% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes pulse { 0% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 50% { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } 100% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } </style> <!-- << Product Option Image PRO module --><script type="text/javascript"><!-- $('div.product-action').css('top', '-70px'); $('a.pav-colorbox').css('top', 'auto'); $('a.pav-colorbox').css('bottom', '-40px'); --></script><!-- >> Product Option Image PRO module --> <!-- Product Option Image PRO module << --><script type="text/javascript"><!-- var console=console||{"log":function(){},"debug":function(){}}; var poip_options_settings = []; var poip_settings = {"img_main_to_additional":"1","img_gal":"1","img_change":"1","img_use":"0","img_limit":"1","img_option":"1","img_category":"1","img_first":"0","img_cart":"1"}; if (typeof(poip_boss_zoom) == 'undefined' || !poip_boss_zoom) { var poip_images = [{"product_id":"7491","image":"data\/\/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491.jpg","sort_order":0,"product_image_id":"-1","popup":"https:\/\/www.protechtrader.com\/image\/cache\/data\/\/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-800x800.jpg","thumb":"https:\/\/www.protechtrader.com\/image\/cache\/data\/\/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-140x140.jpg","main":"https:\/\/www.protechtrader.com\/image\/cache\/data\/\/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491-340x340.jpg"},{"product_image_id":"27351","product_id":"7491","image":"data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351.jpg","sort_order":"0","altimg":"","popup":"https:\/\/www.protechtrader.com\/image\/cache\/data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-800x800.jpg","thumb":"https:\/\/www.protechtrader.com\/image\/cache\/data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-140x140.jpg","main":"https:\/\/www.protechtrader.com\/image\/cache\/data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351-340x340.jpg"},{"product_image_id":"27352","product_id":"7491","image":"data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352.jpg","sort_order":"0","altimg":"","popup":"https:\/\/www.protechtrader.com\/image\/cache\/data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-800x800.jpg","thumb":"https:\/\/www.protechtrader.com\/image\/cache\/data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-140x140.jpg","main":"https:\/\/www.protechtrader.com\/image\/cache\/data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352-340x340.jpg"}]; } var poip_images_by_options = [[{"image":"data\/\/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491.jpg","option_name":"","product_option_id":0,"srt":0,"thumb":"data\/\/Make-Electronics-2nd-Edition-Mini-Component-Pack-Kit-1---Exp-1-11-in-2ed-E\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-7491.jpg","value_name":""},{"image":"data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351.jpg","option_name":"","product_option_id":0,"srt":"0","thumb":"data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27351.jpg","value_name":""},{"image":"data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352.jpg","option_name":"","product_option_id":0,"srt":"0","thumb":"data\/make-electronics-2nd-edition-mini-component-pack-kit-1-exp-1-11-in-2nd-edpttcomp1-2nd-mini789048343415-a27352.jpg","value_name":""}]]; var poip_product_option_ids = []; var poip_journal2_theme = false; var poip_theme_name = "shoppica2"; if (poip_theme_name == 'default' && typeof(poip_ava_store) !== 'undefined' && poip_ava_store) { poip_theme_name = 'ava_store'; } var use_refresh_colorbox = poip_theme_name!='sstore' && poip_theme_name!='stowear' && poip_theme_name!='theme380' && poip_theme_name!='theme422' && poip_theme_name!='pavilion' && poip_theme_name!='shoppica2' && poip_theme_name!='METROPOLITEN'; //var use_refresh_colorbox = poip_theme_name!='theme422' && poip_theme_name!='polianna'; var poip_std_src = poip_main_image().attr('src'); var poip_std_href = poip_main_image().closest('a').attr('href'); var option_prefix = "option"; if ($('[name^="option_oc["]').length) { option_prefix = "option_oc"; } var option_prefix_length = option_prefix.length; // в список может быть включего главное изображений, надо его учесть poipImageAdditional().find('a').each(function() { var img_src = ''; if ($(this).attr('data-zoom-image') && poip_theme_name=='mattimeo') { img_src = $(this).attr('data-zoom-image'); }else if ($(this).attr('data-image')) { img_src = $(this).attr('data-image'); } else if ($(this).attr('href') && $(this).attr('href').substr(0,1) != "#") { img_src = $(this).attr('href'); } if (img_src) { var img_found = false; for (var i=0;i<poip_images.length;i++) { if (img_src == poip_images[i]['popup'] || decodeURIComponent(img_src) == poip_images[i]['popup']) { img_found = true; break; } } if (!img_found) { poip_images.unshift({"product_id":"7491","product_image_id":["-1"],"popup":"","main":"","thumb":""}); poip_images[0].popup = img_src; poip_images[0].main = img_src; poip_images[0].thumb = img_src; } } }); function poip_get_product_option_id_from_name(name) { return name.substr(option_prefix_length+1, name.indexOf(']')-(option_prefix_length+1) ) } // 1 - без checkbox, 2 - только чекбокс function get_selected_values(checkbox_variant, product_option_id) { var values = []; if (!checkbox_variant || checkbox_variant==1) { // ALLLL5 var options = $('select[name^="'+option_prefix+'["]'); for (var i=0; i<options.length; i++) { var current_product_option_id = poip_get_product_option_id_from_name($(options[i]).attr('name')); if ( (!product_option_id && $.inArray(current_product_option_id, poip_product_option_ids) != -1) || (product_option_id && product_option_id == current_product_option_id) ) { if (options[i].value) { values.push(options[i].value); } } } var options = $('input[type=radio][name^="'+option_prefix+'["]:checked'); // ALLLL5 for (var i=0; i<options.length; i++) { var current_product_option_id = poip_get_product_option_id_from_name($(options[i]).attr('name')) if ( (!product_option_id && $.inArray(current_product_option_id, poip_product_option_ids) != -1) || (product_option_id && product_option_id == current_product_option_id) ) { if (options[i].value) { values.push(options[i].value); } } } } if (!checkbox_variant || checkbox_variant==2) { var options = $('input[type=checkbox][name^="'+option_prefix+'["]:checked'); for (var i=0; i<options.length; i++) { var current_product_option_id = poip_get_product_option_id_from_name($(options[i]).attr('name')); if ( (!product_option_id && $.inArray(current_product_option_id, poip_product_option_ids) != -1) || (product_option_id && product_option_id == current_product_option_id) ) { if (options[i].value) { values.push(options[i].value); } } } } return values; } function poip_get_global_visible_images() { // изображения которые должны быть видны до применения фильтра ALLLLLLLLL var global_visible_images = []; var images_by_settings = []; var selected_values = get_selected_values(); for (var i=0; i<poip_images.length; i++) { if (poip_images[i]['product_image_id']) { // стандартное доп.изображение global_visible_images.push(poip_images[i]['popup']); } else { for (var product_option_id in poip_options_settings) { if (poip_options_settings[product_option_id]['img_use'] == 1) { // вкл изображения всех значений global_visible_images.push(poip_images[i]['popup']); } else if (poip_options_settings[product_option_id]['img_use'] == 2) { // вкл изображения только выбранных значений for (var j=0; j<selected_values.length; j++) { if ($.inArray(selected_values[j], poip_images[i]['product_option_value_id'])!=-1) { global_visible_images.push(poip_images[i]['popup']); } } } } } } return global_visible_images; } function poip_array_intersection(arr1, arr2) { var match = []; $.each(arr1, function (i, val1) { if ($.inArray(val1, arr2) != -1) { match.push(val1); } }); return match; } function poip_change_available_images(product_option_id) { if ($.inArray(product_option_id, poip_product_option_ids)==-1) { return; } var global_visible_images = poip_get_global_visible_images(); var current_visible_images = poip_get_global_visible_images(); var images_to_show_all = []; for (var i in poip_product_option_ids) { var current_product_option_id = poip_product_option_ids[i]; var current_product_option_selected_values = get_selected_values(0, current_product_option_id); if (poip_options_settings[current_product_option_id]['img_limit'] && poip_options_settings[current_product_option_id]['img_use'] && current_product_option_selected_values.length ) { var images_to_show = []; for (var j in poip_images) { if (poip_images[j]['product_option_value_id'] && poip_images[j]['product_option_value_id'].length) { for (var copsv_i in current_product_option_selected_values) { if ($.inArray(current_product_option_selected_values[copsv_i], poip_images[j]['product_option_value_id']) !== -1 && $.inArray(poip_images[j]['popup'], images_to_show) == -1 ) { images_to_show.push(poip_images[j]['popup']); images_to_show_all.push(poip_images[j]['popup']); } } } } if ( !images_to_show.length ) { continue; } if ( !poip_settings['img_or'] ) { current_visible_images = poip_array_intersection(current_visible_images, images_to_show); } } } if ( typeof(poip_settings['img_or']) != 'undefined' && poip_settings['img_or'] ) { current_visible_images = poip_array_intersection(current_visible_images, images_to_show_all); } if (current_visible_images.length == 0) { current_visible_images = global_visible_images; } poip_set_visible_images(current_visible_images); return current_visible_images; } function poip_set_visible_images_pavilion(images, counter) { if (!counter) counter = 1; if (counter == 10) return; if (!$('.fotorama').length || !$('.fotorama').data('fotorama')) { setTimeout(function () { poip_set_visible_images_pavilion(images, counter+1); }, 100); return; } var photorama_data = []; for (var i in poip_images) { var poip_img = poip_images[i]; if ($.inArray(poip_img['popup'], images) !== -1 ) { photorama_data.push({img: poip_img['popup'], thumb: poip_img['thumb']}); } } $('.fotorama').data('fotorama').load(photorama_data); // fullscreen gallery $('#product .tbGoFullscreen').off('click'); $('#product .tbGoFullscreen').on('click', function(){ if (!$(this).hasClass('tbKeyPressed')) { lightbox_gallery('PageContentProductSystem_tbW0yqLP2t', photorama_data, $('.fotorama').data('fotorama').activeIndex); } $(this).addClass('tbKeyPressed'); }); } function poip_set_visible_images_shoppica2(images) { poipImageAdditional().find('a').each(function(){ if ( $.inArray($(this).attr('href'), images) != -1 ) { $(this).closest('li').show(); $(this).attr('disabled', false); } else { $(this).closest('li').hide(); $(this).attr('disabled', true); } }); if ($.prettyPhoto) { $("#product_gallery a[rel^='prettyPhoto']:not([disabled])").prettyPhoto({ theme: 'light_square', opacity: 0.5, deeplinking: false, ie6_fallback: false, social_tools: '' }); $('#product_image_preview').off('click'); $('#product_image_preview').click(function(event){ event.preventDefault(); poipImageAdditional().find('a[href="'+$(this).attr('href')+'"]:not([disabled]):first').click(); }); } } function poip_set_visible_images_bt_venous(images) { var copy_data_tag = 'data-poip-additional-images-copy'; poipImageAdditional().each(function(){ if ( !$(this).siblings('div['+copy_data_tag+']').length ) { $(this).after('<div '+copy_data_tag+' style="display:none"></div>'); var poip_copy = $(this).siblings('div['+copy_data_tag+']'); $(this).find('li').each(function(){ poip_copy.append(poip_outerHTML($(this))); }); } else { var poip_copy = $(this).siblings('div['+copy_data_tag+']'); } var current_images = []; // rebuild only if images changed $(this).find('a').each(function(){ if ( $.inArray($(this).attr('href'), current_images) == -1 ) { current_images.push($(this).attr('href')); } }); var cnt = 0; for (var i in images) { if ( $.inArray(images[i], current_images) != -1 ) cnt ++; } if (cnt != images.length || cnt != current_images.length) { html = ''; for (var i in images) { var copy_img = poip_copy.find('a[href="'+images[i]+'"]'); if (copy_img.length) { html+= poip_outerHTML( copy_img.closest('li') ); } } var slider_settings = $(this).data('elastislide').options; $(this).find('.es-nav').remove(); $(this).data('elastislide').destroy(); $(this).find('ul').html(html); $(this).elastislide(slider_settings); if (typeof($.fn.CloudZoom) != 'undefined') { $('.cloud-zoom, .cloud-zoom-gallery').CloudZoom(); if (poip_boss_zoom) { $('#content #wrap').siblings('a:first').off('click'); $('#content #wrap').siblings('a:first').on('click', function() { $('#poip_colorbox').find('a[href="'+$('#content #wrap a:first').attr('href')+'"]:first').click(); }); } } } }); } function poip_set_visible_images_rgen_opencart(images, counter) { if (!counter) counter = 1; if (counter == 50) return; if ( $('.th-l .image-additional').length ) { if ( !$('#poip_images').length ) { $('.th-l .image-additional').before('<div id="poip_images" style="display:none;"></div>'); $('.th-l .image-additional li').each(function(){ $('#poip_images').append( poip_outerHTML($(this)) ); }); } if (!$('.th-l .image-additional').data('_cfs_isCarousel')) { setTimeout(function(){ poip_set_visible_images_rgen_opencart(images, counter+1); }, 100); return; } var current_imgs = []; $('.th-l .image-additional').find('a').each( function(){ //if ( $.inArray($(this).attr('href'), current_imgs) == -1) { current_imgs.push($(this).attr('data-zoom-image')); //} }); if ( current_imgs.toString() == images.toString() ) { return; // nothing to change } var elems_cnt = $('.th-l .image-additional li').length; for (var i = 1; i<=elems_cnt; i++ ) { $('.th-l .image-additional').trigger('removeItem', ['end']); } var shown_imgs = []; var zoom_imgs = []; $('#poip_images_temp').remove(); $('#poip_images').before('<div id="poip_images_temp" style="display:none"></div>'); $('#poip_images a').each(function(){ if ( $.inArray($(this).attr('data-zoom-image'), images) != -1 && $.inArray($(this).attr('data-zoom-image'), shown_imgs) == -1 ) { $('#poip_images_temp').append( $(this).parent().clone() ); shown_imgs.push( $(this).attr('data-zoom-image') ); zoom_imgs.push({src: $(this).attr('data-zoom-image')}); } }); $('.th-l .image-additional').trigger('insertItem', [ $('#poip_images_temp li') , 'end']); //$('.cloud-zoom, .cloud-zoom-gallery').CloudZoom(); //$.magnificPopup.instance.items = zoom_imgs; //poip_popzoom = function(){ $('.prdimage-wrapper .image').magnificPopup({ items: zoom_imgs, gallery: { enabled: true, preload: [0,2] }, type: 'image', mainClass: 'mfp-fade', callbacks: { open: function() { var activeIndex = 0; var currentIndex = 0; $('.image-additional li a').each(function(){ currentIndex++; if ( $(this).attr('data-zoom-image') == $('#zoom1').attr('href') ) { return false; } }); activeIndex = currentIndex-1; //var activeIndex = parseInt($('.image-additional li.active').attr('data-index')); //var activeIndex = activeIndexVal; var magnificPopup = $.magnificPopup.instance; magnificPopup.goTo(activeIndex); } } }); //} if (poip_settings['img_hover']) { $('.th-l .image-additional li a').mouseover(function(){ poip_image_mouseover(this); }); } } } function poip_set_visible_images_fortis(images, counter) { if (!counter) counter = 1; if (counter == 50) return; if ( $('.image_carousel').length ) { if ( !$('#poip_images').length ) { $('.image_carousel').before('<div id="poip_images" style="display:none;"></div>'); $('.image_carousel li').each(function(){ $('#poip_images').append( poip_outerHTML($(this)) ); }); } if (!$('.image_carousel').data('_cfs_isCarousel')) { setTimeout(function(){ poip_set_visible_images_fortis(images, counter+1); }, 100); return; } var current_imgs = []; $('.image_carousel').find('a').each( function(){ //if ( $.inArray($(this).attr('href'), current_imgs) == -1) { current_imgs.push($(this).attr('href')); //} }); if ( current_imgs.toString() == images.toString() ) { return; // nothing to change } var elems_cnt = $('.image_carousel li').length; for (var i = 1; i<=elems_cnt; i++ ) { $('.image_carousel').trigger('removeItem', ['end']); } var shown_imgs = []; $('#poip_images_temp').remove(); $('#poip_images').before('<div id="poip_images_temp" style="display:none"></div>'); $('#poip_images a').each(function(){ if ( $.inArray($(this).attr('href'), images) != -1 && $.inArray($(this).attr('href'), shown_imgs) == -1 ) { $('#poip_images_temp').append($(this).parent().clone()); shown_imgs.push( $(this).attr('href') ); } }); $('.image_carousel').trigger('insertItem', [ $('#poip_images_temp li') , 'end']); $('.cloud-zoom, .cloud-zoom-gallery').CloudZoom(); if (poip_settings['img_hover']) { $('.image_carousel li a').mouseover(function(){ poip_image_mouseover(this); }); } } } var poip_sstore_visible_images = []; function poip_sstore_colorbox_refresh() { while ( $('#wrap:first').find('#wrap:first').length ) { $('#wrap:first').replaceWith($('#wrap:first').find('#wrap:first')); //$('#zoom1').closest('#wrap').find('div.mousetrap').remove(); //$('#zoom1').closest('#wrap').replaceWith( $('#zoom1').clone() ); } // theme bugs $('#wrap a').removeClass('colorbox'); $('#zoom1').parent().addClass('colorbox'); var images = poip_sstore_visible_images; $.colorbox.remove(); var shown_imgs = []; shown_imgs.push( $('#zoom1').parent().attr('href') ); $('.product-info .view-images a').each( function(){ if ( $.inArray( $(this).attr('href'), images) != -1 && $.inArray( $(this).attr('href'), shown_imgs) == -1 ) { $(this).removeClass('colorbox').addClass('colorbox').show(); shown_imgs.push( $(this).attr('href') ); } else { $(this).removeClass('colorbox').hide(); } } ); $('.colorbox').colorbox({ overlayClose: true, opacity: 0.3, rel: "colorbox" }); } var poip_set_visible_images_sstore_called = false; function poip_set_visible_images_sstore(images, counter) { // shopstore if (!counter) counter = 1; if (counter == 50) return; if ( $('.image-additional').length ) { // image-additional-carousel in image-additional if ( !$('#poip_images').length ) { $('.image-additional').before('<div id="poip_images" style="display:none;"></div>'); $('.image-additional-carousel a').each(function(){ $('#poip_images').append( $(this).clone() ); }); } if ( !$('.image-additional .bx-wrapper').length ) { setTimeout(function(){ poip_set_visible_images_sstore(images, counter+1); }, 100); return; } if ( poip_set_visible_images_sstore_called ) { // do not check, first time should refresh var current_imgs = []; $('.image-additional-carousel').find('a').each( function(){ //if ( $.inArray($(this).attr('href'), current_imgs) == -1) { current_imgs.push($(this).attr('href')); //} }); if ( current_imgs.toString() == images.toString() ) { return; // nothing to change } } poip_set_visible_images_sstore_called = true; var shown_imgs = []; var new_html = ''; $('#poip_images').find('a').each( function(){ if ( $.inArray( $(this).attr('href'), images) != -1 && $.inArray( $(this).attr('href'), shown_imgs) == -1) { new_html+= '<div>' + poip_outerHTML( $(this) ) + '</div>'; shown_imgs.push($(this).attr('href')); } }); $('.image-additional').html('<div class="image-additional-carousel">'+new_html+'</div>'); $('.image-additional-carousel').bxSlider({ slideWidth: 107, maxSlides: 3, minSlides: 2, slideMargin: 18 }); // theme zooming bugs $('#cloud-zoom-big').remove(); while ( $('#zoom1').closest('#wrap').length ) { //$('#zoom1').closest('#wrap').find('div.mousetrap').remove(); $('#zoom1').closest('#wrap').replaceWith( $('#zoom1').clone() ); } $('.cloud-zoom, .cloud-zoom-gallery').CloudZoom(); if (poip_settings['img_hover']) { $('.image-additional-carousel a').mouseover(function(){ poip_image_mouseover(this); }); } // colorbox control poip_sstore_visible_images = images; poip_sstore_colorbox_refresh(); // Респонсивный ColorBox jQuery.colorbox.settings.maxWidth = '85%'; jQuery.colorbox.settings.maxHeight = '85%'; } } function poip_set_visible_images_stowear(images) { var shown_imgs = []; $('#quickview_product .popup-gallery .thumbnails ul li a').each(function(){ if ( $.inArray($(this).attr('href'), images) != -1 && $.inArray($(this).attr('href'), shown_imgs) == -1 ) { $(this).closest('li').show(); $(this).attr('disabled', false); shown_imgs.push($(this).attr('href')); } else { $(this).closest('li').hide(); $(this).attr('disabled', true); } }); } function poip_set_visible_images_METROPOLITEN(images, counter) { if (!counter) counter = 1; if (counter == 50) return; if ( $('.image-additional').length ) { if ( !$('#poip_images').length ) { $('.image-additional').before('<div id="poip_images" style="display:none;"></div>'); $('.image-additional a').each(function(){ $('#poip_images').append( $(this).clone() ); }); } var current_carousel = $('.image-additional.owl-carousel').data('owlCarousel'); if (!current_carousel) { setTimeout(function(){ poip_set_visible_images_METROPOLITEN(images, counter+1); }, 100); return; } var current_imgs = []; $('.image-additional').find('a').each( function(){ //if ( $.inArray($(this).attr('href'), current_imgs) == -1) { current_imgs.push($(this).attr('href')); //} }); if ( current_imgs.toString() == images.toString() ) { return; // nothing to change } /* var elems_cnt = current_carousel.itemsAmount; for (var i = 1; i<=elems_cnt; i++ ) { current_carousel.removeItem(); } */ $('.image-additional.owl-carousel .owl-wrapper').html(''); current_carousel.reinit(); var shown_imgs = []; html = ''; $('#poip_images a').each(function(){ if ( $.inArray($(this).attr('href'), images) != -1 && $.inArray($(this).attr('href'), shown_imgs) == -1 ) { //current_carousel.addItem('<div>'+ poip_outerHTML($(this)) +'</div>'); html += '<div>'+ poip_outerHTML($(this)) +'</div>'; shown_imgs.push( $(this).attr('href') ); } }); current_carousel.addItem(html); $('.cloud-zoom, .cloud-zoom-gallery').CloudZoom(); if (poip_settings['img_hover']) { $('.image-additional a').mouseover(function(){ poip_image_mouseover(this); }); } } } //Jewellery function poip_set_visible_images_OPC070159(images, counter) { if (!counter) counter = 1; if (counter == 50) return; if ( $('.image-additional').length ) { if ( !$('#poip_images').length ) { $('.image-additional').before('<div id="poip_images" style="display:none;"></div>'); $('.image-additional a').each(function(){ //$('#poip_images').append( $(this).parent().parent().clone() ); $('#poip_images').append( $(this).clone() ); }); } if ( !$('.image-additional .slider-wrapper').length || !$('.zoomContainer').length ) { setTimeout(function(){ poip_set_visible_images_OPC070159(images, counter+1); }, 100); return; } var current_imgs = []; $('.image-additional').find('a').each( function(){ //if ( $.inArray($(this).attr('href'), current_imgs) == -1) { current_imgs.push($(this).attr('href')); //} }); if ( current_imgs.toString() == images.toString() ) { return; // nothing to change } var shown_imgs = []; html = ''; $('#poip_images a').each(function(){ if ( $.inArray($(this).attr('href'), images) != -1 && $.inArray($(this).attr('href'), shown_imgs) == -1 ) { //current_carousel.addItem('<div>'+ poip_outerHTML($(this)) +'</div>'); //html += ''+ poip_outerHTML($(this).parent().parent()) +''; html += '<div class="slider-item"><div class="product-block">'+ poip_outerHTML($(this)) +'</div></div>'; shown_imgs.push( $(this).attr('href') ); } }); $.removeData($("#cloud-zoom"), 'elevateZoom'); $('.zoomContainer').remove(); $('.image-additional').html(html); //$('.image-additional').replaceWith('<div id="additional-carousel" class="image-additional product-carousel">'+html+'</div>'); $("#cloud-zoom").elevateZoom({gallery:'additional-carousel', cursor: 'pointer', galleryActiveClass: 'active', imageCrossfade: true, loadingIcon: 'catalog/view/theme/OPC070159/image/megnor/spinner.gif'}); $("#cloud-zoom").bind("click", function(e) { var ez = $('#cloud-zoom').data('elevateZoom'); $.fancybox(ez.getGalleryList()); return false; }); //productCarouselAutoSet(); var myObject = 'additional'; if(widthClassOptions[myObject]) var myDefClass = widthClassOptions[myObject]; else var myDefClass= 'grid_default_width'; var slider = $("#additional-carousel"); slider.sliderCarousel({ defWidthClss : myDefClass, subElement : '.slider-item', subClass : 'product-block', firstClass : 'first_item_tm', lastClass : 'last_item_tm', slideSpeed : 200, paginationSpeed : 800, autoPlay : false, stopOnHover : false, goToFirst : true, goToFirstSpeed : 1000, goToFirstNav : true, pagination : false, paginationNumbers: false, responsive: true, responsiveRefreshRate : 200, baseClass : "slider-carousel", theme : "slider-theme", autoHeight : true }); if (poip_settings['img_hover']) { $('.image-additional a').mouseover(function(){ poip_image_mouseover(this); }); } } } function poip_set_visible_images_newa(images) { poipImageAdditional().find('a').each(function(){ if ( $.inArray($(this).attr('href'), images) != -1 ) { $(this).closest('li').show(); $(this).attr('disabled', false); } else { $(this).closest('li').hide(); $(this).attr('disabled', true); } }); } function poip_sort_images_by_selected_options(images_param) { var images = []; var values = get_selected_values(); // sort options images for (var j in values) { if (poip_images_by_options && poip_images_by_options[values[j]] && poip_images_by_options[values[j]].length) { for (var i in poip_images_by_options[values[j]]) { if (poip_images_by_options[values[j]][i]['image']) { var image = poip_get_image_by_src(poip_images_by_options[values[j]][i]['image'],'image'); if (image && image['popup'] && $.inArray(image['popup'], images_param) != -1 && $.inArray(image['popup'], images) == -1) { images.push(image['popup']); } } } } } // sort product images if ( poip_images_by_options && typeof(poip_images_by_options[0]) != 'undefined') { for (var i in poip_images_by_options[0]) { if ( !poip_images_by_options[0].hasOwnProperty(i) ) continue; if (poip_images_by_options[0][i]['image']) { var image = poip_get_image_by_src(poip_images_by_options[0][i]['image'],'image'); if (image && image['popup'] && $.inArray(image['popup'], images_param) != -1 && $.inArray(image['popup'], images) == -1) { images.push(image['popup']); } } } } for (var i in images_param) { if ( $.inArray(images_param[i], images) == -1 ) { images.push(images_param[i]); } } return images; } function poip_set_visible_images_theme380(images) { // Mojo Handbag Boutique (2016/01/19) if ( !$('#poip_images').length ) { $('#default_gallery').before('<div id="poip_images" style="display:none;"></div>'); poipImageAdditional().each(function(){ $('#poip_images').append( poip_outerHTML($(this)) ); }); } // for second gallery (used for mobile devices) if ( !$('#poip_images_gallery').length ) { $('#full_gallery').before('<div id="poip_images_gallery" style="display:none;"></div>'); $('#full_gallery a').each(function(){ $('#poip_images_gallery').append( poip_outerHTML($(this)) ); }); } var current_imgs = []; poipImageAdditional().find('a').each( function(){ //if ( $.inArray($(this).attr('data-image'), current_imgs) == -1) { current_imgs.push($(this).attr('data-image')); //} }); if ( current_imgs.toString() == images.toString() ) { return; // nothing to change } var shown_imgs = []; var new_html = ''; $('#poip_images').find('a').each( function(){ if ( $.inArray( $(this).attr('data-image'), images) != -1 && $.inArray( $(this).attr('data-image'), shown_imgs) == -1) { new_html+= poip_outerHTML($(this).parent()); shown_imgs.push($(this).attr('data-image')); } }); $('#default_gallery .image-additional').html('<ul id="image-additional">'+new_html+'</ul>'); $('#image-additional').bxSlider({ pager:false, controls:true, slideMargin:10, minSlides: 3, maxSlides: 3, slideWidth:70, infiniteLoop:false, moveSlides:1 }); // elevateZoom destroy $.removeData($("#gallery_zoom"), 'elevateZoom'); $('.zoomContainer').remove(); $("#zoom_01").elevateZoom({gallery:'image-additional', cursor: 'pointer', galleryActiveClass: 'active', imageCrossfade: true}); //pass the images to Fancybox $("#zoom_01").bind("click", function(e) { var ez = $('#zoom_01').data('elevateZoom'); $.fancybox(ez.getGalleryList()); return false; }); // refill second gallery (for mobile devices) var second_shown_imgs = []; var second_new_html = ''; $('#poip_images_gallery').find('a').each( function(){ if ( $.inArray( $(this).attr('href'), images) != -1 && $.inArray( $(this).attr('href'), second_shown_imgs) == -1) { second_new_html+= '<li>'+poip_outerHTML($(this))+'</li>'; second_shown_imgs.push($(this).attr('data-image')); } }); $('#full_gallery').html('<ul id="gallery">'+second_new_html+'</ul>'); $('#gallery').bxSlider({ pager:false, controls:true, minSlides: 1, maxSlides: 1, infiniteLoop:false, moveSlides:1 }); $('#image-additional').find('a').mouseover(function(){ poip_image_mouseover(this); }); } function poip_set_visible_images(images_param) { var images = poip_sort_images_by_selected_options(images_param); if (poip_theme_name == 'pavilion') { poip_set_visible_images_pavilion(images); return; } if (poip_theme_name == 'stowear') { poip_set_visible_images_stowear(images); return; } if (poip_theme_name == 'rgen-opencart') { poip_set_visible_images_rgen_opencart(images); return; } if (poip_theme_name == 'OPC070159') { poip_set_visible_images_OPC070159(images); return; } if (poip_theme_name == 'sstore') { poip_set_visible_images_sstore(images); return; } if (poip_theme_name == 'shoppica2') { poip_set_visible_images_shoppica2(images); return; } if (poip_theme_name == 'newa') { poip_set_visible_images_newa(images); return; } if (poip_theme_name == 'bt_venous') { poip_set_visible_images_bt_venous(images); return; } if (poip_theme_name == 'fortis') { poip_set_visible_images_fortis(images); return; } if (poip_theme_name == 'METROPOLITEN') { poip_set_visible_images_METROPOLITEN(images); return; } if (poip_theme_name == 'theme380') { poip_set_visible_images_theme380(images); return; } // << theme 422 compatibility if ($('div[class=image-additional]').find('ul[id=image-additional]').length) { // создадим копию списка изображений if ( !$('#image-additional-copy').length ) { $('div[class=image-additional]').after("<div id=\"image-additional-copy\" style=\"display: none;\">"+$('div[class=image-additional]').find('ul[id=image-additional]').html()+"</div>"); } // проверим что список картинок надо менять var new_html = ''; var new_images = []; $('#image-additional-copy').find('a').each( function(){ // Учтем возможность спец символов типа пробела %20 if ($.inArray( $(this).attr('data-image'), images) != -1 || $.inArray(decodeURIComponent($(this).attr('data-image')), images) != -1) { // anchors have parents = "li" new_html += "<li>"+$(this).parent().html()+"</li>"; new_images.push($(this).attr('data-image')); } //else { // $(this).hide(); //} }); // в images изображения могут повторяться, поэтому проверяем по свернутому new_images var images_changed = $('#image-additional').find('a').length != new_images.length; var same_images_count = 0; if (!images_changed) { $('#image-additional').find('a').each( function(){ if ($.inArray( $(this).attr('data-image'), images) != -1 || $.inArray(decodeURIComponent($(this).attr('data-image')), images) != -1) { same_images_count++; } }); images_changed = same_images_count != new_images.length; } if (images_changed) { $('div[class=image-additional]').html("<ul id=\"image-additional\">"+new_html+"</ul>"); if ($('#image-additional').find('a').length) { setTimeout( function () { $('#image-additional').bxSlider({ pager:false, controls:true, slideMargin:10, minSlides: 3, maxSlides: 3, slideWidth:70, infiniteLoop:false, moveSlides:1 }); $("#zoom_01").elevateZoom({gallery:'image-additional', cursor: 'pointer', galleryActiveClass: 'active', imageCrossfade: true}); //pass the images to Fancybox $("#zoom_01").bind("click", function(e) { var ez = $('#zoom_01').data('elevateZoom'); $.fancybox(ez.getGalleryList()); return false; }); }, 0); } } return; } // >> theme 422 compatibility // Если карусель journal2 - // если первый раз - скопируем все содержимое в скрытый элемент, вместе с дивами? // если второй раз - заполним все содержимое из скрытого элемента // journal2 compatibility if (poip_theme_name == 'journal2' || poip_theme_name == 'cosyone' || poip_theme_name == 'ava_store' || poip_theme_name == 'mattimeo') { if (poip_theme_name == 'journal2') { var block_gallery = $("#product-gallery"); } else if (poip_theme_name == 'ava_store') { var block_gallery = $("#gallery div.owl-carousel"); } else if (poip_theme_name == 'mattimeo') { var block_gallery = $("#add-gallery"); } else { // cosyone var block_gallery = $("ul.image_carousel"); } // first time - copy all images to hidden element if ( !$('#hidden-carousel').length ) { block_gallery.after("<div style='display:none' id='hidden-carousel'></div>"); poipImageAdditional().find('a').each( function(){ $('#hidden-carousel').append( poip_outerHTML($(this)) ); //$('#hidden-carousel').append( poip_outerHTML($(this).parent()) ); }); } // add visible images to carousel var pg_html = ""; var pg_added = []; $('#hidden-carousel').find('a').each( function(){ // Учтем возможность спец символов типа пробела %20 var img_href = $(this).attr('href'); if (poip_theme_name == 'mattimeo') { if ( (img_href == '#' || !img_href) && $(this).attr('data-zoom-image') ) img_href = $(this).attr('data-zoom-image'); } else { if ( (img_href == '#' || !img_href) && $(this).attr('data-image') ) img_href = $(this).attr('data-image'); } if ($.inArray( img_href, images) != -1 || $.inArray(decodeURIComponent(img_href), images) != -1) { if ($.inArray(img_href, pg_added) == -1) { // чтобы изображения не дублировались // show pg_html = pg_html + poip_outerHTML($(this)); pg_added.push(img_href); //pg_html = pg_html + poip_outerHTML($(this).parent()); } } }); // when carousel for additional images is turned on if (block_gallery.data('owlCarousel')) { var pg_opts = block_gallery.data('owlCarousel').options; } if (pg_html != block_gallery.html()) { block_gallery.html(pg_html); // when carousel for additional images is turned on if (block_gallery.data('owlCarousel')) { block_gallery.data('owlCarousel').reinit(pg_opts); } // в journal2 может вместо colorbox использовать другая галерея, в ней надо отдельно переключать изображения if (poip_theme_name == 'cosyone') { $('.cloud-zoom, .cloud-zoom-gallery').CloudZoom(); //$(".cloud-zoom-gallery").last().removeClass("cboxElement"); $(".cloud-zoom-gallery").click(function() { $("#zoom-btn").attr('href', $(this).attr('href')); $("#zoom-btn").attr('title', $(this).attr('title')); //$(".cloud-zoom-gallery").each(function() { //$(this).addClass("cboxElement"); //}); //$(this).removeClass("cboxElement"); }); } if (poip_theme_name == 'ava_store') { // elevateZoom destroy $.removeData($("#zoom"), 'elevateZoom'); $('.zoomContainer').remove(); $("#zoom").elevateZoom({ gallery:'gallery', zoomType: "inner", cursor: "crosshair", galleryActiveClass: 'active', imageCrossfade: true, zoomWindowFadeIn: 500, zoomWindowFadeOut: 750, loadingIcon: 'catalog/view/theme/default/image/loader.gif' }); } if (poip_theme_name == 'journal2') { /* additional images click */ $('.product-info .image-additional a').click(function (e) { e.preventDefault(); var thumb = $(this).find('img').attr('src'); var image = $(this).attr('href'); Journal.changeProductImage(thumb, image); return false; }); //images_to_mouseover(); if (poip_settings['img_hover']) { $('div.image-additional').find('a').mouseover(function(){ poip_image_mouseover(this); }); } } } return; } // << pav fashion theme compatibility if (poip_theme_name == 'pav_fashion' || poip_theme_name == 'pav_styleshop' || poip_theme_name == 'pav_oneshop' || poip_theme_name == 'lexus_royal' || poip_theme_name == 'lexus_royal' || poip_theme_name == 'lexus_store' ) { var image_additional_carousel = $('#image-additional-carousel, #image-additional .carousel-inner'); // first time - copy all images to hidden element if ( !$('#hidden-carousel').length ) { // count elements per item var images_per_item = Math.max(3, $('#image-additional').find('.item').first().find('a').length); $("#image-additional").after("<div style='display:none' id='hidden-carousel' images_per_item='"+images_per_item+"'></div>"); // , #image-additional .carousel-inner - for quickview image_additional_carousel.find('a').each( function(){ $('#hidden-carousel').append( poip_outerHTML($(this)) ); }); }; // add visible images to carousel var pg_html = ""; var pg_added = []; var anchors_cnt = 0; var images_per_item = $('#hidden-carousel').attr('images_per_item'); $('#hidden-carousel').find('a').each( function(){ // Учтем возможность спец символов типа пробела %20 if ($.inArray( this.href, images) != -1 || $.inArray(decodeURIComponent(this.href), images) != -1) { if ($.inArray(this.href, pg_added) == -1) { // чтобы изображения не дублировались if (anchors_cnt%images_per_item==0) { if (anchors_cnt>0) pg_html = pg_html + "</div>"; pg_html = pg_html + "<div class='item'>"; } // show pg_html = pg_html + poip_outerHTML($(this)); pg_added.push(this.href); //pg_html = pg_html + poip_outerHTML($(this).parent()); anchors_cnt++; } } }); if (pg_html != "") { pg_html = pg_html + "</div>"; } if (pg_html != image_additional_carousel.html()) { // refresh prev/next //var prev_next_html = ""; //$("#image-additional").find(".carousel-control").each(function () { // prev_next_html+= poip_outerHTML($(this)); //}); //$("#image-additional").find(".carousel-control").remove(); //$("#image-additional").append(prev_next_html); image_additional_carousel.html(pg_html); if (image_additional_carousel.find('.item').length>1) { $("#image-additional").find(".carousel-control").show(); } else { $("#image-additional").find(".carousel-control").hide(); } $('#image-additional .item:first').addClass('active'); //$('#image-additional').carousel({interval:false}) //images_to_mouseover(); if (poip_settings['img_hover']) { $("#image-additional").find('a').mouseover(function(){ poip_image_mouseover(this); }); } } return; } // >> pav fashion theme compatibility // << polianna theme compatibility if (poip_theme_name == 'polianna') { // создадим копию списка изображений if ( !$('#image-additional-copy').length ) { $('div.image-additional').after("<div id=\"image-additional-copy\" style=\"display: none;\">"+$('div.image-additional div.overview').html()+"</div>"); } var shown_img = []; var new_items = ''; $('#image-additional-copy a').each(function(){ if (($.inArray( this.href, images) != -1 || $.inArray(decodeURIComponent(this.href), images) != -1) && $.inArray( this.href, shown_img) == -1) { new_items+= '<div class="item">'+poip_outerHTML($(this))+'</div>'; shown_img.push(this.href); } }); $('div.image-additional div.overview').html(new_items); $('.image-scroll').tinycarousel({ axis: 'x', // vertical or horizontal scroller? ( x || y ). interval: true, rewind: false, }); $('.cloud-zoom, .cloud-zoom-gallery').CloudZoom(); return; } // >> polianna theme compatibility // << lexus superstore compatibility if ($('div.image-additional').find('div.item').find('a').length) { var shown_img = []; $('div.image-additional').find('div.item').find('a').each( function(){ // Учтем возможность спец символов типа пробела %20 if (($.inArray( this.href, images) != -1 || $.inArray(decodeURIComponent(this.href), images) != -1) && $.inArray( this.href, shown_img) == -1) { $(this).show(); shown_img.push(this.href); } else { $(this).hide(); } }); return; } // >> lexus superstore compatibility // more compatible if ( poip_theme_name == 'default' || poip_theme_name == 'unibacr' ) { $('div.image-additional').find('a').hide(); $('div.image-additional').find('a').attr('data-poip-disabled', true); var shown_img = []; for ( var i in images ) { if ( !images.hasOwnProperty(i) ) continue; $('div.image-additional').find('a').each( function(){ if ( ($(this).attr('href') == images[i] || decodeURIComponent($(this).attr('href')) == images[i]) && $.inArray( $(this).attr('href'), shown_img) == -1 ) { $(this).show(); $(this).removeAttr('data-poip-disabled'); //$(this).appendTo(); $(this).detach(); $('div.image-additional').append($(this)); shown_img.push($(this).attr('href')) /* } else { $(this).attr('data-poip-disabled', true); $(this).hide(); */ } }); } } else { var shown_img = []; $('div.image-additional').find('a').each( function(){ //$('div.image-additional').children('a').each( function(){ // Учтем возможность спец символов типа пробела %20 //if (($.inArray( this.href, images) != -1 || $.inArray(decodeURIComponent(this.href), images) != -1) && $.inArray( this.href, shown_img) == -1) { if (($.inArray( $(this).attr('href'), images) != -1 || $.inArray(decodeURIComponent($(this).attr('href')), images) != -1) && $.inArray( $(this).attr('href'), shown_img) == -1) { $(this).show(); $(this).removeAttr('data-poip-disabled'); if ( poip_theme_name == 'moneymaker' && $(this).parent().is('div.image-additional')) { $(this).parent().show(); } shown_img.push($(this).attr('href')); } else { $(this).attr('data-poip-disabled', true); $(this).hide(); if ( poip_theme_name == 'moneymaker' && $(this).parent().is('div.image-additional')) { $(this).parent().hide(); } } }); } // << theme neocart if ( $('.product-img-box a.cloud-zoom-gallery').length ) { $('.product-img-box a.cloud-zoom-gallery').each(function () { if ($.inArray( this.href, images) != -1 || $.inArray(decodeURIComponent(this.href), images) != -1) { $(this).parent().show(); // <li> } else { $(this).parent().hide(); } }); // листаем в начало if ($('.product-img-box .flex-direction-nav a.flex-prev').length) { for (var i=1; i<=50; i++) { $('.product-img-box .flex-direction-nav a.flex-prev').trigger('click'); } } } // >> theme neocart } function elevate_zoom_select_image(img_click) { var have_elevate_zoom = false; //$('#image-additional').find('li').find('a').each( function () { poipImageAdditional().find('a').each( function () { if ($(this).attr('data-image') == img_click || $(this).attr('data-zoom-image') == img_click) { have_elevate_zoom = true; } }); if (have_elevate_zoom) { setTimeout( function() { //$('#image-additional').find('li').find('a').each( function () { poipImageAdditional().find('a').each( function () { if ($(this).attr('data-image') == img_click || $(this).attr('data-zoom-image') == img_click) { //$(this).find('img').click(); $(this).click(); } }); if (poip_theme_name == 'stowear') { stowear_refresh_popup(); } }, 100); } return have_elevate_zoom; } // for future function cloud_zoom_switch(elem) { var data = elem.data('relOpts'); $('#' + data.useZoom).parent().find('div.mousetrap').remove(); // Destroy the previous zoom $('#' + data.useZoom).data('zoom').destroy(); // Change the biglink to point to the new big image. $('#' + data.useZoom).attr('href', elem.attr('href')); // Change the small image to point to the new small image. $('#' + data.useZoom + ' img').attr('src', data.smallImage); // Init a new zoom with the new images. $('#' + data.useZoom).CloudZoom(); } // << theme lexus superstore & journal2 function lexus_superstore_zoom_switch(img_click) { $('.image a #image').attr('data-zoom-image', img_click); $('.zoomWindowContainer').find('div').css({"background-image": 'url("'+img_click+'")'}); if ($('.image a #image').data('zoom-image')) { $('.image a #image').data('zoom-image', img_click); } } // >> theme lexus superstore function pav_fashion_zoom_switch(img_click) { $('div.image').find('#image').attr('data-zoom-image', img_click); $('.zoomWindowContainer').find('div').css({"background-image": 'url("'+img_click+'")'}); if ($('div.zoomLens').css('background-image') != 'none') { $('div.zoomLens').css({"background-image": 'url("'+img_click+'")'}); } if ($('div.image').find('#image').data('zoom-image')) { $('div.image').find('#image').data('zoom-image', img_click); } } function ava_store_zoom_switch(img_click) { $('div.product-info div.image a#zoom_link1').attr('href', img_click); $('.zoomWindowContainer').find('div').css({"background-image": 'url("'+img_click+'")'}); if ($('.image a #image').data('zoom-image')) { $('.image a #image').data('zoom-image', img_click); } } function stowear_refresh_popup() { $('#poip_popup').remove(); $('#quickview_product .popup-gallery').append('<div id="poip_popup" style="display:none;"></div>'); var added_imgs = []; $('#quickview_product .popup-gallery .thumbnails a:not([disabled])').each(function(){ if ( $.inArray($(this).attr('href'), added_imgs) == -1 && $(this).attr('href') != $('#quickview_product .popup-gallery a#ex1').attr('href') ) { $('#poip_popup').append( $(this).clone() ); added_imgs.push($(this).attr('href')); } }); $('#quickview_product .popup-gallery').magnificPopup({ delegate: 'a#ex1, #poip_popup a', type: 'image', tLoading: 'Loading image #%curr%...', mainClass: 'mfp-img-mobile', gallery: { enabled: true, navigateByImgClick: true, preload: [0,1] // Will preload 0 - before current, and 1 after the current image }, image: { tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', titleSrc: function(item) { return item.el.attr('title'); } } }); } function rgen_opencart_zoom_switch(img_click) { //$('.image a #image').attr('data-zoom-image', img_click); $('.zoomWindowContainer').find('div').css({"background-image": 'url("'+img_click+'")'}); /* if ($('.image a #image').data('zoom-image')) { $('.image a #image').data('zoom-image', img_click); } */ } function image_zoom_click(img_click) { if ( document.readyState != "complete" ) { return; } if (poip_theme_name == 'bt_venous' && typeof($.fn.CloudZoom) != 'undefined') { poipImageAdditional().find('a[href="'+img_click+'"]').click(); return; } if (poip_theme_name == 'rgen-opencart') { rgen_opencart_zoom_switch(img_click) return; } // << elevatezoom compatibility / theme 422 & stowear if ( elevate_zoom_select_image(img_click) ) return; // >> elevatezoom compatibility / theme 422 if ( poip_theme_name == 'sstore' ) { $('div.image-additional').find('a.cloud-zoom-gallery:visible').each( function () { if ($(this).attr('href') == img_click) { //setTimeout(function(){ $(this).click(); $('#wrap a').attr('href', img_click); poip_sstore_colorbox_refresh(); //}, 0); return false; } }); return } // << product image zoom free compatibility $('div.image-additional').find('a.cloud-zoom-gallery').each( function () { if ($(this).attr('href') == img_click) { $(this).find('img').click(); return false; } return; }); // >> product image zoom free compatibility if (poip_theme_name == 'shoppica2') { poipImageAdditional().find('a.cloud-zoom-gallery[href="'+img_click+'"]').click(); return; } if (poip_theme_name == 'mattimeo') { // Актуально только если включена замена колорбокса setTimeout(function(){ $('div.image-additional a').each(function(){ if ($(this).attr('data-zoom-image') == img_click) { $(this).find('img').click(); return false; } }); }, 100); return; } // << ava store theme if (poip_theme_name == 'ava_store') { if ($('div.product-info div.image a#zoom_link1').attr('href') && $('.zoomWindowContainer').length && $('.zoomWindowContainer').find('div').length) { ava_store_zoom_switch(img_click); } else { setTimeout(function(){ ava_store_zoom_switch(img_click); }, 100); } return; } // >> ava store theme // << pav fashion theme - product page & quickview if (poip_theme_name == "pav_fashion" || poip_theme_name == 'pav_styleshop' || poip_theme_name == 'lexus_royal' || poip_theme_name == 'lexus_store') { pav_fashion_zoom_switch(img_click); return; } // >> pav fashion theme - product page & quickview // journal2 возможен другой зум - zm-viewer if (poip_theme_name == 'journal2' && $('div.zm-viewer').length) { /* var poip_j2_gallery_img_found = false; $('#product-gallery a').each(function(){ if ( $(this).attr('href') == img_click ) { $(this).find('img').click(); poip_j2_gallery_img_found = true; return false; } }); */ //if (!poip_j2_gallery_img_found) { var poip_j2_image = poip_get_image_by_src(img_click,'popup'); if (poip_j2_image && poip_j2_image['popup'] && poip_j2_image['main']) { $('div.zm-viewer img.zm-fast').attr('src', poip_j2_image['main']); $('div.zm-viewer img:not(.zm-fast)').attr('src', poip_j2_image['popup']); } //} return; } /// << theme lexus superstore & journal2 & pav fashion (product page) if ($('.image a #image').attr('data-zoom-image') && $('.zoomWindowContainer').length && $('.zoomWindowContainer').find('div').length) { lexus_superstore_zoom_switch(img_click); return; } else if ($('.image a #image').attr('data-zoom-image')) { setTimeout(function () { lexus_superstore_zoom_switch(img_click); }, 100); return; } // >> theme lexus superstore // << theme start zoom ALLL211334 $('#image-additional').find('a[data-zoom-image]').each( function () { // all elements with attribute 'data-zoom-image' if ($(this).attr('href') == img_click) { $(this).click(); return; } }); // >> theme start zoom // << theme neocart ALLL21133 if ( $('.product-img-box a.cloud-zoom-gallery').length ) { $('.product-img-box a.cloud-zoom-gallery').each(function () { if ($(this).attr('href') == img_click ) { $(this).click(); return; } }); } // >> theme neocart } function poip_set_main_image_pavilion(main, popup, counter) { $('#product meta[itemprop=image]').attr('content', popup); if (!counter) counter = 1; if (counter == 10) return; if (!$('.fotorama').length || !$('.fotorama').data('fotorama')) { setTimeout(function () { poip_set_main_image(main, popup, counter+1) }, 100); return; } for (var i in $('.fotorama').data('fotorama').data) { var f_data = $('.fotorama').data('fotorama').data[i]; if (f_data['img']==popup) { $('.fotorama').data('fotorama').show(i); return; } } } function poip_set_main_image(main, popup) { if (poip_theme_name == 'pavilion') { poip_set_main_image_pavilion(main, popup); } else if (poip_theme_name != 'stowear') { poip_main_image().attr('src', main); poip_main_image().closest('a').attr('href', popup); } } function poip_change_images(option) { var product_option_id = option.name.substr(option_prefix_length+1, option.name.indexOf(']')-(option_prefix_length+1) ); if ($.inArray(product_option_id, poip_product_option_ids)==-1) { return; } images_to_show = poip_change_available_images(product_option_id); var value = option.value; var selected_values = get_selected_values(); var images_for_main_image = []; // ALLL21133 set of images assigned only for options, which should replace main image var main_image_switched = false; for (var i in images_to_show) { if ( !images_to_show.hasOwnProperty(i) ) continue; var current_poip_image = poip_get_image_by_src(images_to_show[i], 'popup'); if ( current_poip_image['product_option_id'] && current_poip_image['product_option_id'].length ) { for (var j in current_poip_image['product_option_id']) { if ( !current_poip_image['product_option_id'].hasOwnProperty(j) ) continue; var current_product_option_id = current_poip_image['product_option_id'][j]; if ( poip_options_settings[current_product_option_id]['img_change'] ) { images_for_main_image.push(images_to_show[i]); } } } } images_to_show = images_for_main_image; if (images_for_main_image.length==0 && value && $.inArray(value, selected_values)==-1 && poip_std_src && poip_std_href) { //if (images_to_show.length==0 && value && $.inArray(value, selected_values)==-1 && poip_std_src && poip_std_href) { if ( !(poip_theme_name == 'mattimeo' && false) ) { poip_set_main_image(poip_std_src, poip_std_href); main_image_switched = true; //poip_main_image().attr('src', poip_std_src); //poip_main_image().closest('a').attr('href', poip_std_href); } } var images_to_check = []; if ( value && $.inArray(value, selected_values) != -1 ) { for (var i=0;i<poip_images.length;i++) { if ( poip_images[i]['product_option_value_id'] && $.inArray(value, poip_images[i]['product_option_value_id']) != -1 && $.inArray(poip_images[i]['popup'], images_to_show) != -1 ) { images_to_check.push( images_to_show[$.inArray(poip_images[i]['popup'], images_to_show)] ); } } } if ( !images_to_check.length ) { images_to_check = images_to_show; } var images_to_check = poip_sort_images_by_selected_options(images_to_check); // сначала по сочетанию опций ALLL11133 ALLL11133 // если используется фильтрация - то берем первое изображение из прошедших фильтр, иначе первое изображение опции if (images_to_check && ((poip_options_settings[product_option_id]['img_limit'] && poip_options_settings[product_option_id]['img_use']) || (value && $.inArray(value, selected_values)==-1)) ) { //если отменили выбор опции, то тоже показываем первую из доступных картинок //if (images_to_check && poip_options_settings[product_option_id]['img_limit'] && poip_options_settings[product_option_id]['img_use']) { for (var i=0;i<poip_images.length;i++) { if (images_to_check[0] == poip_images[i]['popup']) { if ( !(poip_theme_name == 'mattimeo' && false) ) { poip_set_main_image(poip_images[i]['main'], poip_images[i]['popup']); //poip_main_image().attr('src', poip_images[i]['main']); //poip_main_image().closest('a').attr('href', poip_images[i]['popup']); } // << zoom compatibility image_zoom_click(poip_images[i]['popup']); // >> zoom compatibility var main_image_switched = true; } } } if (!main_image_switched) { // потом по выбранной опции if (value && $.inArray(value, selected_values)!=-1) { // смена главного изображения if (poip_options_settings[product_option_id] && poip_options_settings[product_option_id]['img_change'] ) { if (poip_images_by_options[value]) { image = poip_images_by_options[value][0]['image']; for (var i=0;i<poip_images.length;i++) { if (image == poip_images[i]['image']) { poip_set_main_image(poip_images[i]['main'], poip_images[i]['popup']); //poip_main_image().attr('src', poip_images[i]['main']); //poip_main_image().closest('a').attr('href', poip_images[i]['popup']); // << zoom compatibility image_zoom_click(poip_images[i]['popup']); // >> zoom compatibility break; } } } } } } // отображение картинок под опцией if (poip_options_settings[product_option_id] && poip_options_settings[product_option_id]['img_option'] ) { if (!$('product_option_images'+product_option_id).length) { // у чекбоксов может быть много значений if ($(option).prop('tagName')=='INPUT' && $(option).prop('type')=='checkbox' ) { var values = []; $('input[type=checkbox][name^="'+option_prefix+'['+product_option_id+']"]:checked').each( function() { values.push($(this).val()); }); } else { var values = [value]; } $('#option-images-'+product_option_id).remove(); if (!$('#option-images-'+product_option_id).length) { if (poip_theme_name == 'moneymaker') { $('#input-option'+product_option_id).after('<div id="option-images-'+product_option_id+'"></div>'); } else { $('#option-'+product_option_id).append('<div id="option-images-'+product_option_id+'"></div>'); } } $('#option-images-'+product_option_id).html(''); for (var i=0; i<poip_images.length; i++) { for (var j=0; j<values.length; j++) { if (poip_images[i]['product_option_value_id'] && $.inArray(values[j], poip_images[i]['product_option_value_id']) != -1) { var html_image = '<a href="'+poip_images[i]['popup']+'" class="image-additional" style="margin: 5px;"><img src="'+poip_images[i]['thumb']+'" ></a>'; $('#option-images-'+product_option_id).append(html_image); } } } } } } function poip_get_image_by_src(image, src) { for (var i in poip_images) { if (poip_images[i][src] == image) { return poip_images[i]; } } return ''; } function poip_option_value_selected(option) { poip_change_images(option); refresh_colorbox(); } function poip_main_image() { if (!$('#image').length) { if ($('#main-image').length) { return $('#main-image'); // theme start compatibility } if ($('div.product-info div.image a img').length) { return $('div.product-info div.image a img'); // theme cosyone compatibility } if ($('div.row-product a img[itemprop="image"]').length) { return $('div.row-product a img[itemprop="image"]'); // theme moneymaker compatibility } } return $('#image'); // by standard default } function poip_outerHTML(elem) { str = $(document.createElement("div")).append(elem.clone()).html(); return str; } function poipImageAdditional() { if (poip_theme_name == 'moneymaker') { return $('div.row-product div.images'); } else if (poip_theme_name == 'shoppica2') { return $('#product_gallery'); } else if (poip_theme_name == 'stowear') { return $('#quickview_product .popup-gallery .thumbnails'); } else if (poip_theme_name == 'theme380') { return $('#image-additional li'); } else { if ( !$('div.image-additional').length ) { $('div.product-info div.image').after('<div class="image-additional"></div>'); } return $('div.image-additional'); } } function refresh_colorbox() { if (!use_refresh_colorbox) return; if (typeof(poip_journal2_quickview) !== 'undefined' && poip_journal2_quickview) return; if (poip_settings['img_gal']) { $('#poip_colorbox').remove(); poipImageAdditional().after('<div style="display: none" id="poip_colorbox"></div>'); var colorbox_images = []; if (poip_theme_name == 'cosyone') { var visible_images = $('div.image-additional ul.image_carousel a[href!="#"]'); } else if (poip_theme_name == 'ava_store') { var visible_images = poipImageAdditional().find('a:visible[data-image]'); } else if (poip_theme_name == 'lexus_store') { var visible_images = poipImageAdditional().find('a[href!="#"][href!="#image-additional"]'); } else if (poip_theme_name == 'moneymaker') { var visible_images = poipImageAdditional().find('a[href!="#"][href!="#image-additional"]:not([href^="javascript"]):not([data-poip-disabled])'); } else { // more compatible var visible_images = poipImageAdditional().find('a:visible[href!="#"][href!="#image-additional"]:not([href^="javascript"])'); } // more compatible visible_images.each(function(){ var img_href = poip_theme_name == 'ava_store' ? $(this).attr('data-image') : $(this).attr('href') ; if ($.inArray( img_href, colorbox_images) == -1) { $('#poip_colorbox').append( poip_outerHTML($(this)).replace('colorbox', 'poip_colorbox') ); colorbox_images.push(img_href); } }); /* добавление главного изображения в галерею, даже когда оно не включено в доп изображения */ if ($.inArray(poip_main_image().parent().attr('href'), colorbox_images) == -1) { $('#poip_colorbox').append( poip_outerHTML(poip_main_image().parent()).replace('colorbox', 'poip_colorbox') ); colorbox_images.push(poip_main_image().parent().attr('href')); } /* ссылки на изображения не полные, не будем их учитывать if (poip_ava_store) { // изображения опций в общую кучу $('.product-info .options a.colorbox').each(function(){ var img_href = $(this).attr('href'); if ( $.inArray(img_href, colorbox_images) == -1 ) { $('#poip_colorbox').append( poip_outerHTML($(this)).replace('colorbox', 'poip_colorbox') ); colorbox_images.push(img_href); } }); } */ // в ava store и, возможно, других шаблонах, нужно дозаполнить poip_colorbox $('#poip_colorbox a[href!="#"], #poip_colorbox a[href="#"][data-image]').each(function(){ if ( !$(this).hasClass('poip_colorbox') ) { $(this).addClass('poip_colorbox'); } if ($(this).attr('href') == '#' && $(this).attr('data-image')) { $(this).attr('href', $(this).attr('data-image')); } }); if (typeof($.colorbox) !== 'undefined') { $.colorbox.remove(); if (poip_theme_name == 'moneymaker') { // quickorder $('.btn-quickorder').colorbox({ close: "<button class='btn btn-default' type='button'><i class='fa fa-fw fa-times'></i></button>", href:"#quickorder_form", inline: true, width:"550px", onComplete: function() { $('.btn-quickorder').tooltip('destroy'); if(navigator.appVersion.indexOf("MSIE 8.")!=-1) {$("html, body").animate({scrollTop:0}, 'slow');}; }, onCleanup: function() { $('#quickorder_result').html(''); } }); } } // << pav fashion theme compatibility if ((poip_theme_name == 'pav_fashion' || poip_theme_name == 'pav_styleshop' ) && $.colorbox) { // for quickview $('.pav-colorbox').colorbox({ width: '980px', height: '80%', overlayClose: true, opacity: 0.5, iframe: true, }); // if used zoom, colorbox for images not used if ($('#image-additional').find('a[data-zoom-image][data-image]').length && $('.zoomWindowContainer').find('div').length) { $('#image-additional').find('a[data-zoom-image][data-image]').click(function (event) { event.preventDefault(); }); return; } } // >> if ($.colorbox) { if (poip_theme_name == 'moneymaker') { colorbox_settings = { next: "<button class='btn btn-default' type='button'><i class='fa fa-fw fa-chevron-right'></i></button>", previous: "<button class='btn btn-default' type='button'><i class='fa fa-fw fa-chevron-left'></i></button>", close: "<button class='btn btn-default' type='button'><i class='fa fa-fw fa-times'></i></button>", rel: "colorbox", onOpen: function() { $("#colorbox").prepend("<div id='image-appendix'><div class='title hidden-xs'>iPhone</div><div class='btn-group btn-group-lg hidden-xs additional-buttons'><button class='btn btn-primary' type='button' onclick='$(\"#image-appendix\").remove();$(\"#button-cart\").click();'><i class='fa fa-shopping-cart'></i> Купить</button><input type='text' data-toggle='tooltip' class='form-control input-lg' name='quantities' size='2' value='1' title='Количество:' /><button type='button' data-toggle='tooltip' class='btn btn-default' title='в закладки' onclick='addToWishList(40);'><i class='fa fa-heart'></i></button><button type='button' data-toggle='tooltip' class='btn btn-default' title='сравнение' onclick='addToCompare(40);'><i class='fa fa-bar-chart-o'></i></button></div></div>"); $('input[name=\"quantities\"]').keyup(function(){document.getElementsByName('quantity')[0].value = $(this).val(); }); }, onComplete: function() { if(navigator.appVersion.indexOf("MSIE 8.")!=-1) {$("html, body").animate({scrollTop:0}, 'slow');}; }, onClosed: function() { $("#image-appendix").remove() } } } else { var colorbox_settings = false; try { var scripts = $('script:contains(".colorbox")'); for (var i=0; i<scripts.length; i++) { var script_html =$(scripts[i]).html(); if (script_html.indexOf('$(\'.colorbox\').colorbox(') != -1 ) { var str_pos = script_html.indexOf('$(\'.colorbox\').colorbox('); var str = script_html.substr(str_pos+24); str_pos = str.indexOf('});'); str = str.substr(0,str_pos+1); colorbox_settings = eval('('+str+')'); break; } } } catch (e) { console.debug(e); colorbox_settings = false } if (!colorbox_settings || (typeof colorbox_settings) != 'object') { console.log('colorbox settings not found'); colorbox_settings = { overlayClose: true, opacity: 0.5, rel: "colorbox" }; } } //if (poip_theme_name != 'cosyone' || !$('#zoom-btn').length) { $('.poip_colorbox').colorbox(colorbox_settings); //$('.colorbox').colorbox(colorbox_settings); //} try { $('[id^=option-images-]').each( function() { colorbox_settings['rel'] = $(this).attr('id'); // more compatible $(this).find('a').colorbox(colorbox_settings); //$(this).children('a').colorbox(colorbox_settings); }); } catch(e) { console.debug(e); console.debug("Ошибка установки colorbox для изображений под опциями"); } } if (poip_theme_name == 'polianna') { $('#plus').click(function(event){ event.preventDefault(); var poip_colorbox = $('a.poip_colorbox[href!="#"]'); for (var i=0; i<poip_colorbox.length; i++) { if ($(this).parent().attr('href') == poip_colorbox[i].href || $(this).parent().attr('href') == decodeURIComponent(poip_colorbox[i].href)) { $(poip_colorbox[i]).trigger('click'); break; } } }); } else if (poip_theme_name == 'cosyone' && $('#zoom-btn').length) { // в cosyone в зависимости от настроек может быть включен зум, тогда всплывающее окно только по плюсу $('#zoom-btn').unbind('click'); $('#zoom-btn').click(function(event){ event.preventDefault(); var poip_colorbox = $('a.poip_colorbox[href!="#"]'); for (var i=0; i<poip_colorbox.length; i++) { if ($(this).attr('href') == poip_colorbox[i].href || $(this).attr('href') == decodeURIComponent(poip_colorbox[i].href)) { $(poip_colorbox[i]).trigger('click'); break; } } }); } else if (poip_theme_name == 'ava_store' && $('#zoom_link1').length) { $('#zoom_link1').unbind('click'); $('#zoom_link1').click(function(event){ event.preventDefault(); if ($('.zoomWindowContainer').find('div').css('background-image')) { // ALLL11133 изображение должно быть тем же что в зуме var back_image = $('.zoomWindowContainer').find('div').css('background-image'); if (back_image.substr(0,4)=='url(' && back_image.substr(-1) == ')') { back_image = back_image.substr(4,back_image.length-5); } // могут быть кавычки (в разных браузерах) back_image = back_image.replace(new RegExp('"', 'g'),''); $('#zoom_link1').attr('href', back_image); $('#zoom_link1').attr('data-image', back_image); } var poip_colorbox = $('#poip_colorbox a.poip_colorbox[data-image]'); for (var i=0; i<poip_colorbox.length; i++) { var poip_colorbox_href = $(poip_colorbox[i]).attr('data-image'); if ($(this).attr('href') == poip_colorbox_href || $(this).attr('href') == decodeURIComponent(poip_colorbox_href)) { $(poip_colorbox[i]).trigger('click'); break; } } }); $('.product-info .options a.colorbox').click(function(e){ e.preventDefault(); var href = $(this).attr('href'); for (var i in poip_images) { var img_href = poip_images[i]['image']; if ( img_href.length <= href.length && href.substr(href.length-img_href.length) == img_href) { href = poip_images[i]['popup']; break; } } $('#poip_colorbox a').each(function(){ var poip_href = $(this).attr('href'); var poip_href_d = decodeURIComponent(poip_href); if ( (poip_href.length >= href.length && poip_href.substr(poip_href.length-href.length) == href) || (poip_href_d.length >= href.length && poip_href_d.substr(poip_href_d.length-href.length) == href) ) { $(this).click(); return false; } }); }); } else { $('.colorbox').unbind('click', poip_colorbox_click_function); $('.colorbox').bind( 'click', poip_colorbox_click_function ); } } } var poip_colorbox_click_function = function(event) { event.preventDefault(); var this_data = ( poip_theme_name=='moneymaker' ? $(this).find('a') : $(this) ); var poip_colorbox = $('a.poip_colorbox[href!="#"]'); for (var i=0; i<poip_colorbox.length; i++) { //if (this_data.attr('href') == poip_colorbox[i].href || this_data.attr('href') == decodeURIComponent(poip_colorbox[i].href)) { if ( this_data.attr('href') == $(poip_colorbox[i]).attr('href') || this_data.attr('href') == decodeURIComponent($(poip_colorbox[i]).attr('href'))) { $(poip_colorbox[i]).trigger('click'); break; } } } var poip_fancybox_click_function = function(event) { event.preventDefault(); var this_data = $(this); var poip_box = $('a.poip_fancybox'); for (var i=0; i<poip_box.length; i++) { if (this_data.attr('href') == $(poip_box[i]).attr('href') ) { $(poip_box[i]).trigger('click'); break; } } } var poip_photobox_main_image_click_function = function(event) { event.preventDefault(); var this_data = $(this); var poip_box = $('div.images a:visible'); for (var i=0; i<poip_box.length; i++) { if (this_data.attr('href') == $(poip_box[i]).attr('href') ) { $(poip_box[i]).trigger('click'); break; } } } function poip_image_mouseover(image_a) { if (poip_theme_name == 'mattimeo' && $(image_a).attr('data-zoom-image')) { href = $(image_a).attr('data-zoom-image') ; } else if (poip_theme_name == 'rgen-opencart' && $(image_a).attr('data-zoom-image') ) { href = $(image_a).attr('data-zoom-image') ; } else { href = $(image_a).attr('href')!='#' ? $(image_a).attr('href') : $(image_a).attr('data-image') ; } for (var i=0;i<poip_images.length;i++) { if (poip_images[i]['popup'] && poip_images[i]['popup'] == href) { if ( !(poip_theme_name == 'bt_venous' && typeof($.fn.CloudZoom) != 'undefined') && !(poip_theme_name == 'mattimeo' && false) && poip_theme_name != 'sstore' && poip_theme_name != 'stowear' ) { poip_main_image().attr('src', poip_images[i]['main']); poip_main_image().closest('a').attr('href', poip_images[i]['popup']); } image_zoom_click(poip_images[i]['popup']); break; } } refresh_colorbox(); } function set_option_value(value) { var options = $('select[name^="'+option_prefix+'["]').children('option'); for (var i=0; i<options.length;i++) { if (options[i].value == value) { // Product Block Option compatibility if ( $('a[option-value='+value+']').length ) { $('a[option-value='+value+']').click(); return; } $(options[i]).parent().val(value); $(options[i]).parent().trigger('change'); return; } } var options = $('input[type=radio][name^="'+option_prefix+'["]'); for (var i=0; i<options.length;i++) { if (options[i].value == value) { // Product Block Option compatibility if ( $('a[option-value='+value+']').length ) { $('a[option-value='+value+']').click(); return; } options[i].checked = true; $(options[i]).trigger('change'); return; } } var options = $('input[type=checkbox][name^="'+option_prefix+'["]'); for (var i=0; i<options.length;i++) { if (options[i].value == value) { options[i].checked = true; $(options[i]).trigger('change'); return; } } } function poip_image_mouseover_pavilion_turn_on(counter) { $('#product').on('mouseover', '.fotorama__thumb img.fotorama__img', function() { if ( $('.fotorama').length && $('.fotorama').data('fotorama') ) { for (var i in $('.fotorama').data('fotorama').data) { var fotorama_img = $('.fotorama').data('fotorama').data[i]; if (fotorama_img['thumb'] == $(this).attr('src')) { $('.fotorama').data('fotorama').show(i); return; } } } }); } function poipCheckEventsForSelects(first_time) { $('select[name^="'+option_prefix+'["]').each(function () { //var select_events = $(this).data('events'); var select_events = $._data( $(this).get(0) , 'events'); var found_poip = false; if (select_events && select_events.change) { for (var i=0; i<select_events.change.length; i++) { if ( (''+select_events.change[i].handler).indexOf('poip_option_value_selected') != -1 ) { found_poip = true; break; } } } if (!found_poip) { $(this).change( function(){poip_option_value_selected(this);} ); // ALLL113 надо вызвать событие, возможно значение селекта было сброшено if (!first_time) { poip_option_value_selected(this); } } }); } function check_all_selected_values() { for (var i in poip_product_option_ids) { var selected_values = get_selected_values(0, poip_product_option_ids[i]); if (selected_values && selected_values.length) { poip_change_available_images(poip_product_option_ids[i]); return true; } } return false; } //$("select[name^="+option_prefix+"\\[]").change( function(){poip_option_value_selected(this);} ); poipCheckEventsForSelects(true); $('div.options').click(function(){poipCheckEventsForSelects();}); $('input[type=radio][name^="'+option_prefix+'["]').each(function (i) { $(this).change(function(){ poip_option_value_selected(this); }) }) if (poip_theme_name == "journal2") { if ( $('div.option').find('input:radio').length && $('div.option').find('li[data-value]') ) { $('div.option').on('click', 'li[data-value]', function(){ $('div.option').find('input:radio[value='+$(this).attr('data-value')+']').change(); }); /* $('div.option').find('li[data-value]').click(function(){ $('div.option').find('input:radio[value='+$(this).attr('data-value')+']').change(); }); */ } } $('input[type=checkbox][name^="'+option_prefix+'["]').each(function (i) { $(this).change(function(){ poip_option_value_selected(this); }) }) //images_to_mouseover(); if (poip_settings['img_hover']) { if (poip_theme_name == 'pavilion') { poip_image_mouseover_pavilion_turn_on(); } else { // more compatible if (poip_theme_name != 'fortis') { setTimeout( function() { poipImageAdditional().on('mouseover', 'a:not([href^="javascript"])' ,function(){ poip_image_mouseover(this); }); }, 100); } } } $(document).ready(function(){ //if (!check_all_selected_values()) { poip_set_visible_images(poip_get_global_visible_images()); //} refresh_colorbox(); if (poip_theme_name == 'pavilion') { // могут быть выбранные опции $('[name^="'+option_prefix+'["]:first').change(); } if (poip_theme_name == 'stowear') { stowear_refresh_popup() ; } var poip_ov = false; if (poip_ov) { // journal 2 compatibility setTimeout(function() { if ($('.option ul li[data-value='+poip_ov+']').length) { $('.option ul li[data-value='+poip_ov+']').click(); } else { set_option_value(poip_ov); } },1); } }); //--></script> <!-- >> ALLL111 Product Option Image PRO module --> <!-- ---------------------- --><!-- F O O T E R N A V --><!-- ---------------------- --><!-- 0 --><div id="footer_nav" class="s_row"><div class="s_wrap"><div class="s_col_3"><h2 class="s_main_color">Information</h2><ul class="s_list_1"> <li><a href="https://www.protechtrader.com/about-us">About Us- ProTechTrader</a></li> <li><a href="https://www.protechtrader.com/shipping-amp-return-policy">Shipping and Return Policy</a></li> <li><a href="https://www.protechtrader.com/privacy-policy">Privacy Policy & Security</a></li> <li><a href="https://www.protechtrader.com/terms-and-conditions">Terms and Conditions</a></li> </ul></div><div class="s_col_3"><h2 class="s_main_color">Extras</h2><ul class="s_list_1"> <li><a href="https://www.protechtrader.com/manufacturer">Brands</a></li> <li><a href="https://www.protechtrader.com/index.php?route=account/voucher">Gift Vouchers</a></li> <li><a href="https://www.protechtrader.com/special">Specials</a></li></ul></div><div class="s_col_3"><h2 class="s_main_color">My Account</h2><ul class="s_list_1"> <li><a href="https://www.protechtrader.com/login">Login</a></li> <li><a href="https://www.protechtrader.com/wishlist">Wish List</a></li> <li><a href="https://www.protechtrader.com/index.php?route=account/newsletter">Newsletter</a></li></ul></div> <div class="s_col_3"><h2 class="s_main_color">Support</h2><ul class="s_list_1"><li><a href="https://www.protechtrader.com/contact">Contact Us</a></li> <li><a href="https://www.protechtrader.com/sitemap">Site Map</a></li></ul></div><div class="s_col_12 border_eee"></div></div></div><!-- ---------------------- --><!-- F O O T E R --><!-- ---------------------- --><div id="footer" class="s_wrap"><div id="payments_types2" style="margin-left: auto; margin-right: auto;"><img src="https://d2ldlvi1yef00y.cloudfront.net/default/us/live/lwa/gold/medium/LwA.png" style="vertical-align: middle; cursor:pointer; max-height:41px;" alt="AmazonPay" class="amazonpay-button-inner-image2" id="OffAmazonPaymentsWidgets2" width="173" height="41" tabindex="1"> <img src="/image/payments/VISA_MC_AMEX_DISC_JCB.png" style="vertical-align: middle;" alt="VISA, Mastercard, American Express, Discover, & JCB cards accepted." class="cards-inner-image" id="cardsimg" width="216" height="30" ></div><!--<p id="copy">Copyright 2015 by<a href="https://www.ProTechTrader.com">ProTechTrader.com</a> </p>--></div><!-- end of FOOTER --></div><script type="text/javascript" src="https://www.protechtrader.com/catalog/view/theme/shoppica2/javascript/common.js.php?v=2.0&is_mobile=0&is_touch=0&language_direction=ltr"></script><link rel="stylesheet" type="text/css" href="https://www.protechtrader.com/catalog/view/theme/shoppica2/javascript/noty/css/jquery.noty.css"><script type="text/javascript"> var headID = document.getElementsByTagName("head")[0]; var newScript = document.createElement('script'); newScript.type = 'text/javascript'; newScript.async = true; newScript.src = 'https://www.storeya.com/externalscript/couponpop/758C4E53?'; headID.appendChild(newScript); </script> <script type="text/javascript"> var ref = (typeof document.referrer != 'undefined') ? document.referrer : ""; $.ajax({ type: "post", data: {"ref" : ref}, url:"index.php?route=module/ianalytics/register_iAnalyticsVisits", }); </script> <!-- Google Tag Manager --><script type="text/javascript" nitro-exclude=""> $(document).ready(function () { var dataLayer = window.dataLayer = window.dataLayer || []; $(document).ajaxSuccess(function(event, xhr, settings, json) { if (!json.error) { if(json['action'] && json['ec_data']['action'] == "addToCart") { var ec = json['ec_data']['data'];dataLayer.push({ 'event': 'addToCart', 'eventAction': 'addToCart', 'eventLabel': 'addToCart', 'ecommerce': { 'currencyCode': ec['currency'], 'add': { 'products': [{ 'name' : ec['name'], 'id' : ec['id'], 'price': ec['price'], 'brand': ec['brand'], 'category': ec['category'], 'quantity': ec['quantity'], 'currency': ec['currency'] }] } } });dataLayer.push({ 'event': 'pixel_cartadd', 'eventAction': 'AddToCart', 'eventLabel': 'AddToCart', 'contents': [{ 'id' : ec['id'], 'quantity' : ec['quantity'] }], 'content_type' : 'product', 'quantity':ec['quantity'], 'pixel_value': ec['fprice'], 'currency': ec['fcurrency'] });dataLayer.push({'event': 'remarketing','eventAction': 'add_to_cart','eventLabel': 'add_to_cart','Value': ec['price'],'RemarketingItems' : [{'id' : ec['id'],'google_business_vertical': 'retail'}]}); console.log('Tagmanager AddToCart Event Sent'); } if(json['action'] && json['ec_data']['action'] == "addToWishlist") { var ec = json['ec_data']['data'];dataLayer.push({ 'event': 'addToWishlist', 'eventAction': 'addToWishlist', 'eventLabel': 'addToWishlist', 'ecommerce': { 'currencyCode': ec['currency'], 'add': { 'products': [{ 'name' : ec['name'], 'id' : ec['id'], 'price': ec['price'], 'brand': ec['brand'], 'category': ec['category'], 'quantity': ec['quantity'], 'currency': ec['currency'] }] } } });dataLayer.push({ 'event': 'pixel_wishlist', 'eventAction': 'AddToWishlist', 'eventLabel': 'AddToWishlist', 'content_ids' : ec['id'], 'pixel_value': ec['fprice'], 'content_type' : 'product', 'currency': ec['fcurrency'] });console.log('Tagmanager Wishlist Event Sent'); } if(json['action'] && json['ec_data']['action'] == "addToCompare") { var ec = json['ec_data']['data'];dataLayer.push({ 'event': 'addToCompare', 'eventAction': 'addToCompare', 'eventLabel': 'addToCompare', 'ecommerce': { 'currencyCode': ec['currency'], 'add': { 'products': [{ 'name' : ec['name'], 'id' : ec['id'], 'price': ec['price'], 'brand': ec['brand'], 'category': ec['category'], 'quantity': ec['quantity'], 'currency': ec['currency'] }] } } }); console.log('Tagmanager Comapre Event Sent'); } if(json['action'] && json['ec_data']['action'] == "RemoveCart") { var ec = json['ec_data']['data'];dataLayer.push({ 'event': 'removeFromCart', 'eventAction': 'removeFromCart', 'eventLabel': 'removeFromCart', 'ecommerce': { 'remove': { 'products': [{ 'name' : ec['name'], 'id' : ec['id'], 'price': ec['price'], 'brand': ec['brand'], 'category': ec['category'], 'quantity': ec['quantity'], 'currency': ec['currency'] }] } } }); console.log('Tagmanager Remove Cart Event Sent'); } } }); }); function GAClick(name,sku,price,brand,category) {dataLayer.push({'event': 'productClick','eventAction': 'productClick','eventLabel': 'productClick','ecommerce': {'click': {'actionField': {'list': category},'products': [{'name': name,'id': sku,'price': price,'brand': brand,'category': category,'currency': 'USD'}]}}});}</script><!-- Google Tag Manager --> </body></html><!-- << Live Price --> <script type="text/javascript"> var liveprice_last_request = 0; function liveprice_outerHTML(elem) { str = $(document.createElement("div")).append(elem.clone()).html(); return str; } function liveprice_recalc() { liveprice_last_request = Math.random(); //console.debug(liveprice_last_request); $.ajax({ type: 'POST', url: 'index.php?route=module/liveprice/get_price&product_id=7491&quantity='+$('input[name=quantity]').val()+'&rnd='+liveprice_last_request, data: $('select[name^="option["], input[name^="option["]:radio:checked, input[name^="option["]:checkbox:checked, textarea[name^="option["], input[name^="option["][type="text"]'), dataType: 'json', //dataType: 'text', beforeSend: function() {}, complete: function() { }, success: function(json) { //console.debug(json); if (json && json.rnd && json.rnd == liveprice_last_request) { if (json.ct == 'moneymaker') { $('#product-controls div.price').html(json.htmls.html); $('#product-controls ul.list-unstyled').html(json.htmls.html_d); } else if (lp_theme_name == 'ava_store') { $('div.product-info div.price').html($.trim(json.htmls.html).replace('<br />', '\n<br />')); } else if (lp_theme_name == 'bigshop') { var temp_a = $('div.product-info div.price a'); $('div.product-info div.price').html(json.htmls.html); if (temp_a.length) { $('div.product-info div.price').append(liveprice_outerHTML(temp_a)); } } else if (lp_theme_name == 'shoppica2') { $('#product #product_price').html(json.htmls.html1); $('#product #product_discounts').html(json.htmls.html2); } else if (lp_theme_name == 'bootstrap') { if ( $('#product').siblings('ul.list-unstyled').length > 1) { $($('#product').siblings('ul.list-unstyled')[1]).replaceWith(json.htmls.html); } } else if (lp_theme_name == 'fortis') { $('div.product-info div.price').replaceWith(json.htmls.html1); $('div.product-info div.discount').replaceWith(json.htmls.html2); $('div.product-info span.price-tax').replaceWith(json.htmls.html3); } else if (json.ct == 'coloring') { $('#product div.price').html(json.htmls.html); } else if (json.ct == 'journal2') { //#product for newer? $('.product-info .price').html(json.htmls.html); } else { $('div.product-info div.price').html(json.htmls.html); } } }, error: function(error) { console.log(error); } }); } var lp_theme_name = $('style:contains("AVA STORE")').length ? 'ava_store' : 'shoppica2'; //$(document).ready( function() { if ( !$.fn.on ) { // old jquery $('select[name^="option["]').live('change', function(){ liveprice_recalc(); }); $('input[name^="option["]').live('change', function(){ liveprice_recalc(); }); $('textarea[name^="option["]').live('change', function(){ liveprice_recalc(); }); $('input[name=quantity]').live('input propertychange change', function(){ liveprice_recalc(); }); $('#button-cart').live('click', function(){ setTimeout( function(){ liveprice_recalc(); }, 200); }); } else { $('select[name^="option["]').on('change', function(){ liveprice_recalc(); }); $('input[name^="option["]').on('change', function(){ liveprice_recalc(); }); $('textarea[name^="option["]').on('change', function(){ liveprice_recalc(); }); $('input[name=quantity]').on('input propertychange change', function(){ liveprice_recalc(); }); $('#button-cart').on('click', function(){ setTimeout( function(){ liveprice_recalc(); }, 200); }); } if (lp_theme_name == 'ava_store') { $('span#plus.quantity-operator, span#minus.quantity-operator').click(function(){ setTimeout( function(){ liveprice_recalc(); }, 50); }); } else if ((lp_theme_name == 'polianna') || (lp_theme_name == 'mattimeo') || (lp_theme_name == 'univer') || (lp_theme_name == 'julytheme')) { $('#increase, #decrease').click(function(){ setTimeout( function(){ liveprice_recalc(); }, 50); }); } else if (lp_theme_name == 'METROPOLITEN') { $('.cart .plus_minus_quantity input[type=button]').click(function(){ setTimeout( function(){ liveprice_recalc(); }, 50); }); } /* // first value autoselect $('select[name^="option["]').each(function(){ if ( !$(this).val() && $(this).find('option[value][value!=""]:first').length ) { $(this).val( $(this).find('option[value][value!=""]:first').val() ); $(this).change(); } }); $('input:radio[name^="option["]').each(function(){ if ( !$('input:radio[name="'+$(this).attr('name')+'"]:checked').length ) { $(this).prop('checked', true); $(this).change(); } }); */ //}); </script> <!-- >> Live Price -->