Jump to content

cristidam

Members
  • Posts

    16
  • Joined

  • Last visited

About cristidam

  • Birthday 04/03/1985

Profile Information

  • Location
    ROMANIA
  • Activity
    Freelancer

Recent Profile Visitors

2,809,096 profile views

cristidam's Achievements

Newbie

Newbie (1/14)

  • Reacting Well Rare
  • Conversation Starter Rare
  • First Post Rare
  • Collaborator Rare
  • Week One Done Rare

Recent Badges

7

Reputation

  1. Hi, Thank you. This works fine, it's just that it's a lot of work to modify the decimal style everywhere. I was wondering if there is a way to add the <sup> element directly where the $product.price is formatted, I just can't find the file. Thank you!
  2. Hello, I would like to display the price decimals in the following style: I have updated classes/Tools.php, by adding <sup> tag to the decimals, but on the frontend the html gets converted to text an it shows 499<sup>00</sup>. I have found an older post that gives a solution but it's for PS 1.6. https://www.prestashop.com/forums/topic/557593-productprice-smaller-font-behind-the-comma/ Can someone help me with this issue? Thank you!
  3. Hello, The override works fine in Prestashop 1.7 but 100<sup>70</sup> is displayed. Where should I make the javascript changes (text->html) because product.js is no longer in PS 1.7? Thank you!
  4. Hi, I have a Prestashop 1.7.3 instalation with 2 languages. In the backoffice, when i want to view Catalog->Products having the English language selected i get for product name "N/A" (i assume it's because my default language is Romanian - it would have been nice to auto translate the product name). So i changed the users language to Romanian and now i get a 500 error when i want to access Catalog->Products, and a few other menus. It's strange that most of the backoffice links works fine. I tried clearing the cache(from backoffice and manually from /app/cache) and increasing max execution time but with no luck. I enabled dev mode and i get the error - RuntimeException in Translator.php line 405: The "xlf_orig" translation loader is not registered.
  5. Hi, Did you find a module for your request? I need the same thing on my website.
  6. Hi, First of all i would like to thank you for not giving me the code instantly, this way i have learned a little javascript I used the following code which seems to work well on my website: <script type="text/javascript"> {literal} $('document').ready( function(){ if ($('#cgv:checked').length !== 1) { $('#cgv').click(); } }); {/literal} </script> I would like to ask you to verify if the code syntax and logic is corect. Thank you!
  7. Hi, I am using v 1.6.1.6 and your solution works well. thank you. As i expected, when the page is reloded or if the user needs to sign in (the page gets reloaded) the script unchecks the box so i think that for a perfect solution an if statment would be required. Unfortunately i don't have programing skills, but logically it should be something like this: if (#cgv) = unchecked then run ($('#cgv').click()) else (do nothing). Thank you!
  8. Hi, The checkbox is checked with this script, but the payment methods do not appear. I have to manually uncheck it, then check it again for the payment methods to show up, Can anyone help?
  9. Hi, For Prestashop 1.6.0.9 force currency in frontend. /public_html/classes/tools.php Replace line 431 $currency = Currency::getCurrencyInstance((int)$cookie->id_currency); with $currency = Currency::getCurrencyInstance((int)$cookie->id_currency=2); Replace line 433 $currency = Currency::getCurrencyInstance(Configuration::get('PS_CURRENCY_DEFAULT')); with $currency = Currency::getCurrencyInstance(Configuration::get('id_currency')); It works on my website.
  10. Hi, I just configures the "stores" page, Everything is ok, except that when i search for the nearest stores after i input my location and the radius, the stores show up correctly but the distance to the store is point-to-point distance. Is it possible to configure the page so that it provides driving distances? I don't believe anyone will come to the stores with an airplane so it would be nice to show the driving distance.
  11. Hi, I just noticed that when a customer creates a new account using the "one page checkout" page(order-opc-new-account.tpl) only the "company" field shows up without SIRET,APE and Website(translated to romanian requirments Siret-CUI/APE-Nr. Reg. comertului/ Website-Cont bancar) like in the defaul registration page(authentication.tpl) so i copied the following lines from "authentication.tpl" to "order-opc-new-account.tpl" to line 506: {if $b2b_enable} <div class="account_creation"> <h3 class="page-subheading">{l s='Your company information'}</h3> <p class="form-group"> <label for="">{l s='Company'}</label> <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" /> </p> <p class="form-group"> <label for="siret">{l s='SIRET'}</label> <input type="text" class="form-control" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}" /> </p> <p class="form-group"> <label for="ape">{l s='APE'}</label> <input type="text" class="form-control" id="ape" name="ape" value="{if isset($smarty.post.ape)}{$smarty.post.ape}{/if}" /> </p> <p class="form-group"> <label for="website">{l s='Website'}</label> <input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}" /> </p> </div> Everything seems to work fine but i am not a coder so i wanted to ask if someone could verify if this workaround is correct or if there is a better solution? Thank You!
  12. Hi, Thank you for the provided solution. I have no sql knowledge so please tell me if this is corect: phpmysql>database>ps_customer>indexes>ape>changed the value from 5 to 13(as i needed). all 13 characters show up now in the backend but i just wanted to ask you if i need to do anything else? Thank you!
  13. Hi, I am having problems with the ape length in the backend. I sorted out the translation and the validation issues by adding the following code both for SIRET and APE in the validate.php file public static function isSiret($siret) { if (Tools::strlen($siret) != 100) return true; } public static function isApe($ape) { if (Tools::strlen($ape) != 100) return true; } Both SIRET and APE are accepted when registering but in the backend i can only see the first 5 characters for APE instead of the 13 characters that i typed when registering.
×
×
  • Create New...