Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.1.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=20)
-   -   Adoptables Shop - Working Again! (http://www.mysidiaadoptables.com/forum/showthread.php?t=1195)

redheadturkey 02-09-2010 04:37 PM

RE: Item Shop - Working Again!
 
ah fantastic!!

thanks SO much!! :D :D

Fireballchad 02-09-2010 09:08 PM

RE: Item Shop - Working Again!
 
Quote:

Originally Posted by redheadturkey
ah fantastic!!

thanks SO much!! :D :D

Please let me know if you get it installed :D

redheadturkey 02-09-2010 11:17 PM

RE: Item Shop - Working Again!
 
I did, and it works great!!

I am sure there is a lot we can do with a shop ! -- I have it where I can buy pets, and so far so good -- -ONE question -- no matter what I do, it says all pets are 1 dollar, LOL.

I tried to figure out how to change that, and so far, no luck. I'd like to make different prices --- is there a place to insert that in code I am missing?

( I did put the price when I made a new pet, where it says to, but it isn't 'taking' )

Hall of Famer 02-10-2010 01:40 AM

RE: Item Shop - Working Again!
 
Thank you for fixing the link.

Fireballchad 02-10-2010 04:23 PM

RE: Item Shop - Working Again!
 
Quote:

Originally Posted by redheadturkey
I did, and it works great!!

I am sure there is a lot we can do with a shop ! -- I have it where I can buy pets, and so far so good -- -ONE question -- no matter what I do, it says all pets are 1 dollar, LOL.

I tried to figure out how to change that, and so far, no luck. I'd like to make different prices --- is there a place to insert that in code I am missing?

( I did put the price when I made a new pet, where it says to, but it isn't 'taking' )

hmmm there is a few spots i think you could of gone wrong, firstly check what order you put your $shop2 and $price vars into this chunk of code.
mine are at the end.

PHP Code:

mysql_query("INSERT INTO ".$prefix."adoptables VALUES ('', '$name', '$description','$eggimage','$cba','$promocode', '$freqcond', '$number','$datecond','$date','$adoptscond','$maxnumcond','$morethannum','$usergroupcond','$usergroups','$alternates','$altoutlevel','$altchance','$shop2','$price')"); 

Then check your database to see if you put the shop insert Before the price insert. These need to be in the same order that they are in the chunk of code above. Because the var $shop2 is set to 1 to single that is a shop item, but any number will work in fact thats why you didnt see anything goofy my setting the price if you crossed them
example price = 1000 is the same as shop = 1 the way i wrote the code

redheadturkey 02-11-2010 09:51 AM

RE: Item Shop - Working Again!
 
I had the price and the shop fields backwards in the SQL tables, got it, it's working!!

thanks so much for this script, it's wonderful!!

One question:

Any ideas on how this might be used to say, have an owner place an adoptable IN the shop, and carry out sales that way?

I apologize if this has been asked before! It likely has, lol, but I cannot locate the thread ....

Arianna 02-11-2010 10:46 AM

RE: Item Shop - Working Again!
 
Shops like that would be a totally different system, I think. :/

Seapyramid 02-11-2010 01:07 PM

RE: Item Shop - Working Again!
 
It would take creating a new shop with a number of features to get something like that to work. Plus you would also be giving others the ability to upload to your server & input a lot into your database which could leave you open to security issues.

Arianna 02-11-2010 01:20 PM

RE: Item Shop - Working Again!
 
I think she means an already adopted adoptable, not an actual adopt kind... correct me if I'm wrong. :)
I don't think I wanna code that - it's cool in principle, but I have other stuff to work on.

redheadturkey 02-11-2010 03:32 PM

RE: Item Shop - Working Again!
 
Quote:

Originally Posted by Arianna
I think she means an already adopted adoptable, not an actual adopt kind... correct me if I'm wrong. :)
I don't think I wanna code that - it's cool in principle, but I have other stuff to work on.


yep exactly! :D

Like let's say I have Rover and Dingdong, and I own them, but I'd like to sell them in the shop too.


All times are GMT -5. The time now is 11:23 PM.

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