Produced by Araxis Merge on 2021-05-13 09:09:16 +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 | 2021-05-13 09:09:16 +0000 | ||
| 2 | /Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/WeltPixel_Quickview/templates/product/view | addtocart.phtml | 2021-02-22 03:05:22 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 76 |
| 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 | |||||
| 2 | // @codingStandardsIgnoreFile | |||||
| 3 | ||||||
| 4 | /** @var $block \Magento\Catalog\Block\Product\View */ | |||||
| 5 | ?> | |||||
| 6 | <?php $_product = $block->getProduct(); ?> | |||||
| 7 | <?php $buttonTitle = __('Add to Cart'); ?> | |||||
| 8 | <?php if ($_product->isSaleable()): ?> | |||||
| 9 | <div class="box-tocart"> | |||||
| 10 | <div class="fieldset"> | |||||
| 11 | <?php if ($block->shouldRenderQuantity()): ?> | |||||
| 12 | <div class="field qty"> | |||||
| 13 | <label class="label" for="qty"><span><?php /* @escapeNotVerified */ echo __('Qty') ?></span></label> | |||||
| 14 | <div class="control"> | |||||
| 15 | <input type="number" | |||||
| 16 | name="qty" | |||||
| 17 | id="qty" | |||||
| 18 | maxlength="12" | |||||
| 19 | value="<?php /* @escapeNotVerified */ echo $block->getProductDefaultQty() * 1 ?>" | |||||
| 20 | title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" | |||||
| 21 | data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>" | |||||
| 22 | /> | |||||
| 23 | <div class="qty-changer"> | |||||
| 24 | <a href="javascript:void(0)" class="qty-inc"><i class="porto-icon-up-dir"></i></a> | |||||
| 25 | <a href="javascript:void(0)" class="qty-dec"><i class="porto-icon-down-dir"></i></a> | |||||
| 26 | </div> | |||||
| 27 | </div> | |||||
| 28 | </div> | |||||
| 29 | <?php endif; ?> | |||||
| 30 | <div class="actions"> | |||||
| 31 | <button type="submit" | |||||
| 32 | title="<?php /* @escapeNotVerified */ echo $buttonTitle ?>" | |||||
| 33 | class="action primary tocart" | |||||
| 34 | id="product-addtocart-button"> | |||||
| 35 | <span><?php /* @escapeNotVerified */ echo $buttonTitle ?></span> | |||||
| 36 | </button> | |||||
| 37 | <?php echo $block->getChildHtml('', true) ?> | |||||
| 38 | </div> | |||||
| 39 | </div> | |||||
| 40 | </div> | |||||
| 41 | <?php endif; ?> | |||||
| 42 | <?php if ($block->isRedirectToCartEnabled()) : ?> | |||||
| 43 | <script type="text/x-magento-init"> | |||||
| 44 | { | |||||
| 45 | "#product_addtocart_form": { | |||||
| 46 | "Magento_Catalog/product/view/validation": { | |||||
| 47 | "radioCheckboxClosest": ".nested" | |||||
| 48 | } | |||||
| 49 | } | |||||
| 50 | } | |||||
| 51 | </script> | |||||
| 52 | <?php else : ?> | |||||
| 53 | <script> | |||||
| 54 | require([ | |||||
| 55 | 'jquery', | |||||
| 56 | 'mage/mage', | |||||
| 57 | 'Magento_Catalog/product/view/validation', | |||||
| 58 | 'Magento_Catalog/js/catalog-add-to-cart' | |||||
| 59 | ], function ($) { | |||||
| 60 | 'use strict'; | |||||
| 61 | ||||||
| 62 | $('#product_addtocart_form').mage('validation', { | |||||
| 63 | radioCheckboxClosest: '.nested', | |||||
| 64 | submitHandler: function (form) { | |||||
| 65 | var widget = $(form).catalogAddToCart({ | |||||
| 66 | bindSubmit: false | |||||
| 67 | }); | |||||
| 68 | ||||||
| 69 | widget.catalogAddToCart('submitForm', $(form)); | |||||
| 70 | ||||||
| 71 | return false; | |||||
| 72 | } | |||||
| 73 | }); | |||||
| 74 | }); | |||||
| 75 | </script> | |||||
| 76 | <?php endif; ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.