Jump to content

patrmich

Members
  • Posts

    362
  • Joined

  • Last visited

Everything posted by patrmich

  1. Hello, I deactivate a product of which position in a category is 20 (for example) If if activate again the product, its position will be 1. Is there a way to reactivate a product and keeping its original position ? I thank you in advance for any reply. Patrick
  2. Hello, Thank you very much for your posts. This evening I used the php file several times. Everything worked well But, later on, I made a mistake in the array content. I put a comma at the beginning of the list, such as $get_orders = array(,11201,11202,11205,11210); When running the php file, I got an error. I deleted the comma, but now when running the php file I am always getting a blank page. Would you know what happened ? I hope I did not alter anything important in the data base. I thank again for your help. Patrick
  3. Hi I thank you very much for your kind reply. 1- I would like to change the state of a list of orders, according to the id_order value. The id_order list could be as follows : 10201, 10202, 10204, 10206, 10310,... In your script where could I add this list ? 2- In your script, you assume that the previous state is equal to 4 $old_order_state = 4; In fact the previous value could have different value, such as 4 or 5 for instance. I thank you again in advance for any reply. Patrick
  4. Hello, My shop is built with Prestashop 1.5.6.2. I would like to use an SQL UPDATE query to do the following : 1-Change the state of a list of orders to state 100 (100 is the state related to shipped order) So, in the ps_orders Table, I need to update the current_state value to 100 This first part is easy. 2- But, I would like also to do simultaneously the following : - create entries in the ps_order_history table as follows : id_order_history : a value to be incremented for each new entry id_employee : always the same, as 0, for instance id_order : list to be included in the query id_order_state : 100 date-add : the current date Would anyone know how to make this query ? I thank you in advance for any reply. Patrick
  5. Hello, My shop is built with Prestashop 1.56.2. I would like to use an SQL UPDATE query to do the following : 1-Change the state of a list of orders to state 100 (100 is the state related to shipped order) So, in the ps_orders Table, I need to update the current_state value to 100 This first part is easy. 2- But, I would like also to do simultaneously the following : - create entries in the ps_order_history table as follows : id_order_history : a value to be incremented for each new entry id_employee : always the same, as 0, for instance id_order : list to be included in the query id_order_state : 100 date-add : the current date Would anyone know how to make this query ? I thank you in advance for any reply. Patrick
  6. Hello, Is it possible to use this module : - on Prestashop 1.5.6.2 - in order to scroll the Product Images on the Product Page, by touching the mobile screen ? In case it is not possible, would you have another module or another way to do it ? I thank you in advance for any reply. Patrick
  7. Hello, In the instant search small window, are displayed the links to the searched results, as breadcrumbs : Category Name > Product Name How would it be possible to display only the Product Name ? (and not the Category name) Thank you in advance for any reply. Patrick
  8. Would your trouble be a matter of cookie in the browser ? What happens if : - you delete the cookie of your site in the browser ? - or you use the browser in private browsing (Incognito mode) - or you use another browser
  9. Hello, I am replying to my own question. I just added the following in one line of the product.tpl file : maxlength="20" In product.tpl, replace : <textarea name="textField{$field.id_customization_field}" id="textField{$customizationField}" rows="1" cols="40" class="customization_block_input">{if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if} </textarea> by <textarea maxlength="20" name="textField{$field.id_customization_field}" id="textField{$customizationField}" rows="1" cols="40" class="customization_block_input">{if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if} </textarea> Patrick
  10. Hello, I am using Prestashop 1.5.6.2. In product.tpl is the following line : <textarea name="textField{$field.id_customization_field}" id="textField{$customizationField}" rows="1" cols="40" class="customization_block_input">{if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if}</textarea> How would it be possible to do it ? Thank you in advance for any reply. Patrick
  11. Hello, I am using Prestashop 1.5.6.2. Is there a way to do the following : - activate Smart Cache CCC for javascript for all javacsript except one specific script ? - or activate Smart Cache CCC for javascript for all javascript on all pages except the order page ? The specific script to exclude from CCC, comes from one module. I thank you in advance for your any reply. Patrick
  12. Hello, I am using Prestashop 1.5.6.2. I would to do the following : - load a specific javascript in the header of all (front end) pages, apart from the product pages - load a different javascript in the header of the product pages Would you have any idea to do that ? I thank you in advance for any reply. Patrick
  13. Hello, In Prestashop (v1.5.6.2) > Product > Association, I would like to display only active categories in the categories treeview. Would you know how what file(s) have to be amended ? An in such file(s), would you know what part of code has to be amended ? Thank you in advance for any help. Patrick
  14. Hello, For some reasons, the order mail sent to the merchant (by the mailalert module) is not received for every order (with Prestashop 1.5.6.2) Is there a way to re-send such mail ? I thank you in advance for any help. Patrick
  15. Hello, I am facing the following problem (for a shop built with Prestashop 1.5.6.2) 1- Using Advanced settings > Emails > Use PHP mail function Sending the test email takes 3 or 4 seconds. The order confirmation takes more than 30 seconds or more (that, of course is not acceptable for the customer) In this case : The customer receives properly the order confirmation mail (order_conf.html) The merchant receives properly the order confirmation mail (through mailalerts.php) 2- Using Advanced settings > Emails > Set my own SMTP parameters Sending the test email takes less than 1 second. The order confirmation takes 2 or 3 seconds only (that is convenient for the customer) In this case : The customer receives properly the order confirmation mail (order_conf.html) But the merchant receives, only from time to time, the order confirmation mail (through mailalerts.php) 3- Of course, I got in touch with my web hosting, but until now, he was unable to solve the matter. His recommendation is to use the PHP mail function, but that leads to an unacceptable order confirmation time. Would you have any idea of the way to fix the trouble ? I thank you in advance for any help. Patrick
  16. Hello, My shop is built with Prestashop 1.5.6.2. In the Back Office, on the Page product, the Toolbar displays the following : Catalog > Products > Edit (Product Name) I would like to display the following : Catalog > Products > Edit (Product Name, Product Reference) Would you know how to add the Product Reference in the Toolbar ? I thank you in advance for any reply. Patrick
  17. Hello, My shop is built with Prestashop 1.5.6.2. In the past I created various order status that are no longer in used. So, in admin > Orders > Status, I tried to delete unused status. But, I got an error message as follows : For security reasons, you cannot delete default order statuses Instead of deleting a status is there a way to hide some status both in : - admin > Orders > Status - and in the Status selection box of Orders > Orders I thank you in advance for any reply. Patrick
  18. Hi, I thank you very much for this good idea. It works well ! Patrick
  19. Hello, I am using Prestashop 1.5.6.2. I customized the htaccess file by adding some rules as follows : # ~~Customized Part~~ RewriteEngine on RewriteCond %{QUERY_STRING} ^one-specific-string.*$ RewriteRule ^(.*)$ /$1? [R=301,L] # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forumsI customize # ~~Standard Part~~ <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on .../... But, when I do the here below action, the htaccess file is automatically regenerated and the Customized Part is deleted : Admin > Advanced parameters > Performances > - Compile every time - Cache to No - Delete Smarty cache Would you know how to avoid the deleting of the Customized Part of the htaccess file ? I thank you in advance for any reply. Patrick
  20. Bonjour, Lorsque je crawle mon site avec Xenu,, j'obtiens les liens cassés suivants : modules/pm_advancedtopmenu/css/pm_advancedtopmenu_global-1.css data:image/png;base64,iVBORw0KGgo..... data:image/png;base64,iVBORw0KGgo... data:image/png;base64,iVBORw0KGgo... \_____ error code: 404 (not found) Sauriez vous comment corriger cette erreur ? Merci par avance. Cordialement, Patrick
  21. Hi, I am trying to build a test shop with Prestashop 1.7.2.4. I would like to have some javascript execution when a product long description is displayed. I added the necessary code in the product long description. I also put the function code in themes/my-theme/assets/js/custom.js But, when, I am on the front page product, the javascript code is not executed. But, in the Chrome console, if I check the function, I can see that it works. So, it seems that the custom.js file is loaded too late to allow its execution before the display of the product long description. Would anyone know how to load earlier the custom.js file ? I thank you in advance for any reply. Patrick
  22. Hello, My shop is built withe Prestashop 1.5.6.2. In the crossselling tpl file, I can see the following : "{if count($orderProducts) > 5 Such code is included four times in the crossselling tpl file. As a consequence : - when the amount of crossselling items is > 5, the items are displayed next to each other (on a single line) - when the amount of crossselling items is < 5, the items are displayed one under the other (as a column) This second layout is not very nice. So, I should prefer to always have the crossselling items displayed on a single line. I am somewhat reluctant of changing > 5 to > 1. Would you know why ">5" has been added in the crossselling tpl file ? I thank you in advance for any reply. Patrick
  23. Bonjour, La version 1.7 de Prestashop permet-elle de gérer facilement les envois fractionnés pour une même commande ? Exemple : Le marchand reçoit une commande des produits A, B et C. Les articles A et B sont immédiatement disponibles Le marchand fait immédiatement l'expédition des produits A et B accompagnés de la facture-1 correspondante. L'article C est disponible une semaine plus tard. Le marchand fait l'expédition différée du produit C accompagnée de la facture-2 correspondante. Autant que je sache, sous les précédentes version de Prestashop (1.5 et 1.6), il était nécessaire, lors de l'envoi partiel d'une commande, de créer (un peu artificiellement) une nouvelle commande correspondant au solde à expédier. Sous Prestashop 1.5 et 1.6, le principe était : une commande correspond à une facture. Avec Prestashop 1.7, est-il possible d'éditer plusieurs factures pour une même commande, lorsque celle-ci est expédiée en plusieurs fois ? Merci par avance pour toute réponse. Patrick
  24. Hi, My shop is built with Prestahsop 1.5.6.2 In the browser console, js tab, I can see the following error : cart-summary.js:835 Uncaught TypeError: $(...).checkboxChange is not a function at HTMLDocument.<anonymous> (../js/cart-summary.js:835) at o (../xxxxxxxxxxxxx.js:2) at Object.fireWith (../xxxxxxxxxxxxx.js:2) at Function.ready (../xxxxxxxxxxxxx.js:2) at HTMLDocument.B (../xxxxxxxxxxxxx.js:2) The line 835 to 843 of the js/cart-summary.js file are the following : $('#gift').checkboxChange(function() { $('#gift_div').show('slow'); }, function() { $('#gift_div').hide('slow'); }); $('#enable-multishipping').checkboxChange( function() { $('.standard-checkout').hide(0); $('.multishipping-checkout').show(0); }, function() { $('.standard-checkout').show(0); $('.multishipping-checkout').hide(0); Such error only displays on category and product-list pages, but not on product pages. 1- Would you know what is the purpose of the checkboxChange function ? 2- How to avoid this error ? I thank you in advance for any reply. Patrick
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More