Jump to content
php.lv forumi

padot json papildus lietas


anonīms

Recommended Posts

fak, paste stulbi sakonvertēja :/

array: http://paste.php.lv/394fd7d82e500ec70234b6970d9e190d?lang=php

json: http://paste.php.lv/cb0061b76b615bd2c11e25744d6e8d10?lang=php

 

Bet nu katrā ziņā. Ideja ir tāda, ka katram ir jāpārbauda vai delivery_cost != 0.00 un ja nav, tad pielikt papildus orderitemu.

Mērķis ir tāds, ka nepieciešams arī delivery cost iekļaut kopējā summā, bet to nav iespējams izdarīt, jo tabulā ir nevis noteikta summa, bet tiek skaitīti visi orderi un viņu summa.

Varbūt kādam ir kāda ideja? Nezinu vai pietiekoši skaidri izteicos.

Edited by anonīms
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...