I have written a coupon code script that works...., allowing the user to enter a code in a javascript prompt window, and if successful go to a "hidden" page. To create the hidden page and category I edited the core/categories.php. (I also created a page with the coupon info on it).
this gave me a "hidden" category - works great!! and when I use a <href/javascript.window.open> call to the page -- it shows!! /////////////////////// BUT -- the product still shows in the index.php (list of products) *should be hidden! ////////////////////// so I changed in the core/other.php: function throwStatus( ) the line: from this: if( HIDDEN_SHOWS === true ) to this: if( HIDDEN_SHOWS === false )
it now "hides" the page completely! the <href/javascript.window.open> call says that the "Data not found" I'm assuming that's because I told the other.php to set the "HIDDEN_SHOWS" to false.
Is there another way to "hide" the product in the index.php list, but still be able to display it from a <href/javascript.window.open> or javascript call?