What's the variable or constant that displays the name of the page?
Like main_page , product_info etc..
thanks!
What's the variable or constant that displays the name of the page?
Like main_page , product_info etc..
thanks!
Depends what you're trying to do with the information, and where ...
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I would like to build some swith / else if statements so that some of my menu items will appear on certain levels of the catalog.
In v1.3.x, you can usually use $current_page_base to get the value of the "main_page=" setting on the URL. If you're trying to access it from inside a function/class you'll need to global that variable to access it.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thanks! I'll give it a shot!![]()