Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-28-2017, 02:11 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 63,602
Dinocanid is on a distinguished road
Default User Shops

Requirements: Database math | Original Owner | Secondary Currency
Description: This addon allows users to create their own shops that they can use to sell their pets and items to other users. The shop styling is the same from Kyttias's Item Shop mods, but you don't need that mod for this one to work.
(At the moment, this tutorial only covers pets)
  Spoiler: Changelog 
12/30/17: Fixed a bug where you couldn't edit your own shop

-Step 1-
Create a new table in the database called (prefix)_adopt_stock with these settings:


Next, create another table called (prefix)_user_shops with these settings:



-Step 2-
Download and unzip the file in the attachments, then place them where they need to go.

-Step 3-
You want a way for users to put their pets up for sale. This is how I set it up on my site in myadoptsview.php: Pastebin link
Now I can use {$sale_manage} to display all the information I need.
That should be it! Let me know if there are any bugs in it, since I'm not always good at spotting them all.

-Q&A-
Q: Why don't you use mysidia's form builder?
A: Honestly, I just don't like using it. To me, using an html form allows for more customization and flexability

Q: The styling looks a weird!
A: I use Bootstrap 4 on my site, so the styling might look weird if you don't have it installed. Luckily, the tables and forms can easily be re-styled.

Q: What is "tax" for?
A: That was meant to be a feature where users could apply a tax to their shops, but I ended up not including it.
Attached Files
File Type: zip usershops mod_dinocanid.zip (5.9 KB, 24 views)
__________________

Last edited by Dinocanid; 12-30-2017 at 07:48 AM.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:45 AM.

Currently Active Users: 461 (0 members and 461 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636