0

I use the tab-view on the product page for mobile devices, but I show all the tabs open at once on the desktop view.

This causes a problem with the reviews. The form for adding a review is shown, but the existing reviews themselves don't show.

I realise they must be getting loaded by Knockout when normally you click the tab. But me having all the tabs open onload means the reviews never get shown. It does work however, if I add #reviews to the product.

review.phtml is loaded, but the JS in there doesn't seem to fire, I think this is the cause of this issue. Anyone got a lead on how to modify this so it does fire on page load?

<script type="text/x-magento-init">
{
    "*": {
        "Magento_Review/js/process-reviews": {
            "productReviewUrl": "<?= $block->escapeJs($block->escapeUrl($block->getProductReviewUrl())) ?>",
            "reviewsTabSelector": "#tab-label-reviews"
        }
    }
}
</script>
  • same problem here. Any solution? – Gerardo Siano Apr 19 at 1:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.