Jump to content

New Products Link In Homepage Broken By... What?


Recommended Posts

I have a strange problem. The list of new products in the homepage is generated correctly with all links pointing to the product page, but then something happens... some javascript file must be repalicing correct links with a link to the new products category page.

 

You can see it at the address http://i-pet-you.com/en/

If you go over a product link you can see a generic link to http://i-pet-you.com/en/nuovi-prodotti, the same link for every product; this happens also with inspector. But if you look at page source (not via inspector) you can see that the links are all correct and pointing to the product page! You'll even notice my debug comment "<!-- fil debug http://i-pet-you.com/en/collars/773-collar-bow-red.html -->" that prints before every product div the $product.link variable.

 

If I disable javascript everything works (of course), so it is some javascript that's playing this trick on me. But which one?

I tried to disable Layered Navigation but the situation remains the same.

 

Any idea?

 

Thank you!

Link to comment
Share on other sites

It is about the New products block module. The link (href) is always nuovi-prodotti.

<div class="product-container" itemtype="http://schema.org/Product" itemscope="">
  <div class="left-block">
    <div class="product-image-container">
      <a class="product_img_link" itemprop="url" title="Collar Bow Black" rel="fil" href="nuovi-prodotti">
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

 

It is about the New products block module. The link (href) is always nuovi-prodotti.

<div class="product-container" itemtype="http://schema.org/Product" itemscope="">
  <div class="left-block">
    <div class="product-image-container">
      <a class="product_img_link" itemprop="url" title="Collar Bow Black" rel="fil" href="nuovi-prodotti">

 

Thank you for the guessing, but it's not exactly like that. Ichecked the module again and again and I eventually found out that the module is correct, if you disable javascript and look at the page source you will see:

 

        <div class="product-container" itemscope itemtype="http://schema.org/Product">

                <div class="left-block">

                    <div class="product-image-container">

                        <a class="product_img_link"    href="http://i-pet-you.com/en/pull/799-happy-new-year-pull-black-limited-edition.html" rel="fil" title="Happy New Year Pull Black - Limited Edition" itemprop="url">

   

 

So the page code is generated correctly with different links for every product. It is some javascript that overwrites the URL! But which one? How can I solve it?

 

Link to comment
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...