Jump to content

Recommended Posts

I work with a site that uses a lot of different tracking codes and things and a lot of the time I need to pass various variables like the total cost of the order and the users email address to the order confirmation page.

 

I normally have a look through the forums and find what I'm looking for in some way or another, usually pulling data from the $order or $cookie arrays but I'm struggling to find somethings and figured it would be useful to find this stuff out for myself rather than hope someone else has had the same problem as and when it happens to me.

 

As of right now I need to do a foreach loop for each product ordered so I can grab their name, price and quantity. I would of thought I could grab this from the order array but I can't see it in there.

 

What would be the best method for pulling this information? And is there any documentation on how to go about pulling information like this so I don't need to pester you guys in the future about it if I need to grab something else?

 

As always I appreciate any help you can provide on the matter.

 

 

 

tldr; How do I pull the the ordered products names, prices and quantities to the order confirmation page in a foreach loop?

 

 

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...