Commit 3b8e7747 authored by Ketan's avatar Ketan

Updating changes for cropper.

parent 754d3428
...@@ -64,10 +64,10 @@ $show_custom_tab = $_config->getProductDetail('show_custom_tab'); ...@@ -64,10 +64,10 @@ $show_custom_tab = $_config->getProductDetail('show_custom_tab');
$custom_tab_name = $_config->getProductDetail('custom_tab_name'); $custom_tab_name = $_config->getProductDetail('custom_tab_name');
$customtab_content = $_config->getProductDetail('customtab_content'); $customtab_content = $_config->getProductDetail('customtab_content');
?> ?>
<?php if(!empty($product->getCustomAttribute('tile_price'))){?>
<link rel="stylesheet" type="text/css" media="all" href="//localhost/coconva2118/pub/static/version1569245418/frontend/Sm/shop4u/en_US/js/jquery.selectareas.css"> <link rel="stylesheet" type="text/css" media="all" href="//localhost/coconva2118/pub/static/version1569245418/frontend/Sm/shop4u/en_US/js/jquery.selectareas.css">
<?php if(!empty($product->getCustomAttribute('tile_price'))){?>
<script type="text/javascript"> <script type="text/javascript">
var tile_desc='<?php echo $product->getCustomAttribute('tile_price')->getValue();?>'; var tile_desc='<?php echo $product->getCustomAttribute('tile_price')->getValue();?>';
tile_desc = tile_desc.split('-'); tile_desc = tile_desc.split('-');
...@@ -77,7 +77,7 @@ $customtab_content = $_config->getProductDetail('customtab_content'); ...@@ -77,7 +77,7 @@ $customtab_content = $_config->getProductDetail('customtab_content');
</script> </script>
<?php } ?>
<style type="text/css"> <style type="text/css">
.loader { .loader {
...@@ -129,6 +129,7 @@ require([ ...@@ -129,6 +129,7 @@ require([
'selectareas' 'selectareas'
//'//localhost/coconva2118/pub/static/version1569245418/frontend/Sm/shop4u/en_US/js/jquery.selectareas.js' //'//localhost/coconva2118/pub/static/version1569245418/frontend/Sm/shop4u/en_US/js/jquery.selectareas.js'
], function (jQuery, selectareas) { ], function (jQuery, selectareas) {
jQuery('.price-final_price').html(' ');
jQuery.noConflict(); jQuery.noConflict();
if (jQuery('span:contains('+widthLabel+')').parent().next('div').children('input').length && jQuery('span:contains('+heightLabel+')').parent().next('div').children('input').length) { if (jQuery('span:contains('+widthLabel+')').parent().next('div').children('input').length && jQuery('span:contains('+heightLabel+')').parent().next('div').children('input').length) {
...@@ -313,7 +314,7 @@ jQuery('#preloader').remove(); ...@@ -313,7 +314,7 @@ jQuery('#preloader').remove();
}); });
</script> </script>
<?php } ?>
<?php if ($detailedInfoGroup = $block->getGroupChildNames('detailed_info', 'getChildHtml')): ?> <?php if ($detailedInfoGroup = $block->getGroupChildNames('detailed_info', 'getChildHtml')): ?>
<div class="product info detailed"> <div class="product info detailed">
<?php $layout = $block->getLayout(); ?> <?php $layout = $block->getLayout(); ?>
......
This diff is collapsed.
...@@ -37,11 +37,15 @@ var config = { ...@@ -37,11 +37,15 @@ var config = {
}, },
paths: { paths: {
'jquery/ui': 'jquery/jquery-ui', 'jquery/ui': 'jquery/jquery-ui',
'selectareas': 'jquery/selectareas' 'selectareas': 'jquery/selectareas',
'Croppie': 'jquery/croppie'
}, },
shim: { shim: {
'selectareas': { 'selectareas': {
deps: ['jquery'] deps: ['jquery']
},
'Croppie': {
deps: ['jquery']
} }
}, },
deps: [ deps: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment