wagnerwagner/merx

$productList empty

alexpi opened this issue · 1 comments

Hello,

I have the following content structure:

content/
  products/
    1_598879/
      product.el.txt
      product.en.txt

product.el.txt:

Title: 598879
----
Price: 10.00
----
Tax: 24
...

If I log $productList, it is empty. Am I missing some requirement for pages to be listed as products?

Hey @alexpi,

Merx does not provide a tool to show all products. You can use $site->index()->template('product') to list all products of your shop.

ProductList is the base of Cart. To learn how to use $productList I recommend the Wishlist Cookbook.