Jump to content

patrizia.vergassola

Members
  • Posts

    35
  • Joined

  • Last visited

Profile Information

  • Location
    La Spezia, Italy
  • Activity
    Web development agency

Recent Profile Visitors

3,003,912 profile views

patrizia.vergassola's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. It happens to me also with OWASP ModSecurity Core Rule Set V3.0 enabled...any help?
  2. I was trying to do it using jquery. Like appending a div if the class is list or remove it if it's grid but it isn't working. Have you tried doing it with Jquery? Do you think the page needs to load?
  3. Hello, but I need to make a conditional statement inside the .tpl file, do you think is that possible? Thank you in advance, Patrizia
  4. Hello, is it possible to make an element appear only in a specific view (list or grid)? Like a conditional if I can insert? Thank you in advance, Patrizia
  5. Hello, I'm running a store on Prestashop 1.5.6.1 and I need to order Products. I saw that in Preferences - Products I can change their order, but can order it manually from the list using like a drag&drop? I know that this option is available in Prestashop 1.6 but I cannot update my version right now. Thank you in advance Patrizia
  6. Hello everyone, I have a problem. I need free shipping to be calculated only on total products amount (tax excluded). I don't want the cart rules to be considered in the free shipping calculation. That is to say:if I say that shipping is free for orders above 49€ tax excluded and a customer buys 50€ of stuff and he uses a 3€ voucher, shipping must be free because prestashop must consider the total amount excluding eventual vouchers. I've already modified Cart.php to calculate free shipping excluding taxes, but how do I exclude cart rules from that calculation? My store runs on Prestashop 1.5.6.1. Hope I was clear. Thank you in advance, Patrizia
  7. Hello, suddendly when I try to update the status of an order I get this error: Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/override/classes/Mail.php:1) in /home/xxxx/public_html/classes/Tools.php on line 143 Any clue? Thank you in advance Patrizia
  8. Hello, I'm using Prestashop 1.6.0.5 and I'm having problems within the Home featured module since it shows the line "No featured products at this time". This happens when I clear the cache and now it is going on since three or four hours. Products are correctly flagged within the Home Page category. I really don't understand what's the problem here. Thank you in advance Patrizia
  9. Hello everyone, I'm using Prestashop 1.5.6.1 and I need to calculate free shipping excluding taxes from the order totale. I opened the Cart.php file in the classes folder and I've changed this line: $orderTotalwithDiscounts = $this->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING, null, null, false); to $orderTotalwithDiscounts = $this->getOrderTotal(false, Cart::BOTH_WITHOUT_SHIPPING, null, null, false); but it doesn't work. Any ideas? Anyone with the same problem? Thank you in advance.
  10. Purtroppo così mi chiede di autenticarmi solo dopo aver aggiunto il prodotto al carrello, io vorrei che mi facesse redirect nel momento in cui aggiungo il prodotto al carrello
  11. Ciao a tutti Sto usando Prestashop 1.4.8.2 ed ho necessità che i miei clienti si registrino/accedano al loro account prima di poter aggiungere qualsiasi prodotto al carrello. Per fare ciò ho installato il modulo requirelogin il quale nella cartella override aggiunge questa classe: class CartController extends CartControllerCore { public function init() { parent::init(); if (!self::$cookie->isLogged(false)) { // not logged in if (Tools::getValue('ajax') === 'true' && Tools::getValue('add') === '1') { // ajax cart die('{"hasError" : true, "errors" : ["' . Tools::displayError('Registrati per acquistare o accedi al tuo account.', false) . '"]}'); } else { $this->errors[] = Tools::displayError('Registrati per acquistare o accedi al tuo account.'); } } } } che visualizza un alert quando un utente non loggato prova ad aggiungere un prodotto al carrello. Io però vorrei che il cliente non ricevesse un alert ma venisse re-indirizzato alla pagina di login. Ho provato in questo modo: public function init() { parent::init(); if (!self::$cookie->isLogged(false)) { // not logged in if (Tools::getValue('ajax') === 'true' && Tools::getValue('add') === '1') { // ajax cart Tools::redirect('my-account.php'); } else { Tools::redirect('my-account.php'); } [spam-filter] ed in una versione più recente di Prestashop ha funzionato. In questo caso però ho solamente l'errore che potete vedere in allegato. Qualche idea? Grazie mille!! Patrizia
  12. I took this code from the module requirelogin This is the original code: if (!self::$cookie->isLogged(false)) { // not logged in if (Tools::getValue('ajax') === 'true' && Tools::getValue('add') === '1') { // ajax cart die('{"hasError" : true, "errors" : ["' . Tools::displayError('Registrati per acquistare o accedi al tuo account.', false) . '"]}'); } else { $this->errors[] = Tools::displayError('Registrati per acquistare o accedi al tuo account.'); } } Using this one it works perfectly: I get an alert saying that I need to register to add a product to my cart. The only thing is I want a redirect to the login page, not an alert. The problem relies in Tools redirect command I think...
  13. Hello everyone I'm using Prestashop 1.4.8.2. The visitors of my website need to be redirect to the login page after they add a product to the cart. So I've added this function to the CartController.php file: public function init() { parent::init(); if (!self::$cookie->isLogged(false)) { // not logged in if (Tools::getValue('ajax') === 'true' && Tools::getValue('add') === '1') { // ajax cart Tools::redirect('my-account.php'); } else { Tools::redirect('my-account.php'); } [spam-filter] but all I can get is the error I've attached when I try to add a product to the cart. I've already used this function in another site I've developed and it worked great (in the other site I use Prestashop 1.5.0.17). Any idea why I keep getting this error? Thank you in advance! Patrizia
  14. I'm using a module that shows in home the home featured products and some other products tagged by my customer. I've rewritten the getProduct function so I could filter the products using the product tags. The only thing is that I filter only the products that are homefeatured or, at least, present in a single category. I wanted to show all products that had that specific tag. Now it seems we have found a solution. The client will flag as home products the one that flag as "recommended" for example. Thank you for everything :)
  15. Hi everyone, anyone knows how I have to change this line: $category = new Category(1, Configuration::get('PS_LANG_DEFAULT')); If I wanna show products from all the categories? Thank you in advance! Patrizia
×
×
  • Create New...