Guest User

Untitled

a guest
Mar 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. if($_POST["action"] == "add_side")
  2. {
  3.  
  4. foreach($_SESSION["shopping_cart"] as $keys => $values)
  5. {
  6. if($_SESSION["shopping_cart"][$keys]['product_id'] ==
  7. $_POST["product_id"])
  8. {
  9. foreach($_SESSION["shopping_cart"] as $key => $values)
  10. {
  11. $_SESSION["shopping_cart"][$key]['side_name'] =
  12. $_POST["side_name"];
  13.  
  14.  
  15. }
  16.  
  17. }
  18. }
  19. }
Add Comment
Please, Sign In to add comment