cactusman2
Members-
Posts
278 -
Joined
-
Last visited
Profile Information
-
Activity
Agency
cactusman2's Achievements
Newbie (1/14)
10
Reputation
-
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
-
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
- 14 replies
-
- guest
- guest checkout
-
(and 2 more)
Tagged with:
-
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.
-
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.
-
Nouveaux modérateurs pour le forum francophone
cactusman2 replied to Xavier du Tertre's topic in Discussion générale
Vous êtes bien courageux... En tout cas merci à vous -
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!
-
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 !