Baransel Pamuk Posted May 23, 2021 Share Posted May 23, 2021 I have serious problems with the API. I run the API service and can pull my data pretty well. this line of code below gives me the information I don't want. <?php if (isset($resources)) { if (!isset($_GET['id'])) { echo '<tr><th>Kullanıcı ID</th><th>İşlemler</th></tr>'; foreach ($resources as $resource) { // Iterates on the found IDs echo '<tr><td>'.$resource->attributes().'</td><td>'. '<a style="color:white; text-decoration:none;" href="?id='.$resource->attributes().'">Görüntüle</a>'. '</td></tr>'; } } else { foreach ($resources as $key => $resource) { // Iterates on customer's properties echo '<tr>'; echo '<th>'.$key.'</th><td>'.$resource.'</td>'; echo '</tr>'; } } } ?> I just want to get the 'code' line in 'cart_rules'. I don't know how to get the data one by one. can someone who knows show me Link to comment Share on other sites More sharing options...
Baransel Pamuk Posted May 23, 2021 Author Share Posted May 23, 2021 <cart_rule> <code> <![CDATA[ CC10 ]]> </code> </cart_rule> </cart_rules> Here's I want to get the 'Code' information here Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now