Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide all boxes based on page based on variable


mossman

Recommended Posts

Posted

Hello Everyone!

 

I'm trying to figure out how to hide the left and right hand boxes on all pages if a variable has been defined upon entry. I'm not very good with PHP so any help is greatly appreciated!

 

I would guess that i would have some PHP code in the header that would first look for a variable. Then both left and right boxes wrapped in a IF statment:

 

If variable = "closeout"

HideBoxes

ELSE

ShowBoxes

 

If i set the variable in the header file would i need to pass it from page to page?

What would the code be to look for the variable?

Can i send the variable in the links url?

 

Thanks so much!

Aaron

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...