Jump to content

Homefeatured module - "Add to cart" translation


Recommended Posts

Hi!

I'm using Prestashop 1.5.6.0 . Check it here:

http://shop.zabavu.com.ua/uk/

I'm having a problem related to the homefeatured translation with "ADD TO CART" and "VIEW".

Whatever language I select for the page, I always get "ADD TO CART" and "VIEW" in english.

 

 

Any idea how can I fix it?

 

Thanks

Iurii

Edited by loliloli (see edit history)
Link to comment
Share on other sites

homefeatured.tpl file contents:

 

  1. {*
  2. * 2007-2012 PrestaShop
  3. *
  4. * NOTICE OF LICENSE
  5. *
  6. * This source file is subject to the Academic Free License (AFL 3.0)
  7. * that is bundled with this package in the file LICENSE.txt.
  8. * It is also available through the world-wide-web at this URL:
  9. * If you did not receive a copy of the license and are unable to
  10. * obtain it through the world-wide-web, please send an email
  11. * to [email protected] so we can send you a copy immediately.
  12. *
  13. * DISCLAIMER
  14. *
  15. * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
  16. * versions in the future. If you wish to customize PrestaShop for your
  17. * needs please refer to http://www.prestashop.com for more information.
  18. *
  19. * @author PrestaShop SA <[email protected]>
  20. * @copyright 2007-2012 PrestaShop SA
  21. * @version Release: $Revision: 6594 $
  22. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  23. * International Registered Trademark & Property of PrestaShop SA
  24. *}
  25.  
  26. <!-- MODULE Home Featured Products -->
  27. <div id="featured_products">
  28.     <h4>{l s='Featured products' mod='homefeatured'}</h4>
  29.     {if isset($products) AND $products}
  30.         <div class="block_content">
  31.             {assign var='liHeight' value=250}
  32.             {assign var='nbItemsPerLine' value=4}
  33.             {assign var='nbLi' value=$products|@count}
  34.             {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
  35.             {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}
  36.                 <ul >
  37.             {foreach from=$products item=product name=homeFeaturedProducts}
  38.                 {math equation="(total%perLine)" total=$smarty.foreach.homeFeaturedProducts.total perLine=$nbItemsPerLine assign=totModulo}
  39.                 {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
  40. <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.iteration is div by 4} omega{/if} num-{$smarty.foreach.homeFeaturedProducts.iteration}">
  41. <a class="product_image" href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image">
  42. <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'tm_home')}" alt="{$product.name|escape:html:'UTF-8'}" />
  43. </a>
  44. <div class="featured_box">
  45.      <h5><a class="product_link" href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:55:'...'|escape:'htmlall':'UTF-8'}</a></h5>
  46. {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}{/if}     
  47. <div class="clear"></div>
  48.     <a class="button" href="{$product.link}" title="{l s='View' mod='homefeatured'}"><span>{l s='View' mod='homefeatured'}</span></a>
  49.                     </div>
  50.                 </li>
  51.             {/foreach}
  52.             </ul>
  53.     </div>
  54.         {else}
  55.         <p>{l s='No featured products' mod='homefeatured'}</p>
  56.     {/if}
  57. </div>
  58. <!-- /MODULE Home Featured Products -->
  59.  
Link to comment
Share on other sites

ok, so it should work :/

while you're on localization > translations page you have to select your theme from second dropdown, if you will not select correct theme, it will not work. are you sure that you selected correct theme ?

 

if so, i have no idea what's goin on there, maybe some caching problem (tried to clear cache?)

Link to comment
Share on other sites

×
×
  • Create New...