Skip to content

Commit

Permalink
Add missing table_name parameter on generic loop
Browse files Browse the repository at this point in the history
  • Loading branch information
lopes-vincent authored Feb 1, 2023
1 parent 6844955 commit e78409e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/loops/Generic.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ I want to display all products visible and not virtual sorted by creation date (

```smarty
<ul>
{loop type="generic" name="my_product_loop" filters="visible:1|virtual:0" orders="created_at:DESC"}
{loop type="generic" name="my_product_loop" table_name="product" filters="visible:1|virtual:0" orders="created_at:DESC"}
<li>{$ID} {$TITLE} ({$REF})</li>
{/loop}
</ul>
Expand Down

0 comments on commit e78409e

Please sign in to comment.