Displaying content based on category chosen
3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 22, 2020 (RSS)
Hi, All.
If you to this page on my client's site, you'll see there are two options under Product Information: http://sp-dynamic.ca/product.php. Clicking on an option will list all of the products in that category; e.g. http://sp-dynamic.ca/productCategory.php?product_category=Videofied
There's some text displayed at the bottom of the page (Videofied sim cards...station listing), but I only want that to show up if people choose Videofied as the category option, not the IP Video one.
Any idea how to do that, please?
By daniel - May 21, 2020
Hi CommonSenseDesign,
You should be able to use an "if" statement something like this:
<?php if (!empty( $_REQUEST['product_category'] ) && $_REQUEST['product_category'] == 'Videofied'): ?>
Your Text Here
<?php endif; ?>
Let me know if that helps, or if you have any other questions!
Thanks,
Technical Lead
interactivetools.com