SilverShop\Comparison\Pagetypes\ProductComparisonPageController::getComparedTableList
Returns an {@link ArrayList} with all the values up to maxproductComparisons filled with objects. For instance, when generating a fixed 4 column table, the last columns can be empty. Checking for a product is done via if $Product
<code> <% loop ComparedTableList %> <div class="col-3"> <% if Product %>$Name<% end_if %> </div> <% end_loop %> Ensure you have set MaxProductComparisons through the config API.
Signature
public function getComparedTableList()
Returns
- ArrayList