Jump to content


  • Posts

  • Joined

  • Last visited

Profile Information

  • Activity

mr.moonkey's Achievements


Newbie (1/14)



  1. back to the first question for ps how to show content of CMS page in tpl page? i would love to have Terms and Conditions CMS page on quick-order and it seems like it would be helpful for many other places
  2. so it seems like that i need to combine this(from OrderOpcController.php): $cms = new CMS(Configuration::get('PS_CONDITIONS_CMS_ID'), $this->context->language->id); $link_conditions = $this->context->link->getCMSLink($cms, $cms->link_rewrite, true); if (!strpos($link_conditions, '?')) $link_conditions .= '?content_only=1'; else $link_conditions .= '&content_only=1'; with this(from forum by rocky for PS 1.3): $cms = new CMS(1, intval($cookie->id_lang)); if (Validate::isLoadedObject($cms)) $smarty->assign('content', $cms->content); and stick it there with this: {$content} but how to combine it? anyone?
  3. Hi people 1) Download the version made by Chirby - http://www.prestashop.com/forums/topic/212061-modulo-blog-noticias-prestashop-152/ 2) Look in PostObject.php line 49 for "parent::validateFields;" and change it to "parent::validateFields(false);" 3) Desactivate Canonical redirection in BO SEO&URL 4) Delete the 4 URL in BO SEO&URL 5) Add to .htaccess just before the # Dispatcher following: # Blog RewriteRule ^(../)blog/all-post.html$ %{ENV:REWRITEBASE}modules/plblog/frontent/all-post.php [QSA,L] RewriteRule ^(../)blog/([a-zA-Z0-9-]*)/([0-9]*)-([a-zA-Z0-9-]*).html$ %{ENV:REWRITEBASE}modules/plblog/frontent/details.php?plcn=$2&plidp=$3&plpn=$4&.php [QSA,L] RewriteRule ^(../)blog/([0-9]*)_([a-zA-Z0-9-]*).html$ %{ENV:REWRITEBASE}modules/plblog/frontent/list-post.php?plidc=$1&plcn=$2&.php [QSA,L] RewriteRule ^(../)blog/tag/([a-zA-Z0-9-]*)_([0-9]*).html$ %{ENV:REWRITEBASE}modules/plblog/frontent/list-tags.php?pltn=$1&plidt=$2&.php [QSA,L] voila! Thanks goes to Chirby and Nerque I dont use categories neither tags but the "parent::validateFields;" appears as well in TagsObject.php The only problem i have is the link <a href="{$home}blog/all-post.html"> placed in menu of the page and when im in blog pages and click the link for some strange reason it duplicate the direction: normal /modules/ps/en/blog/all-post.html but when i want to use the same link from the blog page it duplicate the "blog" /modules/ps/en/blog/blog/all-post.html Dunno how to solve this but the blog works very well Oh and watch out for style.css which replace some styles from global.css Have fun
  4. Buenas 1) Descarga el archivo de Chirby 2) Busca en PostObject.php linea 49 - "parent::validateFields;" y cambia a "parent::validateFields(false);" 3) Desactiva los URL Canonicos en SEO&URL 4) Borra los 4 URL en BO en SEO&URL 5) Ponte en .htaccess justo antes de # Dispatcher siguiente: # Blog RewriteRule ^(../)blog/all-post.html$ %{ENV:REWRITEBASE}modules/plblog/frontent/all-post.php [QSA,L] RewriteRule ^(../)blog/([a-zA-Z0-9-]*)/([0-9]*)-([a-zA-Z0-9-]*).html$ %{ENV:REWRITEBASE}modules/plblog/frontent/details.php?plcn=$2&plidp=$3&plpn=$4&.php [QSA,L] RewriteRule ^(../)blog/([0-9]*)_([a-zA-Z0-9-]*).html$ %{ENV:REWRITEBASE}modules/plblog/frontent/list-post.php?plidc=$1&plcn=$2&.php [QSA,L] RewriteRule ^(../)blog/tag/([a-zA-Z0-9-]*)_([0-9]*).html$ %{ENV:REWRITEBASE}modules/plblog/frontent/list-tags.php?pltn=$1&plidt=$2&.php [QSA,L] voila! Muchas gracias a Chirby y Nerque no hizo nada con ExecuteS, no uso categorias ni tags pero el "parent::validateFields;" se aparece tambien TagsObject.php el unico problema que tengo es que tengo un link <a href="{$home}blog/all-post.html"> en menu de la pagina y cuando entro al blog y hago el click al link por algun motivo extrano duplica la direccion: asi es normal /modules/ps/en/blog/all-post.html" pero cuando quiero usar el mismo link en la pagina del blog se duplica el "blog" /modules/ps/en/blog/blog/all-post.html" no se como solucionar eso pero el blog funciona muy bien ten cuidado con style.css que reemplaza algunos estilos de global.css Saludos
  5. Buenas, estoy todo perdido con todo va bien pero no puedo con las FriendlyURL si hago todo lo que se dice aquí lo único que me funciona es view all y esta. No hay diferencia si tengo las Canonicas activadas o no ... RewriteRule ^(../)blog/all-post.html$ %{ENV:REWRITEBASE}modules/plblog/frontent/all-post.php [QSA,L] RewriteRule ^(../)blog/([a-zA-Z0-9-]*)/([0-9]*)-([a-zA-Z0-9-]*).html$ %{ENV:REWRITEBASE}modules/plblog/frontent/details.php?plcn=$1&plidp=$2&plpn=$3&.php [QSA,L] RewriteRule ^(../)blog/([0-9]*)_([a-zA-Z0-9-]*).html$ %{ENV:REWRITEBASE}modules/plblog/frontent/list-post.php?plidc=$1&plcn=$2&.php [QSA,L] RewriteRule ^(../)blog/tag/([a-zA-Z0-9-]*)_([0-9]*).html$ %{ENV:REWRITEBASE}modules/plblog/frontent/list-tags.php?pltn=$1&plidt=$2&.php [QSA,L] hay alguien quien sabe como resolver ese tema de FriendlyURL por desde cuando parece que es una versión estable y funciona bien. Merci
  6. Hey people, No1: {include file="$tpl_dir./order-payment.tpl"} something like this but with cms and its ID Im really stuck with it and cant find solution. Iv browsed whole forum and nothing is working :/
  7. Hi folks, No 1: How to include cms page in template page. I believe this would be really useful for everyone as you can edit anything from admin including languages ... Case: I want to have Terms and Conditions cms page on checkout page. The point is that i want customer to really read those terms and not just click on I agree. Problem: I really dont know how to include cms page and the easiest solution would be trough {include} but i dont know how to call cms page and its ID No2: Im trying to figure out how to make list of cms pages in template page. Iv tried to take code of such lists from cmsblockmodule, cms.tpl, footer, sitemap, etc .... The point is that i wanna show the list of cms pages directly without configuring it trough module as it works on cms.tpl page. Just simply load list of all the cms pages i have active back in CMS admin page. thanks in advance
  8. Hi there, This works for me @ product_list.css #product_list li { display:inline-block; //this is it! } and than you have to fiddle around with sizes of left, center and right collumn. Good luck
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More