Usunięto pliki .DS_Store z katalogu autoload oraz front; dodano opakowanie kodu JavaScript w funkcję jQuery dla lepszej organizacji.
This commit is contained in:
BIN
autoload/.DS_Store
vendored
BIN
autoload/.DS_Store
vendored
Binary file not shown.
BIN
autoload/front/.DS_Store
vendored
BIN
autoload/front/.DS_Store
vendored
Binary file not shown.
@@ -255,22 +255,24 @@
|
|||||||
<script class="footer" type="text/javascript" src="/libraries/fancybox3/js/wheel.js"></script>
|
<script class="footer" type="text/javascript" src="/libraries/fancybox3/js/wheel.js"></script>
|
||||||
<script class="footer" type="text/javascript" src="/plugins/OwlCarousel/owl.carousel.js"></script>
|
<script class="footer" type="text/javascript" src="/plugins/OwlCarousel/owl.carousel.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<? if ( $this -> settings['google_tag_manager_id'] ):?>
|
$(function(){
|
||||||
dataLayer.push({ ecommerce: null });
|
<? if ( $this -> settings['google_tag_manager_id'] ):?>
|
||||||
dataLayer.push({
|
dataLayer.push({ ecommerce: null });
|
||||||
event: "view_item",
|
dataLayer.push({
|
||||||
ecommerce: {
|
event: "view_item",
|
||||||
items: [
|
ecommerce: {
|
||||||
{
|
items: [
|
||||||
item_id: "<?= $this -> product -> id;?>",
|
{
|
||||||
item_name: "<?= str_replace( '"', '', $this -> product -> language['name'] );?>",
|
item_id: "<?= $this -> product -> id;?>",
|
||||||
price: '<? if ( $this -> product -> price_brutto_promo ): echo \S::normalize_decimal( $this -> product -> price_brutto_promo ); else: echo \S::normalize_decimal( $this -> product -> price_brutto ); endif;?>',
|
item_name: "<?= str_replace( '"', '', $this -> product -> language['name'] );?>",
|
||||||
quantity: 1
|
price: '<? if ( $this -> product -> price_brutto_promo ): echo \S::normalize_decimal( $this -> product -> price_brutto_promo ); else: echo \S::normalize_decimal( $this -> product -> price_brutto ); endif;?>',
|
||||||
}
|
quantity: 1
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
});
|
}
|
||||||
<? endif;?>
|
});
|
||||||
|
<? endif;?>
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<script class="footer" type="text/javascript">
|
<script class="footer" type="text/javascript">
|
||||||
$( function ()
|
$( function ()
|
||||||
|
|||||||
Reference in New Issue
Block a user