Jump to content

cactusman2

Members
  • Posts

    278
  • Joined

  • Last visited

Profile Information

  • Activity
    Agency

cactusman2's Achievements

Newbie

Newbie (1/14)

10

Reputation

  1. In PS 1.4.10 in Controllers/AuthController.php line 49 replace: elseif (Customer::customerExists($email, false, false)) by elseif (Customer::customerExists($email, false, true)) in same file line 135 replace: if (Customer::customerExists(Tools::getValue('email'), false, (Configuration::get('PS_GUEST_CHECKOUT_ENABLED') && Tools::getValue('is_new_customer') == 0))) by if (Customer::customerExists(Tools::getValue('email'), false, true)) It seems to work, thanks to confirm
  2. In PS 1.4.10 in Controllers/AuthController.php line 49 replace: elseif (Customer::customerExists($email, false, false)) by elseif (Customer::customerExists($email, false, true)) in same file line 135 replace: if (Customer::customerExists(Tools::getValue('email'), false, (Configuration::get('PS_GUEST_CHECKOUT_ENABLED') && Tools::getValue('is_new_customer') == 0))) by if (Customer::customerExists(Tools::getValue('email'), false, true)) It seems to work, thanks to confirm
  3. Hi, I will try to explain as good as I can. You will have first to set the variable in the php file. In my case I wanted to use the 'currency2' cookie to the cart page so I set up a new php variable from the cookie 'currency2' in classes/Cart.php $other_currency = $cookie->currency2; $currency2 = new Currency($other_currency); Then in the corresponding js file you can use those variable. Note that it's not something easy to do. Also you might have to modify other files and create new function depending of what you want to obtain. In my case I need the cookie 'currency2' to calculates all prices with a different currency so more modification were involved + the addition of a new function.
  4. Hi, I don't see the code I gave in to your mobile version. Did you clear the smarty cache? If not go the folder tools/smarty/compile and delete everything except the file index.php
  5. With Paypal it should work as the file themes/prestashop_mobile/modules/paypal/views/templates/front/order-confirmation.tpl is there. However for other payment modules you will have to add the confirmation template file to the mobile theme. Note that if a customer does not come back to the website after the payment is completed the order won't be counted in GA. This problem is for both normal version and mobile version. I have this problem with the 2Checkout module. What I did is set up a custom report counting unique visitors arriving to the payment page. It's pretty accurate as not many customers stop the order process at this step.
  6. By default Google Analytics is not integrated to the mobile version even if the GG Analytics module is activated in the back office. Also simply add the Google Analytics code on the template file header.tpl won't work because the mobile theme use mobile jQuery. However there is a solution to adapt the GG Analytics code to mobile jQuery explained here: http://www.jongales....-jquery-mobile/ So in order to add Google Analytics to the mobile theme... - in themes/prestashop_mobile/header.tpl just before </head> add {literal} <script type="text/javascript"> var _gaq = _gaq || []; (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> {/literal} - in themes/prestashop_mobile/footer.tpl just before </body> add {literal} <script type="text/javascript"> $('[data-role=page]').live('pageshow', function (event, ui) { try { _gaq.push(['_setAccount', 'YOUR GG ANALYTICS ID']); hash = location.hash; if (hash) { _gaq.push(['_trackPageview', hash.substr(1)]); } else { _gaq.push(['_trackPageview']); } } catch(err) { } }); </script> {/literal} Remember to replace YOUR GG ANALYTICS ID by your Google Analytics id!
  7. J'ai trouvé une solution ! En fait c'est du à mobile jQuery. La solution est expliquée ici: http://www.jongales....-jquery-mobile/ - dans themes/prestashop_mobile/header.tpl juste avant </head> ajouter {literal} <script type="text/javascript"> var _gaq = _gaq || []; (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> {/literal} - dans themes/prestashop_mobile/footer.tpl juste avant </body> ajouter {literal} <script type="text/javascript"> $('[data-role=page]').live('pageshow', function (event, ui) { try { _gaq.push(['_setAccount', 'VOTRE ID GG ANALYTICS']); hash = location.hash; if (hash) { _gaq.push(['_trackPageview', hash.substr(1)]); } else { _gaq.push(['_trackPageview']); } } catch(err) { } }); </script> {/literal} Pensez bien à remplacer VOTRE ID GG ANALYTICS par votre identifiant Google Analytics !
×
×
  • Create New...