get product objects at checkout view (step.php)

  • Posts: 73
  • Thank you received: 1
11 years 4 months ago #110037

In the checkout phase (the step.php file) I want to display certain text based on what products are in the cart.

What would be the best way to do this (to get the products from the cart). In other words, WHERE should I do this? Currently I am trying to get the products with $this->rows but it's kind of messy.

I need to run some logic on the cart and set a single variable which will then trigger a text block to be displayed in the show.php file. Currently I'm trying to get the products in the view (shop.php) but that's too messy to understand. I just need the product names.

Any ideas?

Last edit: 11 years 4 months ago by Ortix.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #110096

If you want to access to your cart products through the "step" file of the checkout view, you'll have to use this variable :

$this->orderInfos->products

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum