1

I want to somehow get the product id from j2store and display the main image of each product in the article section each product.

In /templates/namira/html/com_content/article/default.php there are lines of codes which allow to display some content of the j2store product.

<div itemprop="articleBody">
    <?php echo $this->item->text; ?>
</div>

But how to alter this code to include also the main image of the product? something like:

echo $this->product->j2store_product_id; 

I want to include the j2store product class.

1
  • Welcome to JSE, please take our tour.
    – mickmackusa
    Jun 19 at 22:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.