Jump to content

simonetb

Members
  • Posts

    10
  • Joined

  • Last visited

Profile Information

  • First Name
    Simone
  • Last Name
    di dio

Recent Profile Visitors

195 profile views

simonetb's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Ti ringrazio e, scusa se ne approfitto, vorrei che mi dessi un consiglio sulla fattibilità di questa strada: {assign var='excluded_categories_ids' value=[78, 64, 29, 91, 92, 93 ...]} {if (!in_array($category->id, $excluded_categories_ids))} <div>Image</div> {endif} {assign var='excluded_categories_ids' value=[78, 64, 29, 91, 92, 93 ...]} {if (!in_array($category->id, $excluded_categories_ids))} <div>Image</div> {endif} Grazie
  2. Capisco, infatti più che altro mi serviva una guida o qualcosa di simile. Altrove mi hanno consigliato questa strada: {php} $excluded_categories_ids = [5, 6, ...]; {/php} {if (!in_array($category->id, $excluded_categories_ids))} <div></div> {endif} Cosa ne pensate?
  3. Sei stato veramente gentilissimo. potresti dirmi nel dettaglio come fare? Utilizzando il metodo più semplice da fare oppure inviandomi il link di una guida? Questa cosa è molto importante per me perchè ho problemi di memoria. Grazie mille
  4. A few days ago my prestashop site has slowed down, both public and administrative. I did a test with DEBUG_PROFILING and this is the result (see attached image) Before evaluating a transition to a vps, what can I optimize in prestashop? Thank you
  5. Salve a tutti. Ho creato nel file product.tpl una regola per far vedere un'immagine solo in specifiche categorie. Dato il numero delle categorie interessate (quelle dove mostrare l'immagine) ho optato per la via di far vedere l'immagine in tutte le categorie, tranne in alcune. {if $category->id != 78 AND $category->id != 64 AND $category->id != 29 AND $category->id != 91 AND $category->id != 92 AND $category->id != 93 AND $category->id != 94 AND $category->id != 95 AND $category->id != 102 AND $category->id != 17 AND $category->id != 71 AND $category->id != 106 AND $category->id != 107 AND $category->id != 109 AND $category->id != 72 AND $category->id != 101 AND $category->id != 96 AND $category->id != 97 AND $category->id != 75 AND $category->id != 69 AND $category->id != 100 AND $category->id != 73 AND $category->id != 70 AND $category->id != 65 AND $category->id != 80 AND $category->id != 81 AND $category->id != 82 AND $category->id != 84 AND $category->id != 83 AND $category->id != 79 AND $category->id != 110 AND $category->id != 79 AND $category->id != 111 AND $category->id != 79 AND $category->id != 112 AND $category->id != 79 AND $category->id != 113 AND $category->id != 79 AND $category->id != 66 AND $category->id != 79 AND $category->id != 85 AND $category->id != 79 AND $category->id != 86 AND $category->id != 79 AND $category->id != 87 AND $category->id != 79 AND $category->id != 90 AND $category->id != 79 AND $category->id != 67 AND $category->id != 79 AND $category->id != 68 AND $category->id != 79 AND $category->id != 74 AND $category->id != 79 AND $category->id != 104 AND $category->id != 79 AND $category->id != 108 AND $category->id != 79 AND $category->id != 15 AND $category->id != 79 AND $category->id != 340 AND $category->id != 1457 AND $category->id != 1497 AND $category->id != 1498 AND $category->id != 1499 AND $category->id != 1417 AND $category->id != 1501 AND $category->id != 1524} <div>IMMAGINE</div> Cosi ha funzionato fino ad oggi. Il problema è che quando vado ad aggiungere una categoria nella lista (dove non mostrare l'immagine) aggiungendo in coda un altro codice AND $category->id != 1535 la pagina prodotti va in crash. forse c'è un limite di chiamate che posso fare? Come posso risolvere?
  6. During order (in address tab) users that use old browser view error 500 on monitor. I use prestashop 1.7.1.0. How can i solve? Thank you! La proprietà Address->vat_number è vuota. at line 944 in file classes/ObjectModel.php } $message = $this->validateField($field, $this->$field); if ($message !== true) { if ($die) { throw new PrestaShopException($message); } return $error_return ? $message : false; } } ObjectModelCore->validateFields - [line 272 - classes/ObjectModel.php] ObjectModelCore->getFields - [line 518 - classes/ObjectModel.php] ObjectModelCore->add - [line 174 - classes/Address.php] - [2 Arguments] AddressCore->add - [line 476 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->save - [line 76 - classes/form/CustomerAddressPersister.php] CustomerAddressPersisterCore->save - [line 145 - classes/form/CustomerAddressForm.php] - [2 Arguments] CustomerAddressFormCore->submit - [line 111 - classes/checkout/CheckoutAddressesStep.php] CheckoutAddressesStepCore->handleRequest - [line 57 - classes/checkout/CheckoutProcess.php] - [1 Arguments] CheckoutProcessCore->handleRequest - [line 202 - controllers/front/OrderController.php] - [1 Arguments] OrderControllerCore->initContent - [line 205 - classes/controller/Controller.php] ControllerCore->run - [line 369 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php]
  7. Hello, on my prestashop 1.7.1.0 known that sometimes there are problems derived from cookies on chrome (unable to login for example) because chrome saves two different cookies related to my site: site.com www.site.com I would like you to save everything under the www address of my site. I tried to add this code to the htaccess file but it did not work RewriteEngine on RewriteCond %{HTTP_HOST} !\..+\. RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  8. Hi, I want insert in a .tpl file of module Prestashop 1.7.1.0 an image that i want show ONLY in mobile version of site. I tried: <div class="visible-xs"> <img src="...etc "/> </div> but image is visible in all version of my site. How i Can? Thank you!
  9. Hi, I have a site in prestashop 1.7.1.0. In the admin panel I added a related product in the product sheet. I would like the related product to appear in the product listing but it is not shown. How can I do?
  10. Hi, when I try to edit a translation of a module appears this error (view attach image) . Can someone help me? Thank you
×
×
  • Create New...