Skip to main content

Posts

Showing posts from June, 2017

Magento 2 upgrade 2.1.4 to 2.1.7 process

Use below command to update MAGENTO 2 version from old version to latest version from  root directory. I ended up trying to do the upgrade from the command line and it worked 1>  composer require magento/product-community-edition 2.1.7 --no-update 2> composer update 3> php bin/magento setup:upgrade

How to put the code google remarketing

 View.phtml Paste the below code on your product view template. You can find the file inside the catalog folder. <? php $_product = Mage :: registry ( "current_product" );?> <? php if ( $_product && $_product -> getId ()): ?> <script> dataLayer . push ({ "event" : "fireRemarketingTag" , "google_tag_params" : { "ecomm_prodid’: " <? php echo $_product -> getSku (); ?> ", "ecomm_pagetype’: " product ", "ecomm_totalvalue’: <? php echo $_product -> getfinalprice (); ?> } }); </script> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = XXXXXXXXXXX; var google_custom_params = window.google_tag_params; var google_remarketing_only = true; /* ]]> */ </script> <script type="text/javascript" src="// www.googleadservices.com/pagead/conversion.js ">