MAMAY Posted March 30, 2011 Posted March 30, 2011 У меня категирии выводятся в виде сетки из 4 столбцов, соответственно количество карточек товара должно быть кратное 4м, но в переключателе выбора количества товара на странице только 10 20 30, как мне задать например 8 16 24 32 и тд?? Share this post Link to post Share on other sites More sharing options...
MAMAY Posted March 30, 2011 Posted March 30, 2011 Попробуйте сделать сами, получилось? Вот и у меня не получается, прочтите пожалуйста повнимательней мой вопрос. Share this post Link to post Share on other sites More sharing options...
MAMAY Posted March 31, 2011 Posted March 31, 2011 Видимо придётся пояснить, не этому хаму сверху, а другим зашедшим. Пояснения прилагаю в виде файла. Как сделать чтобы было не 8 10 20, а 8 16 24 32 например?? Share this post Link to post Share on other sites More sharing options...
artyr_n Posted March 31, 2011 Posted March 31, 2011 открываем pagination.php ищем $nArray = intval(Configuration::get('PS_PRODUCTS_PER_PAGE')) != 10 ? array(intval(Configuration::get('PS_PRODUCTS_PER_PAGE')), 10, 20, 50) : array(10, 20, 50); меняем на $nArray = array(8, 16, 24, 32); Share this post Link to post Share on other sites More sharing options...
MAMAY Posted April 2, 2011 Posted April 2, 2011 У меня версия престы 1.4, к сожалению там нет подобных строк и добавлением этих ничего не меняется Share this post Link to post Share on other sites More sharing options...
artyr_n Posted April 2, 2011 Posted April 2, 2011 в 1.4 это находится в файле classes/FrontController.php public function pagination($nbProducts = 10) Share this post Link to post Share on other sites More sharing options...
MAMAY Posted April 2, 2011 Posted April 2, 2011 в 1.4 это находится в файле classes/FrontController.php public function pagination($nbProducts = 10) Спасибо огромное! Вы меня спасли Share this post Link to post Share on other sites More sharing options...
MAMAY Posted April 13, 2011 Posted April 13, 2011 Думаю задать этот вопрос будет лучше сюда.Как сделать так, чтобы не надо было нажимать ОК, после того, как выбрал количество отображаемых позиций на странице? Share this post Link to post Share on other sites More sharing options...
artyr_n Posted April 13, 2011 Posted April 13, 2011 1.4в файле /themes/ваша тема/pagination.tplменяем две строчки <form action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get" class="pagination"> на <form name="pagenum" action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get" class="pagination"> и на как с форумом боротся яву вырезает всю даже в блоках CODEприатачил файл в нем вторая строчкаможет кто то объяснить как вставлять куски явы submit.txt Share this post Link to post Share on other sites More sharing options...
MAMAY Posted April 13, 2011 Posted April 13, 2011 Не работает почему то... Share this post Link to post Share on other sites More sharing options...
artyr_n Posted April 13, 2011 Posted April 13, 2011 Я проверял у меня работает на всякий случай приложил весь файл.Вы свой сохраните в бакап а тот что в атаче перепешите на сайт.У вас сайт в интернете? pagination.zip Share this post Link to post Share on other sites More sharing options...
MAMAY Posted April 13, 2011 Posted April 13, 2011 Заменил на ваш файл, но результата этого не дало. К сожалению и сайт не могу показать, но файлы пагинации у нас идентичные на первый взгляд. Share this post Link to post Share on other sites More sharing options...
artyr_n Posted April 13, 2011 Posted April 13, 2011 а какой броузер? а compile очистили? Share this post Link to post Share on other sites More sharing options...
MAMAY Posted April 13, 2011 Posted April 13, 2011 Chrome и Firefox 3.5, обе на маке.Галочка на "Force compile:" стоит. А как его чистить я не знаю Share this post Link to post Share on other sites More sharing options...
artyr_n Posted April 13, 2011 Posted April 13, 2011 ну мака у меня нет но в тех же броузерах под убунтой работает попробуйте поменять onсhange на onChange третья буква © большаяа директория находится тут /tools/smarty/compile/ Share this post Link to post Share on other sites More sharing options...
MAMAY Posted April 13, 2011 Posted April 13, 2011 Почистил, не реагирует без кнопки никак видимо не судьба.... Share this post Link to post Share on other sites More sharing options...
lor1en Posted April 13, 2011 Posted April 13, 2011 поставил у себя, все в порядке .. Share this post Link to post Share on other sites More sharing options...
artyr_n Posted April 13, 2011 Posted April 13, 2011 в результате экспериментов с MAMAY на маке заработало так как в прикрепленном файлепод убунтой проверял в Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3Google Chrome 5.0.375.55работает pagination.txt Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now