Jump to content

reorder blockcms link


Recommended Posts

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 -->
  • Like 1
Link to comment
Share on other sites

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
  • Like 3
Link to comment
Share on other sites

  • 3 weeks later...

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? :D

Link to comment
Share on other sites

  • 1 month later...

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

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

  • 4 weeks later...
  • 1 month later...

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

×
×
  • Create New...