How to get J2Store item price

by webchun   Last Updated May 15, 2019 04:10 AM

I'm trying to add J2Store item price to the (my modified) built-in joomla mod_articles_latest.

I'm able to get a 'complete' Add to Cart block with this code :

require_once(JPATH_ADMINISTRATOR.'/components/com_j2store/helpers/j2store.php');
$product = F0FTable::getAnInstance('Product', 'J2StoreTable')->getClone();
            if($product->get_product_by_source('com_content', $item->id)) {
            echo $product->get_product_html();
        }

But how can I get any of elements on that block partially? For example, how can I get the price only or add to cart button only?

Tags : j2store


Related Questions


Updated April 30, 2019 00:10 AM

Updated May 17, 2019 15:10 PM

Updated June 23, 2019 18:10 PM

Updated July 07, 2018 00:10 AM

Updated March 29, 2019 16:10 PM