Jump to content

Miguel Bambo

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by Miguel Bambo

  1. Hi,
    I think it is a BUG.
    I would like to add my own options inside CONDITION variable as illustrated in the image attached but I dont know where I can change core files.
     

    I have added 'fair' and 'great' condition options without success.

    {if !$product->is_virtual && $product->condition}
                <p id="product_condition">
                    <label>{l s='Condition:'} </label>
                    {if $product->condition == 'new'}
                        <link itemprop="itemCondition" href="http://schema.org/NewCondition"/>
                        <span class="editable">{l s='New'}</span>
                    {elseif $product->condition == 'used'}
                        <link itemprop="itemCondition" href="http://schema.org/UsedCondition"/>
                        <span class="editable">{l s='Used'}</span>
                    {elseif $product->condition == 'refurbished'}
                        <link itemprop="itemCondition" href="http://schema.org/RefurbishedCondition"/>
                        <span class="editable">{l s='Refurbished'}</span>
                    {elseif $product->condition == 'fair'}
                        <link itemprop="itemCondition" href="http://schema.org/FairCondition"/>
                        <span class="editable">{l s='Fair'}</span>
                    {elseif $product->condition == 'great'}
                        <link itemprop="itemCondition" href="http://schema.org/GreatCondition"/>
                        <span class="editable">{l s='Great'}</span>
                    {/if}
                </p>
                {/if}

     

    I dont know if I missed something while coding.

     

    Your solution is welcome.

     

    Regards.

    post-1017060-0-20876300-1457254035_thumb.jpg

    post-1017060-0-64819000-1457253849_thumb.jpg

  2. Hi,
     
    I would like to add my own options inside CONDITION variable as illustrated in the image attached but I dont know where I can change core files.
     

    I have added 'fair' and 'great' condition options without success.

    {if !$product->is_virtual && $product->condition}
                <p id="product_condition">
                    <label>{l s='Condition:'} </label>
                    {if $product->condition == 'new'}
                        <link itemprop="itemCondition" href="http://schema.org/NewCondition"/>
                        <span class="editable">{l s='New'}</span>
                    {elseif $product->condition == 'used'}
                        <link itemprop="itemCondition" href="http://schema.org/UsedCondition"/>
                        <span class="editable">{l s='Used'}</span>
                    {elseif $product->condition == 'refurbished'}
                        <link itemprop="itemCondition" href="http://schema.org/RefurbishedCondition"/>
                        <span class="editable">{l s='Refurbished'}</span>
                    {elseif $product->condition == 'fair'}
                        <link itemprop="itemCondition" href="http://schema.org/FairCondition"/>
                        <span class="editable">{l s='Fair'}</span>
                    {elseif $product->condition == 'great'}
                        <link itemprop="itemCondition" href="http://schema.org/GreatCondition"/>
                        <span class="editable">{l s='Great'}</span>
                    {/if}
                </p>
                {/if}

     

     

    post-1017060-0-17561300-1457188064_thumb.jpg

    post-1017060-0-43336800-1457195553_thumb.jpg

  3. When I put my shop address on the Google Search it returns:

    A description for this result is not available because of this site's robots.txtlearn more.

     

    I dont know where is the problem in the robots.txt file all I find about robots.txt is from Wordpress (a lot) and I cant find some useful explanation on how to adjust (allow) on robots.txt of Prestashop to overcome this issue.

     

    All advices are welcome.

     

    Thanks.

  4. Maybe that was due to not find the field to translate those expressions.

    I have translated on the source .tpl file not allowing me to put two options, english and portuguese words.This is applicable to the date.

    If you know where to put english and portuguese returned words to facebook like and date (if I am correct) please, share it with me.

     

    Regards.

  5. @Flávio's

    Thank you for your prompt response.

    Yes I want that I will try and I will let you know.

     

    And what about the date in the same way?

    Right now ive tried to change it but just was able to change into this format

    Example: Saturday, 21 de February,2016.

     

    I want to translate the weekday and the month into Portuguese and let it choose according to language flag selection as you did it above. Where to do it.

     

    I just saw this part (file: _listing_blog.tpl)

     

    {if $config->get('listing_show_created','1')}
            <span class="blog-created">
                <span class="icon-calendar"> {l s='On' mod='leoblog'}: </span>
                {strtotime($blog.date_add)|date_format:"%A, %e de %B, %Y"}
            </span>
            {/if}

     

    Thanks.

    Also I want ''if instruction'' above.

  6. I want something like this but I am not sure where to start.

     

    <ul id="first-languages" class="countries_ul">
                {foreach from=$languages key=k item=language name="languages"}
                    <li {if $language.iso_code == $lang_iso}class="selected_language"{/if}>
                    {if $language.iso_code != $lang_iso}
                        {assign var=indice_lang value=$language.id_lang}
                        {if isset($lang_rewrite_urls.$indice_lang)}
                            <a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name|escape:'html':'UTF-8'}" rel="alternate" hreflang="{$language.iso_code|escape:'html':'UTF-8'}">
                        {else}
                            <a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name|escape:'html':'UTF-8'}" rel="alternate" hreflang="{$language.iso_code|escape:'html':'UTF-8'}">
         
                        {/if}
                    {/if}
                            <img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code|escape:'html':'UTF-8'}" width="16" height="11" />
                    {if $language.iso_code != $lang_iso}
                        </a>
                    {/if}
                    </li>
                {/foreach}
                </ul>

  7. I want  if I select the English language Flag in the website the blog returns
    Facebook like in English.

    and if I select Portuguese Flag in the website, the blog  returns:
    Facebook like Portuguese.

     

    IN RESUME: I want bilingual Social plugin.

     

    <script type="text/javascript">
                        (function(d, s, id) {
                          var js, fjs = d.getElementsByTagName(s)[0];
                          if (d.getElementById(id)) return;
                          js = d.createElement(s); js.id = id;
                          js.src = "//connect.facebook.net/pt_PT/all.js#xfbml=1";
                          fjs.parentNode.insertBefore(js, fjs);
                        }(document, 'script', 'facebook-jssdk'));
    </script>

    Also, I want it for DATE format in my blog posts (weekday and Month ) to be bilingual. For instance if English flag is selected then returns date format like
    Saturday, February 21, 2016

    and if Portuguese flat is selected then return
    Sábado, 21 de Fevereiro de 2016.

    So, how to adjust the javascript to set a language acording to the user selection through flag.

    Regards.
     

  8. Dear all,

    I am facing a trouble on how to link to bilingual contents on my website using widget form in the PTS Megamenu.

    As the image attached shows you, I would like to know on how:

    I do to paste a link there in the link of the widget in two languages?
    For instance, the links is:

    https://www.shopping.co.mz/pt/16-feima
    and
    https://www.shopping.co.mz/en/16-feima

    I want to know how I write the link the way that if the language of the website is set to Portuguese he goes to https://www.shopping.co.mz/pt/16-feima and if is set to English he goes to https://www.shopping.co.mz/en/16-feima but there the the field for link has just one link to put (see image attached) and there is no option to sellect EN language and add this link https://www.shopping.co.mz/en/16-feima and sellect PT language and add this link https://www.shopping.co.mz/pt/16-feima.

    Please, help me.

    Regards.

    post-1017060-0-42508000-1453983437_thumb.jpg

  9. Prestashop 1.6.0.14 Disabled Google Maps Store Locator On Home Page

     

    I get this error on my site:

    SignatureNotRequired Warning

    The signature parameter is not required for the Google Maps JavaScript API. It won't prevent the Google Maps JavaScript API from working correctly, but it may introduce security risks. Please remove it from your script element.

     

    How to solve this?

     

    I dont know where the javascrit is located.

     

    Might the script <script src="http://maps.google.c.../js?sensor=true"></script> be self removed from stores.tpl?

  10. Prestashop 1.6.0.14 Disabled Google Maps Store Locator On Home Page

    I get this error on my site:

    SignatureNotRequired Warning

    The signature parameter is not required for the Google Maps JavaScript API. It won't prevent the Google Maps JavaScript API from working correctly, but it may introduce security risks. Please remove it from your script element.

     

    How to solve this?

     

    I dont know where the javascrit is located.

     

    Might the script <script src="http://maps.google.c.../js?sensor=true"></script> be self removed from stores.tpl?

  11. I get this error on my site:

    SignatureNotRequired Warning

    The signature parameter is not required for the Google Maps JavaScript API. It won't prevent the Google Maps JavaScript API from working correctly, but it may introduce security risks. Please remove it from your script element.

     

    How to solve this?

     

    I dont know where the javascrit is located.

     

    Might the script <script src="http://maps.google.com/maps/api/js?sensor=true"></script> be self removed from stores.tpl?

×
×
  • Create New...

Important Information

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