Jump to content

ironwill

Members
  • Posts

    5
  • Joined

  • Last visited

3 Followers

Profile Information

  • Location
    IN
  • Activity
    Developer

ironwill's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, I am developing a module for create the free order. From back office admin can add a free product from module configuration and it should show under order detail page of user account section after any validate order. public function actionValidateOrder($params){ return Hook::exec('displayOrderDetail'); } public function displayOrderDetail($params){ $this->context->smarty->assign( array( 'my_module_name' => Configuration::get('MYMODULE_NAME'), 'my_module_link' => $this->context->link->getModuleLink('freeorder', 'display') ) ); return $this->display(__FILE__, 'freeorder.tpl'); } I have used two hook, one after validate order it should display a freeorder hook on displayorderdetail page. But unable to see any content on order detail page. Can you please suggest me, where i did something wrong. Thanks !
  2. Hello patron, Can you tell me which kind of configuration you modified form back end. i have the same issue with all payment. please help me out ! Regards.
  3. SAME ISSUE WITH CATEGORY CLASS LINE 651 Load time: 50.236s You'd better run your shop on a toasterconfig: 39ms constructor: 0ms init: 15ms checkAccess: 0ms setMedia: 3ms postProcess: 0ms initHeader: 0ms initContent: 49.988s initFooter: 20ms display: 171ms Hook processing: 145ms / 2.24 MbdisplayHeader: 51ms / 1.25 Mb displayTop: 29ms / 0.27 Mb displayRightColumn: 22ms / 0.26 Mb displayFooter: 20ms / 0.19 Mb displayLeftColumn: 17ms / 0.15 Mb moduleRoutes: 5ms / 0.12 Mb actionDispatcher: 0ms / 0 Mb actionProductListOverride: 0ms / 0 Mb actionFrontControllerSetMedia: 0ms / 0 Mb DisplayOverrideTemplate: 0ms / 0 Mb Memory peak usage: 11.9 Mbconfig: 1.79 Mb (1.8 Mb) constructor: 0 Mb (1.8 Mb) init: 0.78 Mb (2.6 Mb) checkAccess: 0 Mb (2.6 Mb) setMedia: 0.04 Mb (2.6 Mb) postProcess: 0 Mb (2.6 Mb) initHeader: 0 Mb (2.6 Mb) initContent: 8.02 Mb (11.7 Mb) initFooter: 0.2 Mb (11.7 Mb) display: 0.66 Mb (11.9 Mb) Total cache size (in Cache class): 0.53 Mb DB type: DbPDO SQL Queries: 150 queries Time spent querying: 49.779s Included files: 177 Size of included files: 2.11 Mb Globals (> 1 Ko only): 109 Ko_LANG ≈ 58.5 Ko _MODULES ≈ 28.9 Ko _SERVER ≈ 11.5 Ko _REQUEST ≈ 2.1 Ko _COOKIE ≈ 2.1 Ko _MODULE ≈ 1 Ko Go to Stopwatch Go to Doubles Go to Tables Go to ObjectModels Display queries table Stopwatch (with SQL_NO_CACHE) (total = 150)49625.491 ms SELECT SQL_NO_CACHE p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, MAX(product_attribute_shop.id_product_attribute) id_product_attribute, product_attribute_shop.minimal_quantity AS product_attribute_minimal_quantity, pl.`description`, pl.`description_short`, pl.`available_now`, pl.`available_later`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, MAX(image_shop.`id_image`) id_image, il.`legend`, m.`name` AS manufacturer_name, cl.`name` AS category_default, DATEDIFF(product_shop.`date_add`, DATE_SUB(NOW(), INTERVAL 20 DAY)) > 0 AS new, product_shop.price AS orderprice FROM `ps_category_product` cp LEFT JOIN `ps_product` p ON p.`id_product` = cp.`id_product` INNER JOIN ps_product_shop product_shop ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1) LEFT JOIN `ps_product_attribute` pa ON (p.`id_product` = pa.`id_product`) LEFT JOIN ps_product_attribute_shop product_attribute_shop ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1 AND product_attribute_shop.`default_on` = 1) LEFT JOIN ps_stock_available stock ON (stock.id_product = p.id_product AND stock.id_product_attribute = IFNULL(`product_attribute_shop`.id_product_attribute, 0) AND stock.id_shop = 1 ) LEFT JOIN `ps_category_lang` cl ON (product_shop.`id_category_default` = cl.`id_category` AND cl.`id_lang` = 1 AND cl.id_shop = 1 ) LEFT JOIN `ps_product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = 1 AND pl.id_shop = 1 ) LEFT JOIN `ps_image` i ON (i.`id_product` = p.`id_product`) LEFT JOIN ps_image_shop image_shop ON (image_shop.id_image = i.id_image AND image_shop.id_shop = 1 AND image_shop.cover=1) LEFT JOIN `ps_image_lang` il ON (image_shop.`id_image` = il.`id_image` AND il.`id_lang` = 1) LEFT JOIN `ps_manufacturer` m ON m.`id_manufacturer` = p.`id_manufacturer` WHERE product_shop.`id_shop` = 1 AND cp.`id_category` = 11 AND product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog") GROUP BY product_shop.id_product ORDER BY cp.`position` asc LIMIT 0,10 in /home/content/01/6091401/html/classes/Category.php:651 USING FILESORT - 43824 rows browsed10.885 ms SELECT SQL_NO_CACHE c.*, cl.id_lang, cl.name, cl.description, cl.link_rewrite, cl.meta_title, cl.meta_keywords, cl.meta_description FROM `ps_category` c INNER JOIN ps_category_shop category_shop ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1) LEFT JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 1 AND cl.id_shop = 1 ) LEFT JOIN `ps_category_group` cg ON (cg.`id_category` = c.`id_category`) WHERE `id_parent` = 11 AND `active` = 1 AND cg.`id_group` =2 GROUP BY c.`id_category` ORDER BY `level_depth` ASC, category_shop.`position` ASC in /home/content/01/6091401/html/classes/Category.php:529 USING FILESORT - 7 rows browsed Useless GROUP BY need to be removed
  4. Hello all ... I have updated the prestashop 1.4 to 1.5. I have modified the module (ex:bla bla bla ) for make compatible with 1.5. Currently the ajax doesn't return the result from php file. The issue is with controller. In prestahop 1.4 the method to call the controller is: ControllerFactory::getController('CategoryController'); If i use the same method in prestashop 1.5 then i have got the 500 internal error ( i checked in firebug) NetworkError: 500 Internal Server Error In prestashop 1.5 the method to call the controller is: Tools::redirect('index.php?controller=category'.($_REQUEST ? '&'.http_build_query($_REQUEST, '', '&') : ''), __PS_BASE_URI__, null, 'HTTP/1.1 301 Moved Permanently'); OR include(dirname(__FILE__).'/../../category.php'). Then the fire bug give me 404 error Is it a proper context to call the controller in 1.5v ? Or i am doing something wrong with code. Please help me out. Remember this code is in php file called through ajax.
  5. The url contains with two controller and page has error ... After upgrade presta 1.3 to 1.5 .... I have done with all admin and htaccess settings.. This webpage has a redirect loop The webpage at http://www.site.com/demo/index.php?controller=product-sort&controller=category&id_category=26&id_lang=1&3f99a2f33f7744ef0eca694ec6b1a644=6QRkGavLdXE%3DZ5GeGoDbhRk%3DxDL1GmsubWs%3D4T1q7BlwWP0%3Dw%2BoTBcIH3YM%3D42DuD6gCKn8%3DwlSaFdzJVkM%3DHhsUAPeJyYc%3DKstC%2B%2By%2BWpM%3Dqd%2BnqzLjGFs%3D000075&ff9681f45fc75c2317749ca6d18afc4e=6QRkGavLdXE%3DZ5GeGoDbhRk%3DxDL1GmsubWs%3Dy9V4ux5jCKs%3Dw%2BoTBcIH3YM%3DdL3Ym82sH2A%3DAQim1FJZLbs%3DOUCN4xRIV9k%3DVPN7v9mv084%3DzghDqDj4qRY%3DKR68I6RRens%3D4pE2hRqcrFo%3DoAseSH83qnw%3DH9WVHn%2BaTGs%3DrH%2Fz338MEeA%3DVnFKpshr8%2Bw%3D4yBsg1TH7fo%3DyIRbkyLpF3c%3DA%2B%2Fg2AmmQDs%3D7VMwOBf7AkQ%3DzZBh3r0xpj4%3D51PBaTDxRHo%3D75l%2BmZChB9g%3D2hDfcd1sNIc%3DQ8BF%2FeNW2ws%3D4%2BNFFarcotA%3DnCpM6l902%2FI%3DBRgODxSIzuE%3DUsQ9%2BAj0Vc4%3D000231&PHPSESSID=229d27c5759292c3b57a753f2fccbc03&__utma=171857084.405305366.1361886577.1361886577.1361886577.1&__utmb=171857084.5.10.1361886577&__utmc=171857084&__utmz=171857084.1361886577.1.1.utmcsr%3D%28direct%29%7Cutmccn%3D%28direct%29%7Cutmcmd%3D%28none%29&__unam=312b87c-13d16c40a71-250deb51-5 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer. Here are some suggestions: Reload this webpage later. Learn more about this problem. Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects. Any kind of help will be appreciated !
×
×
  • Create New...