Guest User

Untitled

a guest
Dec 11th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1.  if ($orderChanged) {  // update the stores with their new navmenu_position
  2.                 echo "order changed!<br/>";
  3.                 echo "orderedStoresList before ->";
  4.                 print_r($orderedStoresList);
  5.                 echo "<br/>";
  6.                 foreach ($newStoresList as $index => $storeName) {
  7.                         echo 'looking at store position-->' . $index . '<br/>';
  8.                         if ($storeName != $orderedStoresList[$index]->post_title) {
  9.                                 $orderedStoresList[$index]->navmenu_position = $index+1;
  10.                         }
  11.                 }
  12.                 echo "orderedStoresList after ->";
  13.                 print_r($orderedStoresList);
  14.                 echo "<br/>";
  15.   }
Add Comment
Please, Sign In to add comment