cutecat Posted June 9, 2013 Share Posted June 9, 2013 Hi guys,I had changed the Route to products in SEO & URL, by removing the category - {id}-{rewrite}{-:ean13}.html . now I have changed back to default again - {category:/}{id}-{rewrite}{-:ean13}.htmlproblem now is, when i want to preview my items, it points to the product without the category...but on the front end, the url shows the category. Link to comment Share on other sites More sharing options...
vekia Posted June 9, 2013 Share Posted June 9, 2013 maybe its cache issue? try to recompile the smarty + clear cache in presta Link to comment Share on other sites More sharing options...
cutecat Posted June 9, 2013 Author Share Posted June 9, 2013 how do i recompile the smarty and also clear the cache in presta? Link to comment Share on other sites More sharing options...
cutecat Posted June 9, 2013 Author Share Posted June 9, 2013 is it this if yes, i had just changed it to force and back to recompile also had change the cache from tick to cancel and back to tick again. it's not working. it's still showing this Link to comment Share on other sites More sharing options...
cutecat Posted June 9, 2013 Author Share Posted June 9, 2013 i had just done a manual clearing of the cache To clear PrestaShop 1.5 cached data, delete the content of the following folders: cache/smarty/compile cache/smarty/cache img/ tmp Clear all data in the folders, except index.php it's still the same. Link to comment Share on other sites More sharing options...
vekia Posted June 9, 2013 Share Posted June 9, 2013 okay, so the problem is somewhere else :/ i've got another question you use prestashop from official installation package? Or maybe you use prestashop from something like softaculous? And what ps version? Link to comment Share on other sites More sharing options...
cutecat Posted June 9, 2013 Author Share Posted June 9, 2013 (edited) okay, so the problem is somewhere else :/ i've got another question you use prestashop from official installation package? Or maybe you use prestashop from something like softaculous? And what ps version? I think is softaculous, but I had upgraded the version to 1.5.4.1 2 weeks after it has launched. The upgrade is from the official installation package. I had tried to disable that product and there is a tab that came out to be "save and preview". I click on that, I could be able to preview the product nicely. But when i click on the preview button at the top, it does not point to the correct url... i went through /public_html/classes/Dispatcher.php it doesn't look incorrect. this is the part for product line 109 '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]*'), ), ), Edited June 9, 2013 by cutecat (see edit history) Link to comment Share on other sites More sharing options...
cutecat Posted June 9, 2013 Author Share Posted June 9, 2013 i found the file dispatcher. https://github.com/PrestaShop/PrestaShop/blob/master/classes/Dispatcher.php and I overwrote my current file. nothing has changed. so the dispatcher.php file did not cause this issue... gosh...... what other file could it be linked to? is it possible to reinstall everything without affecting the website? like upgrading the prestashop. Link to comment Share on other sites More sharing options...
Darius Webdevelopers Posted December 11, 2013 Share Posted December 11, 2013 Guys any solution for this problem? I have the same one. Preview generates 404. Help. Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 Guys any solution for this problem? I have the same one. Preview generates 404. Help. when you click on preview button, url is the same as url when you click on product from category view? (in front office) can you show differencies between urls? Link to comment Share on other sites More sharing options...
Darius Webdevelopers Posted December 12, 2013 Share Posted December 12, 2013 Hi, thanks for replay From B.O. i have got http://www.e-juvelyrika.com/index.php?controller=product_rule&id=1267&rewrite=apyrank-paruosta-graviravimui&ean13=&meta_keywords=&meta_title= From F.O. I have got: http://www.e-juvelyrika.com/apyrankes/1267-apyranke.html Any Ideas? Link to comment Share on other sites More sharing options...
Darius Webdevelopers Posted December 13, 2013 Share Posted December 13, 2013 Hi, thanks for replay From B.O. i have got http://www.e-juvelyrika.com/index.php?controller=product_rule&id=1267&rewrite=apyrank-paruosta-graviravimui&ean13=&meta_keywords=&meta_title= From F.O. I have got: http://www.e-juvelyrika.com/apyrankes/1267-apyranke.html Any Ideas? No one has Ideas? Link to comment Share on other sites More sharing options...
Darius Webdevelopers Posted December 13, 2013 Share Posted December 13, 2013 No one has Ideas? OK I have already find a solution. https://github.com/PrestaShop/PrestaShop/blob/9f2423c2c5b3409355172d89b7ba16ca5a04f816/controllers/admin/AdminProductsController.php Just replace controllers/admin/AdminProductsController.php Please mark it [solved] 1 Link to comment Share on other sites More sharing options...
vekia Posted December 13, 2013 Share Posted December 13, 2013 thank you for information how you solved this problem i also marked this thread as solved as you suggested. with regards, Milos Link to comment Share on other sites More sharing options...
nathanielleee Posted February 16, 2014 Share Posted February 16, 2014 I dont get it. Can someone explain how to fix this issue? im still not having any luck Link to comment Share on other sites More sharing options...
Darius Webdevelopers Posted February 16, 2014 Share Posted February 16, 2014 I dont get it. Can someone explain how to fix this issue? im still not having any luck Hi nathanlieleee Just download : https://github.com/PrestaShop/PrestaShop/blob/9f2423c2c5b3409355172d89b7ba16ca5a04f816/controllers/admin/AdminProductsController.php And upload to: controllers/admin/ Link to comment Share on other sites More sharing options...
nathanielleee Posted February 16, 2014 Share Posted February 16, 2014 can you shoot me the download link? for some reason i cant figure out where to download the file from. that link takes me to the site but doesn't really let me download the file itself. Link to comment Share on other sites More sharing options...
Darius Webdevelopers Posted February 16, 2014 Share Posted February 16, 2014 can you shoot me the download link? for some reason i cant figure out where to download the file from. that link takes me to the site but doesn't really let me download the file itself. https://github.com/PrestaShop/PrestaShop/tree/9f2423c2c5b3409355172d89b7ba16ca5a04f816/controllers/admin please find AdminProductsController.php and download Link to comment Share on other sites More sharing options...
nathanielleee Posted February 16, 2014 Share Posted February 16, 2014 Im prob blind or something but whenever i try to download it downloads the website not the file. i need instructions on how to download the file. Tried copy and pasting it but it didnt work that way Link to comment Share on other sites More sharing options...
nathanielleee Posted February 17, 2014 Share Posted February 17, 2014 https://github.com/PrestaShop/PrestaShop/tree/9f2423c2c5b3409355172d89b7ba16ca5a04f816/controllers/admin please find AdminProductsController.php and download is there anyway you can link the one you've downloaded here? Link to comment Share on other sites More sharing options...
Recommended Posts