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

Как получить значение в array с таблицы order_total


magneto2010
 Share

Recommended Posts

Подскажите, если ли способ получить value доставки с таблицы order_total в array. Пробовал делать проверку по code == ‘shipping’, в результате получаю true, но ограничить вывод false не получается, т.е выводятся все значения.

 

Заплутал, помогите если понимаете о чем я. Спасибо

Edited by magneto2010
Link to comment
Share on other sites


Значение доставки каждого заказа. В данном случае нужна стоимость доставки, которая пишется в order_total ячейка value, но проблема в том, что там еще sub_total и total значения этого заказа.... нужно по code выбрать shipping и взять его value

 

Все это пытаюсь запаковать в array, поэтому еще проблемней...

Edited by magneto2010
Link to comment
Share on other sites


Ну можно как бы взять из уже готового или же сделать новый запрос, вариантов тьма =)

 

Link to comment
Share on other sites

13 минут назад, magneto2010 сказал:

Дядя я знаю что у вас поломалась - машина?

 

Смешно, даже не знаю как на это реагировать..

 

 

Link to comment
Share on other sites

Уже половина работы сделано и такой ступор Ггггг

 

Нужно value? в чём проблема?

SELECT * FROM " . DB_PREFIX . "order_total WHERE order_id = '" . (int)order_id . "' AND code = '" . $code. "')

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.