News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[SOLVED] Passing a variable from default_pricelist.php to default.php

Started by musqsim, January 21, 2016, 14:26:41 PM

Previous topic - Next topic

musqsim

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

AH

why do you not just check the product array data in the cart

$this->cart->products


  • this is available to you anywhere and you can set your test up at the relevant place in default.php
Regards
A

Joomla 3.10.11
php 8.0

musqsim

Thanks a lot for your suport!

Yes, indeed this was a good answer and works.

Once more Thanks Again!


AH

Regards
A

Joomla 3.10.11
php 8.0