O
O
orbilis2014-12-13 11:08:00
PHP
orbilis, 2014-12-13 11:08:00

How to set up the output of the shopping catalog in the mobile version of the Bitrix store separately from the main version?

Hello!
The task is to create a mobile version of a working online store.
I created a folder /m, set a separate template for it, copied the site structure there.
The main page of the mobile version has a comprehensive catalog component. It works, the products are displayed, but when I try to view the product in detail, it redirects me to the full version of the site.
How to avoid it?
-------------------------------------------------- --------
Update 1:
I'll try to detail the question a little.
By clicking on the sitename/m link, I regularly get into the mobile list of catalog products through the bitrix:catalog component located in sitename/m/index.php
By clicking on the sitename/m/section_name/ link, I regularly get into the mobile product list through the same file.
But for some reason, following the link sitename/m/section_name/product_name redirects me to sitename/section_name/product_name - to the card view on the main version of the site.
The component has CNC enabled. But there is no such rule in urlrewrite.php.
Here's everything about the /m directory in urlrewrite.php:
5b3b27d1429d487d9f379f27cd653aa3.png
I feel that I misunderstand something in the Bitrix CNC.
-------------------------------------------------- -------------
Update 2: It looks like the CNC has nothing to do with it. If you disable the CNC in the catalog component in the mobile version, then the links in the product list become sitename/m/index.php?SECTION_ID=57&ELEMENT_ID=244, but still redirect to sitename/index.php?SECTION_ID=57&ELEMENT_ID=
244 be like that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2014-12-13
@babarun

It is better to use the wizard to create a mobile version. Simply copying an existing site and replacing it with a mobile template will not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question