B
B
bionkin2016-05-19 19:50:47
Programming
bionkin, 2016-05-19 19:50:47

How to display products from the main catalog by manufacturers. Bitrix?

There is a main directory. It is required to make a division by manufacturers while maintaining the directory structure. Those. so that the user can choose how best to search for products by manufacturers or by main categories.
So far, I’ve only thought up all the manufacturers to drive into the highload block, create their own section for each manufacturer and display products there by filter:

<?
GLOBAL $arrFilterBrand; 
$selectID = "hHeqjQSJ"; 
$arrFilterBrand = array("PROPERTY_48_VALUE"=>$selectID);
?>

Filter in the component:
"FILTER_NAME" => "arrFilterBrand"
But there is a lot of manual work here, the content manager itself will not be able to add a page of a new manufacturer with a component.
Maybe there is a solution how to implement this while maintaining the structure (so that the products are displayed all on one page, but broken down by main categories)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-05-20
@gangstarcj

Make one page, make the brand in the url (site.ru/brands/?brand=brand_name) take it ($_GET["brand"]) and use it in the filter.
You can also try to do it with the CNC so that it automatically converts to /brands/brand_name/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question