2.2 Hidden Category & Page Display??

idaryl

Avatar: idaryl

2008-01-16 03:15

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).

I changed this:
$this->aTypes = Array( 1 => $lang['menu_left'], 2 => $lang['menu_top'], 3 => $lang['menu_head'], 4 => 'hidden');
to this:
$this->aTypeShowSub = Array( 1 => null, 2 => true, 3 => true, 4 => true );

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?

» Quick.Cart v2.x

idaryl

Avatar: idaryl

2008-01-16 22:58

anybody...? treewood? merci?

treewood (OpenSolution)

Avatar: treewood

2008-01-17 08:52

idaryl - sorry but i have no answer for that question

Back to top
about us | contact