Produced by Araxis Merge on 2023-11-23 04:31:24 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | /Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme 4.0.6/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view | product_custom.phtml | 2022-04-30 08:33:08 +0000 |
| 2 | /Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme 4.0.7/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view | product_custom.phtml | 2022-04-30 08:33:08 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 178 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | 1 | <?php | |||
| 2 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | 2 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | |||
| 3 | $product_view = $porto_helper->getConfig('porto_settings/product'); | 3 | $product_view = $porto_helper->getConfig('porto_settings/product'); | |||
| 4 | $_helper = $this->helper('Magento\Catalog\Helper\Output'); | 4 | $_helper = $this->helper('Magento\Catalog\Helper\Output'); | |||
| 5 | $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); | 5 | $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); | |||
| 6 | $sticky_header = "no-sticky-header"; | 6 | $sticky_header = "no-sticky-header"; | |||
| 7 | if($porto_helper->getConfig('porto_settings/header/sticky_header')) { | 7 | if($porto_helper->getConfig('porto_settings/header/sticky_header')) { | |||
| 8 | $sticky_header = ""; | 8 | $sticky_header = ""; | |||
| 9 | } | 9 | } | |||
| 10 | $_product = $block->getProduct(); | 10 | $_product = $block->getProduct(); | |||
| 11 | if(isset($product_view['enable_addtocart_sticky']) && $product_view['enable_addtocart_sticky']) { | 11 | if(isset($product_view['enable_addtocart_sticky']) && $product_view['enable_addtocart_sticky']) { | |||
| 12 | $productImage = $_imagehelper->init($_product, 'category_page_grid')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(50); | 12 | $productImage = $_imagehelper->init($_product, 'category_page_grid')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(50); | |||
| 13 | $productImageUrl = $productImage->getUrl(); | 13 | $productImageUrl = $productImage->getUrl(); | |||
| 14 | ?> | 14 | ?> | |||
| 15 | <div class="sticky-product hide <?php echo $sticky_header; ?>"> | 15 | <div class="sticky-product hide <?php echo $sticky_header; ?>"> | |||
| 16 | <div class="container"> | 16 | <div class="container"> | |||
| 17 | <div class="sticky-image"> | 17 | <div class="sticky-image"> | |||
| 18 | <img class="product-image-photo default_image" src="<?php echo $productImageUrl; ?>" alt="<?php echo $productImage->getLabel(); ?>"/> | 18 | <img class="product-image-photo default_image" src="<?php echo $productImageUrl; ?>" alt="<?php echo $productImage->getLabel(); ?>"/> | |||
| 19 | </div> | 19 | </div> | |||
| 20 | <div class="sticky-detail"> | 20 | <div class="sticky-detail"> | |||
| 21 | <div class="product-name-area"> | 21 | <div class="product-name-area"> | |||
| 22 | <h2 class="product-name"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?></h2> | 22 | <h2 class="product-name"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?></h2> | |||
| 23 | <div class="product-info-price"></div> | 23 | <div class="product-info-price"></div> | |||
| 24 | </div> | 24 | </div> | |||
| 25 | </div> | 25 | </div> | |||
| 26 | <?php $buttonTitle = __('Add to Cart'); ?> | 26 | <?php $buttonTitle = __('Add to Cart'); ?> | |||
| 27 | <?php if ($_product->isSaleable()): ?> | 27 | <?php if ($_product->isSaleable()): ?> | |||
| 28 | <div class="actions box-tocart"> | 28 | <div class="actions box-tocart"> | |||
| 29 | <button type="button" | 29 | <button type="button" | |||
| 30 | title="<?php /* @escapeNotVerified */ echo $buttonTitle ?>" | 30 | title="<?php /* @escapeNotVerified */ echo $buttonTitle ?>" | |||
| 31 | class="action primary tocart" id="product-addtocart-button-clone"> | 31 | class="action primary tocart" id="product-addtocart-button-clone"> | |||
| 32 | <span><?php /* @escapeNotVerified */ echo $buttonTitle ?></span> | 32 | <span><?php /* @escapeNotVerified */ echo $buttonTitle ?></span> | |||
| 33 | </button> | 33 | </button> | |||
| 34 | <?php echo $block->getChildHtml('', true) ?> | 34 | <?php echo $block->getChildHtml('', true) ?> | |||
| 35 | </div> | 35 | </div> | |||
| 36 | <?php endif; ?> | 36 | <?php endif; ?> | |||
| 37 | </div> | 37 | </div> | |||
| 38 | </div> | 38 | </div> | |||
| 39 | <script type="text/javascript"> | 39 | <script type="text/javascript"> | |||
| 40 | require([ | 40 | require([ | |||
| 41 | 'jquery' | 41 | 'jquery' | |||
| 42 | ], function ($) { | 42 | ], function ($) { | |||
| 43 | $(window).on('load',function(){ | 43 | $(window).on('load',function(){ | |||
| 44 | var p_scrolled = false; | 44 | var p_scrolled = false; | |||
| 45 | var offset = $('.product.detailed').length > 0 ? $('.product.detailed').offset().top : '0'; | 45 | var offset = $('.product.detailed').length > 0 ? $('.product.detailed').offset().top : '0'; | |||
| 46 | $(window).scroll(function(){ | 46 | $(window).scroll(function(){ | |||
| 47 | if(offset < $(window).scrollTop() && !p_scrolled){ | 47 | if(offset < $(window).scrollTop() && !p_scrolled){ | |||
| 48 | p_scrolled = true; | 48 | p_scrolled = true; | |||
| 49 | $('.product-info-main .product-info-price > *').each(function(){ | 49 | $('.product-info-main .product-info-price > *').each(function(){ | |||
| 50 | $(this).parent().append($(this).clone()); | 50 | $(this).parent().append($(this).clone()); | |||
| 51 | var tmp = $(this).detach(); | 51 | var tmp = $(this).detach(); | |||
| 52 | $('.sticky-product .product-info-price').append(tmp); | 52 | $('.sticky-product .product-info-price').append(tmp); | |||
| 53 | }); | 53 | }); | |||
| 54 | $(".sticky-product").removeClass("hide"); | 54 | $(".sticky-product").removeClass("hide"); | |||
| 55 | $("#product-addtocart-button").off("DOMSubtreeModified").on("DOMSubtreeModified",function(){ | 55 | $("#product-addtocart-button").off("DOMSubtreeModified").on("DOMSubtreeModified",function(){ | |||
| 56 | $("#product-addtocart-button-clone").html($(this).html()); | 56 | $("#product-addtocart-button-clone").html($(this).html()); | |||
| 57 | $("#product-addtocart-button-clone").attr("class",$(this).attr("class")); | 57 | $("#product-addtocart-button-clone").attr("class",$(this).attr("class")); | |||
| 58 | }); | 58 | }); | |||
| 59 | } | 59 | } | |||
| 60 | if(offset >= $(window).scrollTop() && p_scrolled){ | 60 | if(offset >= $(window).scrollTop() && p_scrolled){ | |||
| 61 | p_scrolled = false; | 61 | p_scrolled = false; | |||
| 62 | $('.product-info-main .product-info-price > *').remove(); | 62 | $('.product-info-main .product-info-price > *').remove(); | |||
| 63 | $('.sticky-product .product-info-price > *').each(function(){ | 63 | $('.sticky-product .product-info-price > *').each(function(){ | |||
| 64 | var tmp = $(this).detach(); | 64 | var tmp = $(this).detach(); | |||
| 65 | $('.product-info-main .product-info-price').append(tmp); | 65 | $('.product-info-main .product-info-price').append(tmp); | |||
| 66 | }); | 66 | }); | |||
| 67 | $(".sticky-product").addClass("hide"); | 67 | $(".sticky-product").addClass("hide"); | |||
| 68 | } | 68 | } | |||
| 69 | }); | 69 | }); | |||
| 70 | $("#product-addtocart-button-clone").click(function(){ | 70 | $("#product-addtocart-button-clone").click(function(){ | |||
| 71 | $("#product-addtocart-button").trigger("click"); | 71 | $("#product-addtocart-button").trigger("click"); | |||
| 72 | }); | 72 | }); | |||
| 73 | }); | 73 | }); | |||
| 74 | }); | 74 | }); | |||
| 75 | </script> | 75 | </script> | |||
| 76 | <?php | 76 | <?php | |||
| 77 | } | 77 | } | |||
| 78 | ?> | 78 | ?> | |||
| 79 | <?php if(isset($product_view['move_tab']) && $product_view['move_tab']): ?> | 79 | <?php if(isset($product_view['move_tab']) && $product_view['move_tab']): ?> | |||
| 80 | <script type="text/javascript"> | 80 | <script type="text/javascript"> | |||
| 81 | require([ | 81 | require([ | |||
| 82 | 'jquery' | 82 | 'jquery' | |||
| 83 | ], function ($) { | 83 | ], function ($) { | |||
| 84 | $(document).ready(function(){ | 84 | $(document).ready(function(){ | |||
| 85 | $(".product.info.detailed").detach().appendTo($(".product-info-main")); | 85 | $(".product.info.detailed").detach().appendTo($(".product-info-main")); | |||
| 86 | }); | 86 | }); | |||
| 87 | }); | 87 | }); | |||
| 88 | </script> | 88 | </script> | |||
| 89 | <?php endif; ?> | 89 | <?php endif; ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.