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

Nightrunner

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

Nightrunner's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Здравствуйте, у меня такая проблема. Есть сайт на Opencart 1.5.5.1 в нем у товаров есть текстовая опция "калькулятор". Как сделать чтобы при добавлении товара с этой опцией в корзину, заполненое значение прибавлялось к стоимости товара. Нашел что нужно копать в system\library\cart.php 137 строка: } elseif ($option_query->row['type'] == 'text' || $option_query->row['type'] == 'textarea' || $option_query->row['type'] == 'file' || $option_query->row['type'] == 'date' || $option_query->row['type'] == 'datetime' || $option_query->row['type'] == 'time') { $option_data[] = array( 'product_option_id' => $product_option_id, 'product_option_value_id' => '', 'option_id' => $option_query->row['option_id'], 'option_value_id' => '', 'name' => $option_query->row['name'], 'option_value' => $option_value, 'type' => $option_query->row['type'], 'quantity' => '', 'subtract' => '', 'price' => '', 'price_prefix' => '', 'points' => '', 'points_prefix' => '', 'weight' => '', 'weight_prefix' => '' ); пробовал сюда в массив добавлять в значение price любую цифру и в prefix ставил "плюс", но она не добавляется к стоимости товара в корзине.
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.