How list in a page all reviews of my products?

Some code to list all reviews in products?

i like create a PAGE to list all reviews of my products, and set to view my visits and clients.


1 answer

  • 1
    Mike Webasyst July 23, 2018 10:30 #

    Approximately this way:

    <ul>
        {foreach $wa->shop->reviews(1000000) as $review}
            <li>
                <p>Name: {$review.name}</p>
                <p>Product: <a href="{$review.product_url}">{$review.product_name}</a></p>
                <p>Text: {$review.text}</p>
            </li>
        {/foreach}
    </ul>

    Use

    {$review|wa_dumpc}

    inside {foreach} cycle to view single reviews item contents.

Add answer

To add a comment please sign up or login