Fashionist Posted April 26, 2014 Share Posted April 26, 2014 Hi all, I would like to reorder the blockcms link that I have in the footer module. How can I do??? Link to comment Share on other sites More sharing options...
vekia Posted April 26, 2014 Share Posted April 26, 2014 if you're talking about links like; specials new products top sellers etc. you have to change order of links in file blockcms.tpl this file is located in theme directory: /themes/default-bootstrap/modules/blockcms/blockcms.tpl open this file and reorder links in this code <!-- MODULE Block footer --> <section class="footer-block col-xs-12 col-sm-2" id="block_various_links_footer"> <h4>{l s='Information' mod='blockcms'}</h4> <ul class="toggle-footer"> {if $show_price_drop && !$PS_CATALOG_MODE} <li class="item"> <a href="{$link->getPageLink('prices-drop')|escape:'html':'UTF-8'}" title="{l s='Specials' mod='blockcms'}"> {l s='Specials' mod='blockcms'} </a> </li> {/if} {if $show_new_products} <li class="item"> <a href="{$link->getPageLink('new-products')|escape:'html':'UTF-8'}" title="{l s='New products' mod='blockcms'}"> {l s='New products' mod='blockcms'} </a> </li> {/if} {if $show_best_sales && !$PS_CATALOG_MODE} <li class="item"> <a href="{$link->getPageLink('best-sales')|escape:'html':'UTF-8'}" title="{l s='Top sellers' mod='blockcms'}"> {l s='Top sellers' mod='blockcms'} </a> </li> {/if} {if $display_stores_footer} <li class="item"> <a href="{$link->getPageLink('stores')|escape:'html':'UTF-8'}" title="{l s='Our stores' mod='blockcms'}"> {l s='Our stores' mod='blockcms'} </a> </li> {/if} {if $show_contact} <li class="item"> <a href="{$link->getPageLink($contact_url, true)|escape:'html':'UTF-8'}" title="{l s='Contact us' mod='blockcms'}"> {l s='Contact us' mod='blockcms'} </a> </li> {/if} {foreach from=$cmslinks item=cmslink} {if $cmslink.meta_title != ''} <li class="item"> <a href="{$cmslink.link|addslashes|escape:'html':'UTF-8'}" title="{$cmslink.meta_title|escape:'html':'UTF-8'}"> {$cmslink.meta_title|escape:'html':'UTF-8'} </a> </li> {/if} {/foreach} {if $show_sitemap} <li> <a href="{$link->getPageLink('sitemap')|escape:'html':'UTF-8'}" title="{l s='Sitemap' mod='blockcms'}"> {l s='Sitemap' mod='blockcms'} </a> </li> {/if} </ul> {$footer_text} </section> {if $display_poweredby} <section class="bottom-footer col-xs-12"> <div> © 2014 {l s='[1]Ecommerce software by %s[/1]' mod='blockcms' sprintf=['PrestaShop™'] tags=['<a class="_blank" href="http://www.prestashop.com">']} </div> </section> {/if} <!-- /MODULE Block footer --> 1 Link to comment Share on other sites More sharing options...
Fashionist Posted April 26, 2014 Author Share Posted April 26, 2014 Yes this but I have add some link so I don't know how to change the order cause my new cms articles doesn't appear in the blockcms.tpl Link to comment Share on other sites More sharing options...
vekia Posted April 26, 2014 Share Posted April 26, 2014 how you added links to this section? Link to comment Share on other sites More sharing options...
Fashionist Posted April 26, 2014 Author Share Posted April 26, 2014 Trought the back office module of cmsblock. I add an image Link to comment Share on other sites More sharing options...
vekia Posted April 26, 2014 Share Posted April 26, 2014 at the moment is a bit complicated. there is no option and "easy" way to reorder these links. but it possible to achieve go to phpmyadmin and open ps_configuration table search for FOOTER_CMS variable and change order of elements in "value" field for example: 0_2|0_3|0_4|0_5 to reorder it change position of each element: 0_5|0_4|0_3|0_2 3 Link to comment Share on other sites More sharing options...
Fashionist Posted April 28, 2014 Author Share Posted April 28, 2014 I don't have FOOTER_CMS in PS_CONFIGURATION table Link to comment Share on other sites More sharing options...
vekia Posted April 28, 2014 Share Posted April 28, 2014 and if you run this query select * from ps_configuration where name like '%footer%' do you see any similar name? Link to comment Share on other sites More sharing options...
vmarkovic Posted April 28, 2014 Share Posted April 28, 2014 Hi Fashionist, Vekia,I certify that I have successfully changed the order of links with above method from Vekia.Before: After: Cheers Vekia and Thanks once again Link to comment Share on other sites More sharing options...
vekia Posted April 28, 2014 Share Posted April 28, 2014 yeap i checked several installations of prestashop 1.6 and everywhere the footer_cms variable exists i bet that in your shop it must also exists Link to comment Share on other sites More sharing options...
Fashionist Posted April 28, 2014 Author Share Posted April 28, 2014 nothing similar....it's strange.....i past a pic Link to comment Share on other sites More sharing options...
Fashionist Posted May 1, 2014 Author Share Posted May 1, 2014 up.... Link to comment Share on other sites More sharing options...
walvin Posted May 22, 2014 Share Posted May 22, 2014 I was looking to do the same thing. I can't believe they are not drag and drop like the shipping is, or at least editable in the backend. I went through my database and no, I do not have the FOOTER_CMS in the PS_CONFIGURATION table either. What I do have is a table called PS_CMS that has a position attribute and closely matches the CMS info. Common sense would say this is it, but I have not tried it. It seems to match very closely to the CMS and it would make sense that changing these postions will change the CMS positions. That being said I'm going live in a few days and I reall don't feel like nuking the database right now, just in case But, it would seem the PS_CMS table is where the positions are located. Anyone want to give it a try and report back? Link to comment Share on other sites More sharing options...
Nikko Posted July 9, 2014 Share Posted July 9, 2014 I went to phpmyadmin and open ps_cms_lang table. The information categories where there so i change the order of elements in "value" id_cms The problem is that only the content moved. That means that if you have let's say 3 categories such as: 1) How to buy 2) Returns 3) Secure payment the content of the "secure payment" transferred to the "how to buy" but the categories stayed as was. So now you open the "How to buy" and you read the content of "secure payment". Any help would be very appreciated. Thank you in advance. Link to comment Share on other sites More sharing options...
Nikko Posted July 9, 2014 Share Posted July 9, 2014 I've tried one more time and it just happened. Everything is ok now. Right category with right content. Solved! Link to comment Share on other sites More sharing options...
Nikko Posted July 9, 2014 Share Posted July 9, 2014 Ok. After you do the changes to the ps_cms_lang you have to go to the back office >Preferences >CMS and edit all the pages. Actually you don't have to do anything, so hit the save button. I don't know why this is happening, but it works. I'm using Prestashop 1.6.0.8 with two languages. Thank you all for your previous posts. You show us the way. Link to comment Share on other sites More sharing options...
moonmosaic Posted August 2, 2014 Share Posted August 2, 2014 I have the same problem. I only have two values in footer_cms: 0_2|0_3 but about 7 items. How do I put them in alphabetical order? Link to comment Share on other sites More sharing options...
ewhale Posted September 11, 2014 Share Posted September 11, 2014 Thank you VEKIA, I have change mine in my DB to 0_4|0_1|0_5|0_3 and it display well in my front, perfect as if not very accademic, according to what I red around, preceding versions of PS where giving opportunity to do it in the BO, there'sa threat here about that but not yet updated to last PS 1.6. Link to comment Share on other sites More sharing options...
Recommended Posts