Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Kiskin

Newbie
  
  • Posts

    33
  • Joined

  • Last visited

Kiskin's Achievements

Explorer

Explorer (4/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Возможно ли прикреплять к комментарию не ссылку на фото а файл?
  2. Рано радовался.. Нашел в интернете кусок кода if ((!$product_info->num_rows) || (!$product_info->rows[0]['discount'] && !$product_info->rows[0]['special'])) { Я так полагаю тут как раз идет проверка что акции нет, как сделать что бы работало условие !$product_info->rows[0]['special'])) {
  3. if (['products_special'] < '1') { Спасибо за наводку!
  4. Если не ошибаюсь нашел условие if (['products_special']) как сделать чтобы было "если нет" ?
  5. Есть код скидки группе покупателей.. Пытаюсь ее отключить для товаров по акции <?php class ModelTotalWediscountusergroups extends Model { public function getTotal(&$total_data, &$total, &$taxes) { $this->load->model('checkout/wediscountusergroups'); $discount_info = $this->model_checkout_wediscountusergroups->getDiscountByCustomerGroupId($this->customer->getCustomerGroupId()); if(is_array($discount_info) && !empty($discount_info)) { $sub_total = $this->cart->getSubTotal(); if($discount_info['type'] == 'P'){ $discount_total = $sub_total / 100 * $discount_info['discount']; }else{ $discount_total = $discount_info['discount']; } $discount_total = min($discount_total, $sub_total); $total_data[] = array( 'code' => 'wediscountusergroups', 'title' => $discount_info['name'], 'text' => $this->currency->format(-$discount_total), 'value' => -$discount_total, 'sort_order' => $this->config->get('wediscountusergroups_sort_order') ); $total -= $discount_total; } } public function confirm($order_info, $order_total) { } } ?> Код находится в папке тотал.. Я пытаюсь завернуть все это в условие если нет акции.. Подскажите как реализовать?
  6. Подскажите в каком файле вообще происходит расчет цены акции?
  7. Если это играет роль файл в можель/тотал
  8. Доброе время суток. Не хватает знаний реализовать в условии проверку "есть ли акция на товар" Условие: if(is_array($discount_info) && !empty($discount_info)){ Что нужно : if(is_array($discount_info) && !empty($discount_info)) && АКЦИИ НА ТОВАР НЕТУ { Прошу помочь...
  9. Почему то думал, что поле обязательное. Спасибо Том, вопрос решен
  10. Так в том то и дело что хотелось бы сделать страницы dostavka а не dostavka.html . Есть подозрение что это оЦшоп приписывает хтмл, не подскажите как убрать оставив чпу на товарах?
  11. Так в том то и дело что хотелось бы сделать страницы dostavka а не dostavka.html . Есть подозрение что это оЦшоп приписывает хтмл, не подскажите как убрать оставив чпу на товарах?
  12. То есть я либо с чпу и статьями .хтмл либо без чпу но статьи сайт.ру/статья?
  13. Подскажите как можно адресс статьи about_us.html переименовать в about_us ?
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.