Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

korabel

Користувачі
  
  • Публікації

    412
  • З нами

  • Відвідування

Повідомлення, опубліковані користувачем korabel

  1. Подскажите у кого-нибудь работает в "связях": рекомендуемые категории товаров и рекомендуемые категории блога?

    У меня выводятся только рекомендуемые товары и рекомендуемые записи...(((

  2. Заметил такой баг у себя. Отредактировал запись и ее url в разделе записи, и статья пропала, т. е. старую запись нельзя отредактировать, ее можно только удалить и создать новую... Новая создается без проблем а вот старую нельзя отредактировать.

    Еще вопрос: отзывы созданные на странице товара должны появл. записи блога? Они есть в виджете последние комментарии

    И еще url я так понял автоматом не генерирует, нужно самому прописывать?

  3.  

    для товара

    после строки

    $product_info = $this->model_catalog_product->getProduct($product_id);
    

    указать

            $date_modified = strtotime($product_info['date_modified']);
            if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
                $modified_since = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
                if ($modified_since >= $date_modified) {
                    header ("HTTP/1.1 304 Not Modified ");
                    header ("Last-Modified: " . gmdate("D, d M Y H:i:s", $date_modified) . " GMT");
                    exit();
                }
            }
            header ("Last-Modified: " . gmdate("D, d M Y H:i:s", $date_modified) . " GMT");
    

    для категорий просто переменную изменить на $category_info =, да?

  4. Все работает, текст пропал но теперь "красуется" надпись; Нет товаров этого производителя.

    post-669677-0-18468600-1387901193_thumb.jpg

     

    Как убрать кто знает? Причем хотел описание вверх переместить т.е. код ввести  после строчки;

    <h1><?php echo $heading_title; ?></h1>

    Тогда действительно весь товар пропадает с последующих страниц кроме первой(((

  5. catalog/controller/product/category.phpнаходите строчку 114

    $this->data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8');
    меняете на
    if ($page == 1) {$this->data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8');} else {$this->data['description'] = "";}

    подскажите есть ли такое решение только для " производителей" там тоже описание нужно вывести на одну страницу)))) пробовал этот код и туда.., не подходит((((

  6. У меня сработал такой код:

     

    <?php foreach ($breadcrumbs as $i=> $breadcrumb) { ?>
            <?php echo $breadcrumb['separator']; ?><?php if($i+1<count($breadcrumbs)) { ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a> <?php } else { ?><?php echo $breadcrumb['text']; ?><?php } ?>
            <?php } ?>
     
    Шаблон не стандартный....
  7. Вот vqmod фильтрует правда только  по категориям Но работает зато без аякса и запоминает выбор проверено 1.5.4:

     

    <modification>
     
    <id>Filter Products By Category</id>
    <version>1.0.0</version>
    <vqmver>1.0.8</vqmver>
    <author>Modification: Hildebrando; vQmod: Gigo</author>
     
    <file name="admin/controller/catalog/product.php">
            <operation>
                <search position="before" index="1"><![CDATA[
                if (isset($this->request->get['filter_status'])) {
                ]]></search>
                <add><![CDATA[
    //filter category start//
    if (isset($this->request->get['filter_category'])) {
                    $url .= '&filter_category=' . $this->request->get['filter_category'];
                }
    //filter category end//
                ]]></add>
            </operation>
     
            <operation>
                <search position="before" index="2"><![CDATA[
                if (isset($this->request->get['filter_status'])) {
                ]]></search>
                <add><![CDATA[
    //filter category start//
    if (isset($this->request->get['filter_category'])) {
                    $url .= '&filter_category=' . $this->request->get['filter_category'];
                }
    //filter category end//
                ]]></add>
            </operation>
     
            <operation>
                <search position="before" index="4"><![CDATA[
                if (isset($this->request->get['filter_quantity'])) {
                ]]></search>
                <add><![CDATA[
    //filter category start//
    if (isset($this->request->get['filter_category'])) {
                    $url .= '&filter_category=' . $this->request->get['filter_category'];
                }
                //filter category end//
                ]]></add>
            </operation>
     
            <operation>
                <search position="before" index="5"><![CDATA[
                if (isset($this->request->get['filter_status'])) {
                ]]></search>
                <add><![CDATA[
           //filter category start//
    if (isset($this->request->get['filter_category'])) {
    $filter_category = $this->request->get['filter_category'];
    } else {
    $filter_category = NULL;
    }
            //filter category end//
                ]]></add>
            </operation>
     
            <operation>
                <search position="before" index="6"><![CDATA[
                if (isset($this->request->get['filter_status'])) {
                ]]></search>
                <add><![CDATA[
    //filter category start//
    if (isset($this->request->get['filter_category'])) {
    $url .= '&filter_category=' . $this->request->get['filter_category'];
    }
           //filter category end//
                ]]></add>
            </operation>
     
            <operation>
                <search position="before"><![CDATA[
                'filter_status'   => $filter_status,
                ]]></search>
                <add><![CDATA[
    //filter category start//
                'filter_category' => $filter_category,
    // End
                ]]></add>
            </operation>
     
            <operation>
                <search position="after" index="1"><![CDATA[
                $results = $this->model_catalog_product->getProducts($data);
                ]]></search>
                <add><![CDATA[
    //filter category start//
    $this->load->model('catalog/category');
    $this->data['categories'] = $this->model_catalog_category->getCategories(0);
           //filter category end//
                ]]></add>
            </operation>
     
            <operation>
                <search position="before"><![CDATA[
                if ($result['image'] && file_exists(DIR_IMAGE . $result['image'])) {
                ]]></search>
                <add><![CDATA[
    //filter category start//
                $category =  $this->model_catalog_product->getProductCategories($result['product_id']);
                //filter category end//
                ]]></add>
            </operation>
     
            <operation>
                <search position="after"><![CDATA[
                'price'      => $result['price'],
                ]]></search>
                <add><![CDATA[
    //filter category start//
    'category'   => $category,
                    //filter category end//
                ]]></add>
            </operation>
     
            <operation>
                <search position="after"><![CDATA[
                $this->data['column_name'] = $this->language->get('column_name');
                ]]></search>
                <add><![CDATA[
    // Add
    $this->data['column_category'] = $this->language->get('column_category');
    // End add
                ]]></add>
            </operation>
     
            <operation>
                <search position="after"><![CDATA[
                $this->data['sort_model'] = $this->url->link('catalog/product', 'token=' . $this->session->data['token'] . '&sort=p.model' . $url, 'SSL');
                ]]></search>
                <add><![CDATA[
    //filter category start//
           $this->data['sort_category'] = $this->url->link('catalog/product', 'token=' . $this->session->data['token'] . '&sort=p2c.category' . $url, 'SSL');
           //filter category end//
                ]]></add>
            </operation>
     
            <operation>
                <search position="before" index="8"><![CDATA[
                if (isset($this->request->get['filter_quantity'])) {
                ]]></search>
                <add><![CDATA[
    // Add
           if (isset($this->request->get['filter_category'])) {
    $url .= '&filter_category=' . $this->request->get['filter_category'];
    }
           // End add
                ]]></add>
            </operation>
     
            <operation>
                <search position="before"><![CDATA[
                $this->data['filter_price'] = $filter_price;
                ]]></search>
                <add><![CDATA[
    // Add
           $this->data['filter_category'] = $filter_category;
           // End add
                ]]></add>
            </operation>
     
            <operation>
                <search position="before" index="9"><![CDATA[
                if (isset($this->request->get['filter_model'])) {
                ]]></search>
                <add><![CDATA[
    //filter category start//
    if (isset($this->request->get['filter_category'])) {
    $url .= '&filter_category=' . $this->request->get['filter_category'];
    }
           //filter category end//
                ]]></add>
            </operation>
    </file>
     
    <file name="admin/language/english/catalog/product.php">
            <operation>
                <search position="after"><![CDATA[
                $_['column_image']
                ]]></search>
                <add><![CDATA[
    // Add
    $_['column_category']        = 'Category';
    // End add
                ]]></add>
            </operation>
    </file>
     
    <file name="admin/language/russian/catalog/product.php">
            <operation>
                <search position="after"><![CDATA[
                $_['column_image']
                ]]></search>
                <add><![CDATA[
    // Add
    $_['column_category']        = 'Категория';
    // End add
                ]]></add>
            </operation>
    </file>
     
    <file name="admin/model/catalog/product.php">
            <operation error="skip">
                <search position="replace"><![CDATA[
                if (!empty($data['filter_category_id'])) {
                ]]></search>
                <add><![CDATA[
    // renamed filter_category_id to filter_category
    if (!empty($data['filter_category'])) {
                ]]></add>
            </operation>
            
            <operation error="skip">
                <search position="replace"><![CDATA[
                $implode_data[] = "category_id = '" . (int)$data['filter_category_id'] . "'";
                ]]></search>
                <add><![CDATA[
    $implode_data[] = "category_id = '" . (int)$data['filter_category'] . "'";
                ]]></add>
            </operation>
            
            <operation error="skip">
                <search position="replace"><![CDATA[
                $categories = $this->model_catalog_category->getCategories($data['filter_category_id']);
                ]]></search>
                <add><![CDATA[
    $categories = $this->model_catalog_category->getCategories($data['filter_category']);
                ]]></add>
            </operation>
            
            <operation error="skip">
                <search position="replace"><![CDATA[
                $sql .= " AND p2c.category_id = '" . (int)$data['filter_category_id'] . "'";
                ]]></search>
                <add><![CDATA[
    $sql .= " AND p2c.category_id = '" . (int)$data['filter_category'] . "'";
                ]]></add>
            </operation>
                    
            <operation error="skip">
                <search position="before"><![CDATA[
                'p.quantity',
                ]]></search>
                <add><![CDATA[
    // add
                    'p2c.category_id',
    // end
                ]]></add>
            </operation>
    </file>
     
    <file name="admin/view/template/catalog/product_list.tpl">
           
            <operation>
                <search position="before"><![CDATA[
                <td class="right"><?php if ($sort == 'p.quantity') { ?>
                ]]></search>
                <add><![CDATA[
     <td class="left"><?php if ($sort == 'p2c.category_id') { ?>
    <a href="<?php echo $sort_category; ?>" class="<?php echo strtolower($order); ?>"><?php echo $column_category; ?></a>
    <?php } else { ?>
    <a href="<?php echo $sort_category; ?>"><?php echo $column_category; ?></a>
     <?php } ?></td>
                ]]></add>
            </operation>
     
            <operation>
                <search position="after"><![CDATA[
                <td align="left"><input type="text" name="filter_price" value="<?php echo $filter_price; ?>" size="8"/></td>
                ]]></search>
                <add><![CDATA[
     <td ><select name=filter_category" style="width: 18em;" >
                  <option value="*"></option>
                  <?php foreach ($categories as $category) { ?>
                    <?php if ($category['category_id]==$filter_category) { ?>
                      <option value="<?php echo $category['category_id']; ?>" selected="selected"><?php echo $category['name']; ?></option>
                    <?php } else { ?>
                      <option value="<?php echo $category['category_id']; ?>"><?php echo $category['name']; ?></option> 
                    <?php } ?>
                  <?php } ?>
                  </td>
                ]]></add>
            </operation>
     
            <operation>
                <search position="before"><![CDATA[
                <td class=right"><?php if ($product['quantity] <= 0) { ?>
                ]]></search>
                <add><![CDATA[
      <td class=left">
                    <?php foreach ($categories as $category) { ?>
                    <?php if (in_array($category['category_id], $product['category'])) { ?>
                    <?php echo $category['name'];?><br>
                    <?php } ?> <?php } ?>
                  </td>
                ]]></add>
            </operation>
     
            <operation>
                <search position="before"><![CDATA[
                var filter_quantity = $('input[name=\'filter_quantity\']').attr('value');
                ]]></search>
                <add><![CDATA[
    var filter_category = $('select[name=\'filter_category\']').attr('value');
       
        if (filter_category != '*') {
    url += '&filter_category=' + encodeURIComponent(filter_category);
    }
                ]]></add>
            </operation>
            
    </file>
     
    </modification>
    • +1 1
  8. Добрый день... купил модуль,что то не получается настроить экспорт...вроде все делаю как написано, а ничего не происходит....((( Лог в скрипте смотреть? там в конце надпись :

    else {
        logging('неудачная авторизация в админке', $logfile);
  9. Помогите решить проблему...,хотел сделать редирект, c www,  на без www, в все вроде работает,только после правки файла ".htaccess.txt" перестали работать: добавление товара в корзину,отзывы,и рейтинг товара

    Нажимаешь а ничего не происходит..Версия ocStore V1.5.4.1

    пришлось вернуть обратно пока....

     

    ".htaccess.txt"

    RewriteBase /

    RewriteCond %{HTTP_HOST} ^www.hairstrong.ru


    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\ HTTP/

    RewriteRule ^index\.html$ / [R=301,L]

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/

    RewriteRule ^index\.php$ / [R=301,L]

    RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]

    RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)

    RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

  10. Зачем такие сложности если можно зделать тоже самое и проще. Я делаю так, в товаре в стандартном редакторе нажимаю кнопку источник и вставляю любой код плеера хоть флеш, youtube без разници что угодно

    Спасибо +

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.