Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Questions (http://www.mysidiaadoptables.com/forum/showthread.php?t=4222)

Hwona 08-31-2013 10:26 PM

I kind of need the same thing too. xP Even though the shop is "hidden", it appears as "closed" on the marketplace page.

IntoRain 09-01-2013 01:36 AM

My item-related files are kinda modified at the moment, so they don't really have this mistake anymore, but I'll try to help

In class_shoplist

PHP Code:

 protected function setfetchmode($fetchmode){
     
// This method determines the fetchmode of shoplist
     
$whereclause "shoptype = '{$this->type}' ";
     switch(
$fetchmode){
        case 
"invisible":
           
$whereclause .= "and status='invisible'";
           break;
        case 
"open":
               
$whereclause .= "and status='open'";
               break;
           case 
"closed":
               
$whereclause .= "and status='closed'";
        default:
           
$whereclause .= "";        
     }
     
// End of Switch Statement
     
return $whereclause;
  } 

Is it like this? When you create a shoplist in Shop (or any other page you make for the hidden shops) you have to count the Construct which takes a fetchmode (open, closed or invisible), I don't know which arguments yours takes but I think it's at least fetchmode. So it's like:

$shoplist = new Shoplist("open") will only retrieve Shops with status = open


All times are GMT -5. The time now is 06:22 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.