Jump to content

[solved]Remove some http


Go to solution Solved by selectshop.at,

Recommended Posts

Hello.

 

My page is https://galaxybath.co.uk/

 

I want to remove some http from my code.

I found it in <div class="product-container" itemscope itemtype="http://schema.org/Product"><div class="left-block"><div class="product-image-container">.

 

Where I can find that code, in which file?

 

I think that this is in some module but I don't know in which.

Share this post


Link to post
Share on other sites

This schema.org url is necessary for microdata. Your products would not be listed any longer as rich snippets by Google. There is no https address for this in header.tpl, so you better do not follow selectshop.at's advice to change this file. You find it in product.tpl of your theme.

Share this post


Link to post
Share on other sites

@ eleazar - please refresh your know how. This is wrong. You could as well reach schema.org by https. ou can use both, although http is recommended and the more known one: http://schema.org/docs/faq.html#19

And that it's needed for SEO and should not be removed, was already answered in post #2 and #3. Perhaps you overlooked that ?

@ budrys - if your are using latest PS 1.6. than you possibly will find this in products.tpl as eleazar adviced. For older PS versions and/or non native themes you can find it in header.tpl. Take a look on both.

Share this post


Link to post
Share on other sites

@selectshop.at

:D:D:D 

Recommended? No, both urls work.

Zitat

There is a general trend towards using 'https' more widely, and you can already write 'https://schema.org' in your structured data. Over time we will migrate the schema.org site itself towards using https: as the default version of the site and our preferred form in examples. However 'http://schema.org' -based URLs in structured data markup will remain widely understood for the forseeable future and there should be no urgency about migrating existing data. This is a lengthy way of saying that both 'https://schema.org' and 'http://schema.org' are fine.

 

@Budrys

To cut to the chase:

  1. If your shop is SSL protected, use https://schema.org, if not you may use the http address.
  2. You need to change the url several times in product.tpl
  3. Never ever apply changes like this in header.tpl, no matter if you use PrestaShop 1.4, 1.5 or 1.6. It would always be the wrong place.

Share this post


Link to post
Share on other sites

If you don't find the code in header.tpl nor in product.tpl, than it is better you ask the developer of the theme where he added the microformat. According to the source code of your site it should be found in the template of products, so product.tpl.

Alternatively you can give me access to your FTP by PM and I search and change it for you.

Share this post


Link to post
Share on other sites
  • Solution

Indeed theme developer did not followed Prestashop architecture. Found http://schema.org in several theme template files and theme module template files. All changed for now to https://. Delete cache and check.

If you are still having the problem, than please write on PM. If not I will close this question as answered.

Share this post


Link to post
Share on other sites

Last thing.

 

I still have http in add to cart button:

 

<span class="new-label">New</span> </a><div class="button-container_up"> <a class="button ajax_add_to_cart_button btn btn-default dodaj_do_koszyka" href="http://galaxybath.co.uk/cart?add=1&amp;id_product=1766&amp;token=b1ffdd27046f7997aa3f5df00ead4370" rel="nofollow" title="Add to cart" data-id-product="1766">&#xf07a; </a> 

 

That is in "Special" and "New products" modules.

 

How can I find their files?

Edited by Budrys (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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