VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: musqsim on January 21, 2016, 14:26:41 PM

Title: [SOLVED] Passing a variable from default_pricelist.php to default.php
Post by: musqsim on January 21, 2016, 14:26:41 PM
Hi there,

I'm trying to achieve something that I'm not able to accomplish, so I hope you guys can help me here!

I want to check all the manufacturers present on my cart, I use it default_pricelist.php; DONE

Then If there are some of them, define a variable: $check = 'true'; ; DONE

But then i wanna use it in default.php, because i want to show an advice if this conditions met.

I try use echo $check, but it returns nothing, instead of true


How can I pass $check from default_pricelist.php in default.php

Thanks in advance!
VM 3.0.12
Title: Re: Passing a variable from default_pricelist.php to default.php
Post by: AH on January 21, 2016, 15:36:13 PM
why do you not just check the product array data in the cart

$this->cart->products
Title: Re: Passing a variable from default_pricelist.php to default.php
Post by: musqsim on January 21, 2016, 16:21:50 PM
Thanks a lot for your suport!

Yes, indeed this was a good answer and works.

Once more Thanks Again!

Title: Re: Passing a variable from default_pricelist.php to default.php
Post by: AH on January 21, 2016, 19:43:17 PM
 :)