prestashop get all products prestashop show all products in category prestashop show all products in category

The solution for “prestashop get all products prestashop show all products in category prestashop show all products in category” can be found here. The following code will assist you in solving the problem.

$all_products=Product::getProducts($id_lang, $start, $limit, $order_by, $order_way, $id_category = false, $only_active = false, Context $context = null);if ($resultsPerPage <= 0 || $resultsPerPage > 36) {
$resultsPerPage = Configuration::get(‘PS_PRODUCTS_PER_PAGE’);
} {if !empty($smarty.get.order)}
{capture assign=’ordering’}order={$smarty.get.order}&{/capture}
{else}
{assign var=’ordering’ value=”}
{/if}

{if !empty($smarty.get.resultsPerPage)}
{assign var=’results_per_page’ value=$smarty.get.resultsPerPage}
{else}
{assign var=’results_per_page’ value=25}
{/if}

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in