Jump to content

Ionut Ac

Members
  • Posts

    10
  • Joined

  • Last visited

About Ionut Ac

  • Birthday 11/28/1985

Profile Information

  • Location
    Romania
  • First Name
    Acristei
  • Last Name
    Ioan

Recent Profile Visitors

245 profile views

Ionut Ac's Achievements

Newbie

Newbie (1/14)

5

Reputation

  1. Hy, I have a problem with the cashing system. When I go to Advance Parameters > Perfomance and I set Caching> Use cache to YES ( Caching system - File System ) no matter on which product category I enter is show the product from the first visited. The url change but it display the product from the firs category that I visited after I enable the cache. I did clear the cash from BO and by deleting the cache files but this does not solve the problem Thank you for your help
  2. Follow my instruction and it will work: https://www.prestashop.com/forums/topic/465115-solution-how-to-use-order-conf-variables-in-any-email-template/?p=2583804 Just download the file and follow the instructions.
  3. I manage to solve it on my own. Here you can find more details: https://www.prestashop.com/forums/topic/465115-solution-how-to-use-order-conf-variables-in-any-email-template/page-2?do=findComment&comment=2583804 Is the original topic that help me and my solution is posted there. Link is pointing to the solution post. Hope that helps.
  4. Hy, I manage to make it to work for 1.6.1.11 and 1.6.1.15 Just download the OrderHistory.php and upload it to: /prestashop_folder/override/classes/order/ Then go to: /prestashop_folder/cache/ and delete: class_index.php After this you will be able to use all the order_conf variable ( the ones posted on the first post ) OrderHistory.php Yes I test it but it was not working since you have added some custom code not related to the propose. The email was send only if the status of the order was waiting bank wire and you also have commented a few more lines
  5. Any solution to this? I also want to create a custom order status with a custom template and add product details to this template. something similar to order confirmation
  6. Hy. My version is 1.6.1.11 I try to add a new order to an existing customer from backoffice The problem is that when I add a product it delete one that I just added. I mean I can't add more than one product because it always delete the old one. Thank you
  7. Hy. Since now many internet providers work with dynamic IP's is very difficult for a developer to allow a client the changes that he made on his store and keep it in maintenance mode for visitor. Trying to solve this I found this solution so you can allow access via token and ip in the same time. This was tested on prestashop 1.6.1.11 Go to ./classes/controller/FrontController.php Line: 751 Replace: if (!in_array(Tools::getRemoteAddr(), explode(',', Configuration::get('PS_MAINTENANCE_IP')))) { header('HTTP/1.1 503 temporarily overloaded'); $this->context->smarty->assign($this->initLogoAndFavicon()); $this->context->smarty->assign(array( 'HOOK_MAINTENANCE' => Hook::exec('displayMaintenance', array()), )); // If the controller is a module, then getTemplatePath will try to find the template in the modules, so we need to instanciate a real frontcontroller $front_controller = preg_match('/ModuleFrontController$/', get_class($this)) ? new FrontController() : $this; $this->smartyOutputContent($front_controller->getTemplatePath($this->getThemeDir().'maintenance.tpl')); exit; } with this: (where "passman" is the parameter that will be passed in url session_start(); if(isset($_GET['passman'])){$_SESSION['passman'] = $_GET['passman'];} if (isset($_SESSION['passman'])){ if(!in_array($_SESSION['passman'], explode(',', Configuration::get('PS_MAINTENANCE_IP')))){ header('HTTP/1.1 503 temporarily overloaded'); $this->context->smarty->assign($this->initLogoAndFavicon()); $this->context->smarty->assign(array( 'HOOK_MAINTENANCE' => Hook::exec('displayMaintenance', array()), )); // If the controller is a module, then getTemplatePath will try to find the template in the modules, so we need to instanciate a real frontcontroller $front_controller = preg_match('/ModuleFrontController$/', get_class($this)) ? new FrontController() : $this; $this->smartyOutputContent($front_controller->getTemplatePath($this->getThemeDir().'maintenance.tpl')); exit; } }else if (!in_array(Tools::getRemoteAddr(), explode(',', Configuration::get('PS_MAINTENANCE_IP')))) { header('HTTP/1.1 503 temporarily overloaded'); $this->context->smarty->assign($this->initLogoAndFavicon()); $this->context->smarty->assign(array( 'HOOK_MAINTENANCE' => Hook::exec('displayMaintenance', array()), )); // If the controller is a module, then getTemplatePath will try to find the template in the modules, so we need to instanciate a real frontcontroller $front_controller = preg_match('/ModuleFrontController$/', get_class($this)) ? new FrontController() : $this; $this->smartyOutputContent($front_controller->getTemplatePath($this->getThemeDir().'maintenance.tpl')); exit; } At this point you can go to: Preferences>Maintenance and add to the list a token (string) that can be passed as a parameter and that allow you to pass the maintenance page. As showed int the picture below you can also add an IP to the list. So now you can pass maintenance mode by accessing: http://www.yoursorename.com/?passman=allowusertoken You can send this link to anyone and that person can see the live store skipping the maintenance page.
  8. Buna ziua. Am si eu o problema pe care incerc sa o rezolv de vreo doua zile da tot nu am reusit. Sa spunem ca am un tricou care are ca atribute coloare si marime. Ideea este ca vreau ca atunci cand se selecteaza culoarea sa-mi apara doar marimile disponibile pentru acea culoare si nu mesajul predefinit ca acea combinatie nu exista "This combination does not exist for this product. Please select another combination." Va multumesc.
×
×
  • Create New...