maria Posted March 4, 2009 Report Share Posted March 4, 2009 Hi, I watched your tutorial last night and purchased the CD right away. I thought your solution will help my work, except that my problem is, there are 2 different prices inside my xml file: Here is a snippet: Action Learning 3 4.50 I used the foreach loop as you demoed in my php index file. But how can I include 2 different prices, so the calculaiton in my shopping cart is correct? Thank you for your help. Maria Quote Link to comment Share on other sites More sharing options...
Guest NewYorkRob Posted March 4, 2009 Report Share Posted March 4, 2009 (edited) Create a size label: 3 4.50 What do you think? Slap me if I'm wrong. Edited March 4, 2009 by NewYorkRob Quote Link to comment Share on other sites More sharing options...
maria Posted March 4, 2009 Author Report Share Posted March 4, 2009 Thanks Rob, I'll try that, my problem is how to slap it in to my index.php file. I am confused where to do it, and how to affect the correct price that will go to my shopping cart. foreach($results as $item) { print("{$item->name}{$item->price[0]}add to cart{$item->price[1]}add to cart"); } :/Maria Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.