Jump to content

J.Sahu

Members
  • Posts

    341
  • Joined

  • Last visited

Everything posted by J.Sahu

  1. What have you done to increase the add to cart speed? It must be adding more power to hosting I gues.
  2. I am talking about Ps 1.6 If customer changes password or resets password then already logged in sessions are still active. Is there any scope by which we can logout a customers history sessions when someone changes password or resets password. This feature is not in ps1.6 and I am not sure if it present in 1.7. If a user has left his session in a public computer then there is no way he can logout his sessions. Can someone shed some lights?
  3. I defined the question wrong way. How you are going to get the message_personnel field value in the cart controller if you are using ajax cart feature. I mean you are not sending that data while using ajax.
  4. I think some more code needed to be inserted to send the message_personnel field data.
  5. You can use the override feature for Product.php in classes. If you are a developer and think this is one is easy then you can manipulate the duplicateAttributes method.
  6. The quick view option is returning a blank page on the home page but it's working perfectly on the categories page. The only difference I found that when we click on the quick view the ajax link is "www.website.com/product-name.html" button home page it is "www.website.com". https://www.unionshirtsupply.com/home/10-made-in-usa-7oz-tshirts.html?content_only=1 https://www.unionshirtsupply.com/?content_only=1 View the issue here. https://www.unionshirtsupply.com/ It works perfectly on categories page https://www.unionshirtsupply.com/12-made-in-usa-tshirts I have enabled the dev mode and it returns nothing. Any advice?
  7. Thank You @Denver Prophit Jr. for the solution. It worked perfectly. But why the issue was not occurring before with the code existing and suddenly it appeared? I appreciate your help.
  8. In one prestashop website the page is getting loaded without making nay changes. Is there anything related to it?
  9. While creating order in back office if a product has customization option then the quantity getting double after adding to cart. To reproduce the issue. Add customization option for a product(I have added two customization fields and more.). Create order in back office. Search for the product. The product will be listed. Add the product the cart the quantity will be doubled. Add any quantity and it will get doubled. It is not happening if the pre added card is selected. I have found this issue on a shop and tested with raw installation of the latest version of prestashop. Please check a video I have attached to the forge. http://forge.prestashop.com/browse/DOC-406
  10. I have told the same thing, but you can use the slider by editing the code.
  11. Sorry for the late response @goody974 and @apositivo. It's one one year old. i am just writing what I remember. The issue was with the js file. The theme has code which was compatible to an old version of java script after upgrading the shop. My store got the new javascript version which is not compatible with the old theme. The .slider method is no longer used. Simple solution without looking at the code will be disabling any slider used in the module. e.g slide to incease the price etc. Let me know.
  12. These answer can help someone. If you have generated combinations for the product and then updated the new reference number then you have to remove/update the combination's reference number else it'll show the reference number assigned to them. ANS: Simply regenerate the combinations.
  13. Hi, I am creating an override in which the $default_routes array is getting overridden inside Dispatcher.php When I am installing everything works fine but at the time uninstall it is not removing the entire code instead removing only one line i.e. public $default_routes = array(. (Please check the attached file) As I believe the default feature of PS is, it checks and removes the function which are getting overridden but what can I do as I am only overriding one variable ? My aim is to check if a module is active or not. If module active then the override codes will work. So I have tried to use this $module = Module::getInstanceByName('mymodule'); But as there is no function so I am unable to check. It will be great if someone will give some idea about these implementations. Thank You Dispatcher.php
  14. Can someone suggest anything ? I am still searching for way to fix it.
  15. Don't mind but I am unable to perform this task. There is no init function only construct function inside the Dispatcher.php core file. I have no idea how to add this.
  16. Undskyld! Jeg har arbejdet med mega menuen men ikke cs. Jeg har arbejdet med panda tema, og der var mega menu.
  17. Prøv at nulstille tophorizontalmenu modulet. Håber der hjælper ellers Lad mig vide, og forsøge at skrive på engelsk, så det vil være let for mig at forstå.
  18. Yeah I understand and there is my issue. I am not overriding any function. I am just overriding the rules and parameters for the default routes. Here is the overall code I am overriding. <?php /* * 2015 Prestashop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * It is available through the world-wide-web at this URL: * http:* * DISCLAIMER * This code is provided as is without any warranty. * No promise of being safe or secure * * @author jnana@indibits.com * @copyright 2015 Prestashop * @license http:* @code sorce: http:*/ class Dispatcher extends DispatcherCore { public $default_routes = array( 'category_rule' => array( 'controller' => 'category', 'rule' => '{id}-{rewrite}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+', 'param' => 'id_category'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'supplier_rule' => array( 'controller' => 'supplier', 'rule' => '{id}__{rewrite}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+', 'param' => 'id_supplier'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'manufacturer_rule' => array( 'controller' => 'manufacturer', 'rule' => '{id}_{rewrite}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+', 'param' => 'id_manufacturer'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'cms_rule' => array( 'controller' => 'cms', 'rule' => '{rewrite}.html', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'cms_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'cms_category_rule' => array( 'controller' => 'cms', 'rule' => 'info/{rewrite}/', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'cms_category_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'module' => array( 'controller' => null, 'rule' => 'module/{module}{/:controller}', 'keywords' => array( 'module' => array('regexp' => '[_a-zA-Z0-9_-]+', 'param' => 'module'), 'controller' => array('regexp' => '[_a-zA-Z0-9_-]+', 'param' => 'controller'), ), 'params' => array( 'fc' => 'module', ), ), 'product_rule' => array( 'controller' => 'product', 'rule' => '{category:/}{id}-{rewrite}{-:ean13}.html', 'keywords' => array( 'id' => array('regexp' => '[0-9]+', 'param' => 'id_product'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'ean13' => array('regexp' => '[0-9\pL]*'), 'category' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'categories' => array('regexp' => '[/_a-zA-Z0-9-\pL]*'), 'reference' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'manufacturer' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'supplier' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'price' => array('regexp' => '[0-9\.,]*'), 'tags' => array('regexp' => '[a-zA-Z0-9-\pL]*'), ), ), 'layered_rule' => array( 'controller' => 'category', 'rule' => '{id}-{rewrite}{/:selected_filters}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+', 'param' => 'id_category'), 'selected_filters' => array('regexp' => '.*', 'param' => 'selected_filters'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), ); } This is the whole code. I just want to override this. Any suggestion ?
×
×
  • Create New...