214

Product support

Get help in the plugin support forum.

Categories

Installation

Run the following command in your terminal or install from the marketplace

$ php artisan plugin:install Lovency.GoodNewsProductList

Sample code for pages

News in products

{% if obProduct.articles.isNotEmpty() %}
    {% for item in obProduct.articles %}
        <a href="{{ item.slug }}">{{ item.title }}</a>
    {% endfor %}
{% endif %}

Products in news

{% if obArticle.products.isNotEmpty() %}
    {% for item in obArticle.products %}
      <a href="{{ item.slug }}">{{ item.name }}</a>
    {% endfor %}
{% endif %}
1.0.0

Initialize plugin.

Jun 17, 2021