Jump to content

Cata100

Members
  • Posts

    18
  • Joined

  • Last visited

1 Follower

About Cata100

  • Birthday 07/12/1981

Profile Information

  • Activity
    Freelancer

Cata100's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Salutare, - desi este o versiune mai veche am avut o problema recenta cu un magazin construit pe platforma 1.5.6 si am fost ajutat de comunitatea Prestashop (forumul in engleza) iar un coleg din comunitatea Prestashop din Romania, participant activ al acestui forum si in dezvoltarea comunitatii de Prestashop in Romania m-a rugat sa postez acel fix si pe formulul de aici Despre ce este vorba: - in versiunea 1.5.x limba implicita (default) in siteurile cu mai multe limbi, chiar daca este setata romana (spre exemplu un site cu limbile romana si engleza) - homepageul/pagina de start nu merge pe varianta de limba selectata ci merge pe varianta de limba implicita a browserului - de exemplu: daca limba setata este RO iar browserul are limba setata pe ENG - cand se intra pe site...se duce automat pe varianta in engleza a siteului...ceea ce este destul de frustrant caci cei cu magazine in Romania si cu alte limbi pentru site, celalalte limbi sunt doar pentru strainii din Romania sau pentru SEO etc. chiar daca nu e magazin cu vanzari internationale iar limba engleza este prea putin importanta si in acest caz in care majoritatea vizitatorilor sunt din RO e normal ca atunci cand se acceseaza siteul sa mearga pe varianta in RO - din fericire versiunea 1.6 ofera posibilitatea modificarii acestei optiuni direct din setarile Presta fix: Modified classes/Tools.php @line 345 //ensure autodetect does not fire... if (isset($cookie->detect_language)) //elpatron unset($cookie->detect_language); //elpatron daca doriti sa urmariti tot topicul de pe forumul EN - puteti accesa https://www.prestashop.com/forums/topic/559283-prestashop-156-default-language-bug/ multumesc inca o data si pe aceasta cale lui El Patron pentru ajutor pentru solutionarea problemei
  2. Hello El Patron, - thanks a lot for the help, it works like a charm, yes indeed it is working as i desired - my browser from android it still shows the english version perhaps it remained in cache but the rest of them chrome, firefox, edge is showing the right language Thank you again, Cata p.s i don't know how to close this topic
  3. El Patron, thank you for the solution proposed, i was able to change that parameter in cookie.php , //checks if the language exists, if not choose the default language if (!$this->_standalone && !Language::getLanguage((int)$this->id_lang)) { $this->id_lang = Configuration::get('PS_LANG_DEFAULT'); // set detect_language to force going through Tools::setCookieLanguage to figure out browser lang $this->detect_language = false; - i have also renamed cache/class_index.php which, indeed it was better to rename it because a new one was generated automatticaly but as far i can see the situation is the same (Note: i have erased individual cookies from my firefox browser too, and also tried in incognito/private mode) is something that i did wrong? do i have to do soemthing else in addition? or any other recommendations are welcome Thank you, Cata
  4. Thnak you El Patron for the fast reply, well then it is not a bug, i can see that it is a normal behavior, but help me please to be abnormal How can i do to set the default language as romanian, and whatever is the browser, device etc. to go to the romanian language when they reach the homepage of the website http://www.minimecraft.ro for some website in 1.6 i could see that they are able to redirect the homepage to websitename.ro/ro (and if i am doing the redirect from / to minimecraft.ro/ro i am getting errors) i need a solution for this situation Thank you, Cata
  5. Hello, I am still struggle with the default language problem in Prestashop 1.5.6 - the website is http://www.minimecraft.ro , the default language is romanian, (http://www.minimecraft.ro/ro is the romanian site, and www.minimecraft.ro/en - the enlglish version) - now the romanian language is set as default but in some browsers firefox, edge etc. if the browser's language is english...the default URL http://www.minimecraft.ro it is set to romanian and it points to the english version by default, it go to http://www.minimecraft.ro but it shwows the english version ( - in presta , at localization/configuration, everything is set in romanian - see attachment - i cannot disable the english version at all because all the links will be broken - please help me with a fix for this problem Thank you! Catalin
  6. Hello guys, keep up the good work, thank you for your response but unfortunatelly the solution you have find it is not working for us we have input this script <script> var uploading_in_progress = "{l s='Uploading in progress, please be patient.' js=1}"; </script> - into product tpl before any html tag but it is not working it remain the same problem - still loading and nothing happens...even if the files to be uploaded are small size...few kb - to see about the problem you can check the website www.minimecraft.ro and open it from a mobile device (you'll be redirected to the mobile version) - and when trying to place an order...uploading photos are required but something is breaking the process and the whole mobile version is useless for us if we can't find a solution to solve this thank you!
  7. Hello, I currently use Prestashop 1.5.6. I set up 2 customizable fields for my products (images and text) which are working just fine on desktop version. The problem is that on mobile version these fields doesn’t appear so I copied the section with this form from product.tpl (desktop version) to product.tpl (mobile version). I also included product.js file. Now the fields appear, but when I press save I only get a rolling gif. And if i press “Add to cart” I get an error message for not completing required fields and that means the files are not uploaded. saveCustomization() function doesn’t throw any error in my console while running. The only error is: product.js:555 Uncaught ReferenceError: uploading_in_progress is not defined — which shouldn’t affect the upload process, it’s just a text variable which should be append to an html tag. Any idea what could be wrong? Thank you!
  8. it's clear enough i think that are buttons with links and that's it, multistore allow you to use other domains but the files for it should be on the main site server. That selection is made with custom css i think ( from http://www.safetylightsandsignals.com/ ) , i hope it helped, good luck!
  9. @chrysophylax thanks i have tried like that but the prices aren't shown correctly @Vekia you are the only one who knows how to solve this i am asking how to set these parameters... and regarding the pages, i am using onepage checkout and the redirect and confirmation page (thank you page) i think it is the same for all methods, what can be different? COD vs wire transfer vs CC, am i not using (COD and wire transfer) i am only using services provided by PAYU ( CC payment, paypal, and some instalments payments) tks a lot
  10. Hello there, thank you Vekia for finding solutions for every problem and keeping this tpic live, can you help me please? I am stuck with the pixel implementation. I am using 1.5.6.0 with one page checkout. The pixel is created for checkout confirmation, i want to do it like this, the cart price contains the total order price, product + shipping + taxes and I wnat to pay the ad only when the users rich to the checkout page ( I have red all the other threads but couldn't find a solution for this matter...just to implement the default checkout fb pixel, nothing more) 1. I have added that code you suggested for the OrderConfirmationController.php file above that specific line $order = new Order($this->id_order); $cart = new Cart($order->id_cart); $description=""; foreach ($cart->getProducts() AS $k=>$v){ $description.=$v['name']."X".$v['quantity']; } $description=urlencode($description); $this->context->smarty->assign(array( 'total_to_pay'=>$order->getOrdersTotalPaid(), 'description'=>$description )); 2. but the Facebook code seems to be different and I don;t know what to change to it For testing i have added COD payment method and wire transfer (regularry I dont use this just for tsting now) and for these and any other payment methods I am receving blank page confirmation the facebook code look like this(where the xxxxxxxxxx is the tracking id- i'll replace it with the real one): I even placed the "Facebook Pixel Helper" an addon for chrome to see if the code is implemented wright <!-- Facebook Conversion Code for Checkout - MiniMeCraft --> <script>(function() { var _fbq = window._fbq || (window._fbq = []); if (!_fbq.loaded) { var fbds = document.createElement('script'); fbds.async = true; fbds.src = '//connect.facebook.net/en_US/fbds.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(fbds, s); _fbq.loaded = true; } })(); window._fbq = window._fbq || []; window._fbq.push(['track', 'XXXXXXXXXXXXXXXXXX', {'value':'0.00','currency':'RON'}]); </script> <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=XXXXXXXXXXXXXXXXXX&cd[value]=0.00&cd[currency]=RON&noscript=1" /></noscript> I have replaced the value 0.00 with {$total_to_pay} , but in this fb the variables it looks different than previuos verisions, I have tried everything and I an still get blank page and the code is still unverified ( I have tried to verify it by placing many orders after i have implemented the code) please help I don't know what else to try (I don't need an extra module for this) What is wrong or how can I do this to work?Thanks a lot!
  11. Guys can you help a little bit please?! it is not normal to pay for some module to insert a piece of code in the Prestashop platform, can anyone help with thise please? thanks in advance
  12. Can anyone help with the Facebook pixel tracking code? thank you!
  13. Hello there, thank you Vekia for finding solutions for every problem and keeping this tpic live, can you help me please? I am stuck with the pixel implementation. I am using 1.5.6.0 with one page checkout. The pixel is created for checkout confirmation, i want to do it like this, the cart price contains the total order price, product + shipping + taxes and I wnat to pay the ad only when the users rich to the checkout page ( I have red all the other threads but couldn't find a solution for this matter...just to implement the default checkout fb pixel, nothing more) 1. I have added that code you suggested for the OrderConfirmationController.php file above that specific line $order = new Order($this->id_order); $cart = new Cart($order->id_cart); $description=""; foreach ($cart->getProducts() AS $k=>$v){ $description.=$v['name']."X".$v['quantity']; } $description=urlencode($description); $this->context->smarty->assign(array( 'total_to_pay'=>$order->getOrdersTotalPaid(), 'description'=>$description )); 2. but the Facebook code seems to be different and I don;t know what to change to it For testing i have added COD payment method and wire transfer (regularry I dont use this just for tsting now) and for these and any other payment methods I am receving blank page confirmation the facebook code look like this(where the xxxxxxxxxx is the tracking id- i'll replace it with the real one): I even placed the "Facebook Pixel Helper" an addon for chrome to see if the code is implemented wright <!-- Facebook Conversion Code for Checkout - MiniMeCraft --> <script>(function() { var _fbq = window._fbq || (window._fbq = []); if (!_fbq.loaded) { var fbds = document.createElement('script'); fbds.async = true; fbds.src = '//connect.facebook.net/en_US/fbds.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(fbds, s); _fbq.loaded = true; } })(); window._fbq = window._fbq || []; window._fbq.push(['track', 'XXXXXXXXXXXXXXXXXX', {'value':'0.00','currency':'RON'}]); </script> <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=XXXXXXXXXXXXXXXXXX&cd[value]=0.00&cd[currency]=RON&noscript=1" /></noscript> I have replaced the value 0.00 with {$total_to_pay} , but in this fb the variables it looks different than previuos verisions, I have tried everything and I an still get blank page and the code is still unverified ( I have tried to verify it by placing many orders after i have implemented the code) please help I don't know what else to try (I don't need an extra module for this) What is wrong or how can I do this to work?Thanks a lot!
  14. problem soved! instead using a static page link such as http://www.minimecraft.ro/ro/content/9-promotii.html as I used before, if you want to use a CMS page use this function getPageLink('cms.php?id_cms=9') where 9 is my id for my CMS page, you can check your specific id in your CMS module <li id="header_promotii"><a href="{$link->getPageLink('cms.php?id_cms=9')}" title="{l s='Promotions' mod='blockpermanentlinks'}" {if $page_name=='9-promotii'}class="active"{/if}>{l s='Promotions' mod='blockpermanentlinks'}</a></li> Have a great day!
  15. Hello, I have the same question, please answer, I am using Prestashop 1.5.6, I have found how to manage the links on top menu (header - not the main menu which is using the horizontal top menu module), I have added a custom link (to promotions for example whic is pointing to the promotions page) blockpermanentlinks-header.tpl and I have a problem, I have translated it also in the Installed modules translations but IF I am changing the languages the trasnlations are shown well but even if the language is changed - the link is the same if I am using a static page not getPageLink in php because i donțt how to use that function to get a link from HTML page and automatically change the language - thanks! <!-- Block permanent links module HEADER --> <ul id="header_links"> <li id="header_link_home"><a href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}" {if $page_name=='index'}class="active"{/if}>{l s='Home' mod='blockpermanentlinks'}</a></li> <li id="header_promotii"><a href=http://www.minimecraft.ro/ro/content/9-promotii title="{l s='Promotions' mod='blockpermanentlinks'}" {if $page_name=='9-promotii'}class="active"{/if}>{l s='Promotions' mod='blockpermanentlinks'}</a></li> <li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap.php')}" title="{l s='Sitemap' mod='blockpermanentlinks'}" {if $page_name=='sitemap'}class="active"{/if}>{l s='Sitemap' mod='blockpermanentlinks'}</a></li> <li id="header_link_contact"><a href="{$link->getPageLink('contact.php', true)}" title="{l s='contact' mod='blockpermanentlinks'}" {if $page_name=='contact-form'}class="active"{/if}>{l s='Contact' mod='blockpermanentlinks'}</a></li> </ul>
×
×
  • Create New...