Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Shop Listing Display
*This may work in versions earlier than v1.3.4, but I wouldn't know.
What we'll be doing:
Inside view/shopview.php, public function index, starting from where $shopList is defined, down to the end of the while($iterator->hasNext()) loop: PHP Code:
PHP Code:
To re-add the Sales Tax column, simply uncomment this line by removing the # at the start of it: PHP Code:
PHP Code:
On an unrelated note, clever users can still find their way into 'Closed' shops if they know the shop's name or have it bookmarked or whatever. Therefore, I recommend inside of classes/class_itemshop.php and classes/class_adoptshop.php to find inside public function display the statement foreach($this->items as $stockitem){ ... } and wrapping it inside if ($this->status == "open"){ ... } (being sure to close it afterward), and then adding in if ($this->status == "closed"){ $document->add(new Comment("Sorry, this shop is closed.")); } so that your shop items will be hidden from view if the shop is closed but the page is still somehow accessed.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. Last edited by Kyttias; 12-15-2014 at 04:11 AM. |
Tags |
shop image, shops |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mys v1.3.4 Item Shop Mod(s): NPC + Item Display + Tooltips | Kyttias | Mys v1.3.x Mods | 55 | 06-19-2020 11:21 AM |
Display on Phone? | Glow | Questions and Supports | 1 | 01-05-2015 08:56 AM |
Changing Shop and Item Display? | Abronsyth | Questions and Supports | 2 | 12-16-2014 03:25 PM |
Display AdoptSpotlight anywhere? c: | pachoofoosh | Questions and Supports | 11 | 07-07-2013 02:53 PM |
Display codes for all of your adoptables | kisazeky | Questions and Supports | 9 | 09-03-2010 03:32 PM |
What's New? |
What's Hot? |
What's Popular? |