Dali theme Bug reviews link on product page

Hi,

There's a bug on the theme Dali, i found out what it is.
When you click the link to the reviews tab, it dont go to the right place when you enable lazy loading image.
The reason is that its calculate the anchor position without the images being present in the DOM (cause it is lazy loading).

Can some one fix this please...?

Thank you!
 
Some temporary fix...
...
In the allmin.js file, replace this part:

e('.toreview').on('click', function () {
e('#item-revs').addClass('active'),
e('#acc-item-revs').addClass('show'),
e('html, body').animate({
scrollTop: 50000 // will scroll to the bottom
}, 1000, "linear", function () {
$target = e('#item-revs').offset().top - 170;
e('html, body').animate({ scrollTop: $target}, 1000, "linear"); // and then go back to the rev link
}
})
}),
 
E

Ekaterina Sayapina

Guest
Some temporary fix...
...
In the allmin.js file, replace this part:

e('.toreview').on('click', function () {
e('#item-revs').addClass('active'),
e('#acc-item-revs').addClass('show'),
e('html, body').animate({
scrollTop: 50000 // will scroll to the bottom
}, 1000, "linear", function () {
$target = e('#item-revs').offset().top - 170;
e('html, body').animate({ scrollTop: $target}, 1000, "linear"); // and then go back to the rev link
}
})
}),
Hello,

You're right.
The reviews link works fine if the Reviews tab is open by default. However, in case you have your Product Details tab open, the reviews link doesn't go to the right place.
Thank you for letting us know! I'll let you know once it's fixed.
 
Top