Jump to content

xiparos

Members
  • Posts

    35
  • Joined

  • Last visited

Profile Information

  • Location
    France
  • Activity
    Developer

xiparos's Achievements

Newbie

Newbie (1/14)

3

Reputation

  1. Hi All, I've tried this method for translating terms in my separate js file, unfortunately it didn't work. Could somebody tell me it is possible to do the translation in separate js file or not, with PS1.6.0.14. After reading this post https://www.prestashop.com/forums/topic/263170-solved-translate-in-javascript/ Could I assume that the translation inside a js only works if you add <script> tags within template file? Thanks in advance for your reply.
  2. I've found the answer, $this->context->smarty->assign(array( 'isLogged' => $this->context->cookie->logged )); That will assign isLogged value in nav.tpl so that it updates its content after ajax callback
  3. I see nowhere the syntax $this->confirmations[] in PS, could you please show me an example in PS ?
  4. Perhaps @Vekia could help me figure this out ?
  5. Hi, I am dealing with the same issue , ajax login with callback. I'd like to know how do you update user info block status when a customer successfully logged in ? I've put these as callback information in processSubmitLogin() method $return = array( 'hasError' => !empty($this->errors), 'errors' => $this->errors, 'token' => Tools::getToken(false), 'lastname' => $customer->lastname, 'firstname' => $customer->firstname, 'isLogged' => true ); $this->ajaxDie(Tools::jsonEncode($return)); How could I inform nav.tpl that isLogged= true, so that it updates its content ? Thanks in advance for your reply. Best Regards
  6. Hi, I'd like to know anyone has already figured it out ?
  7. Hi All, I've read theses posts. https://www.prestashop.com/forums/topic/278900-how-to-use-ajax-call-in-a-moduleto-check-whether-the-mobile-phone-number-already-exists/ https://www.prestashop.com/forums/topic/184413-ccc-custom-css-and-js/ It related to ajax callback in tpl file. following the first post, I've successfully made a ajax callback in a tpl file in a module. Now I want to go further, with regard to CCC performance of the site. How could I put ajax callback function into a separate xxx.js file, which will be called by tpl file, ( not the way illustrated in second post ), more intuitively, the separated xxx.js file called by tpl file would be moved to the footer of the site so that all js files would be CCC by Prestashop into a single js file. Does anyone already made this ? Thanks for your reply. Best Regards
  8. Hi, SirPresta, I wonder to know whether there is a "coding" way to deal with this. 'cause I have to click every item in "displayLeftColumn" section to add exception in cms page, it's repeated job. Cheers,
  9. Hi All, I give my feedback. It's a bug related to PS 1.6.0.11, I wish it's been already fixed in PS 1.6.0.13. The bug existed in /controllers/admin/AdminThemesController.php line 260. https://github.com/PrestaShop/PrestaShop/commit/3047ee0b3246cb1270a8fbfc51a19de2563da7ad replace the green part with the red part, refresh the admin page and the problem will be resolved. PS: The author from whom I bought the Theme kindly pointed this out, even it's not his job to take charge of fixing such kind of problem. He is very responsible for after sale support, I really appreciate it. Anyone interested in a easily used, powerful all integrated extensible theme can PM me for more details. Cheers
  10. Hi Shri, Thanks for your reply. I used a paid theme in which cms page is not shown in the page list of Appearance of columns. I'll ask the theme author for help. One more question, as you said, I should untick left column of all other pages in Appearance of columns, but not only cms block, there are also other modules hooked in left column. In this case, how should I display only cms block, without other hooked module in left column in cms page ? Best Regards
  11. Hi Prestashop Members, I've searched and tried so many methods to display CMS blocks on the left column of CMS page but of no avail. 1.Preference -> CMS -> Edit CMS block to left column -> OK But it displayed on the left column of the main page. 2. Preference -> Theme -> advanced settings -> Appearance of columns , I tried to find out CMS page but there is no such page to enable left column. Could someone tell me how to display cms block only on the left column of the cms page, but not the other pages ? Thanks in advance for your reply. Best Regards
  12. OK, it's been resolved. My bad... I should turn on the option : Force all ID numbers This will force id numbers as-is in tables, otherwise ps will generate auto-incremented ID for each imported category. For anyone who encountered the same problem. Topic marked as Resolved.
  13. Hi, Prestashop Members, I have a question related to categories import in 1.6.0.11. I'd like to import categories in multi languages, say English and French. The categories structure is defined as below: *Home (Category ID 2) *Cosmetics (SubCategory ID 3) - subsubcategoryA (ID 10) - subsubcategoryB (ID 11) - subsubcategoryC (ID 12) - ..... * Accueil (Category ID 2) * Cosmétiques (SubCategory ID 3) - sousouscatégorieA (ID 10) - sousouscatégorieB (ID 11) - sousouscatégorieC (ID 12) - ..... The problem is after importing categories in 2 languages, I got both "Cosmetics"(ID 3) and "Cosmétiques (ID 4)" as new category in ps_category_lang table, +-------------+---------+---------+-------------+ | id_category | id_shop | id_lang | name | +-------------+---------+---------+-------------+ | 47 | 1 | 1 | Cosmétique | | 47 | 1 | 2 | Cosmétique | | 47 | 1 | 4 | Cosmétique | | 56 | 1 | 1 | Cosmetics | | 56 | 1 | 2 | Cosmetics | | 56 | 1 | 4 | Cosmetics | +-------------+---------+---------+-------------+ What's expected should be +-------------+---------+---------+-------------+ | id_category | id_shop | id_lang | name | +-------------+---------+---------+-------------+ | 47 | 1 | 1 | Cosmetics | | 47 | 1 | 2 | Cosmétique | | 47 | 1 | 4 | Cosméticos | +-------------+---------+---------+-------------+ In my csv file, say category_en.csv and category_fr.csv, both ID column have been set. like EN +-------------+------------+------------+-------------+ | ID | Active(0/1)| Name | Parent | +-------------+------------+------------+-------------+ | 3 | 1 | Cosmetics | Home | | 4 | 1 | xxxx | Home | | 5 | 1 | xxxxx | Home | +-------------+------------+-------------+-------------------+ FR +-------------+------------+--------------+-------------+ | ID | Active(0/1)| Name | Parent | +-------------+------------+--------------+-------------+ | 3 | 1 | Cosmetique | Accueil | | 4 | 1 | xxxx | Accueil | | 5 | 1 | xxxxx | Accueil | +-------------+------------+--------------+--------------+ PS: This 2 csv file works when they are imported in shop combined with sample data, the sample data will just be overridden in case of same category ids, however, it seems no longer work after wiping out all sample data, importing categories from scratch. Any one has a suggestion ? Thanks in advance. Best Regards
  14. Crezzur, Thanks again for your answer, it helps me a lot. Best,
×
×
  • Create New...