• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How i can add second shop category?

Status
Not open for further replies.
PHP:
                if($data['offer_type'] == 'item')
                {
                        $offer['id'] = $data['id'];
                        $offer['type'] = $data['offer_type'];
                        $offer['item_id'] = $data['itemid1'];
                        $offer['item_count'] = $data['count1'];
                        $offer['points'] = $data['points'];
                        $offer['description'] = $data['offer_description'];
                        $offer['name'] = $data['offer_name'];
                }
                elseif($data['offer_type'] == 'container')
                {
                        $offer['id'] = $data['id'];
                        $offer['type'] = $data['offer_type'];
                        $offer['container_id'] = $data['itemid1'];
                        $offer['container_count'] = $data['count1'];
                        $offer['item_id'] = $data['itemid2'];
                        $offer['item_count'] = $data['count2'];
                        $offer['points'] = $data['points'];
                        $offer['description'] = $data['offer_description'];
                        $offer['name'] = $data['offer_name'];
                }
                return $offer;

You already have 2 categories, im not shure but i think you change category in you db
 
You can and ive done it, after ALOT of hours of bug fixing and snus...

If you don't have any experience in php at all its gonna be next to imposible to do it. I do have a decent experience with php and it still took me a fair amount of time to do it.
The problem is that the code is pretty messy to work with, and the variable names makes it hard to just copy paste things.
 
You can add new categories by yourself or ask someone to help you, it only takes a couple of minutes? :p
 
Status
Not open for further replies.
Back
Top