Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
How to show the amount of beads something sold for-
Ugh sorry! beads is the name of my sites currency...****
I want to tell a user how much something they sold back to the site gave them back....So like if they go to their inventory- sell it- I want it to tell them "You sold 2 Flowers for 300 dollars!" As an example... I know I need to mess in the Inventory_Lang file I just need the right coding to get it to do that lol... Please and thank you ^^; Last edited by Ittermat; 10-01-2016 at 10:29 PM. |
#2
|
||||
|
||||
bump cuz I had to clarify cuz of my title... x.x
|
#3
|
||||
|
||||
Hey! Looks like the thing to put is:
{$mysidia->settings->cost} Try putting there where you want it. So, it'd be something like: You sold {$mysidia->input->post("itemname")} for {$mysidia->settings->cost}! I think. >.> I haven't tested it, but it looks right, from my limited (Very, very limited) knowledge. XD |
#4
|
||||
|
||||
Ah! Thank you! You' have more knowledge than me XD I'll try it haha
EDIT: It doesnt give me the amount still... This is what my Lang file spot looks like: $lang['sell'] = "Thank you for selling your $qty $item "; $lang['sell2'] = "For {$mysidia->settings->cost} Stranger!<br> <a href='http://atrocity.mysidiahost.com/inventory'> Go back to your inventory</a><br>"; and this is what it gives me... (the item I sold as a test was a rock worm.) Thank you for selling your 1 Rock Worm For Beads Stranger! Go back to your inventory No money amount... XD Which is what I want. Last edited by Ittermat; 10-04-2016 at 07:52 PM. |
#5
|
||||
|
||||
I think the issue is that cost bit needs to be in the inventory file... Uh.
Yeah, just looked through the shopview.php to confirm. Anytime you want it to list the value of currency, it needs to be within the view file, not the lang file. Here's an example: PHP Code:
PHP Code:
|
#6
|
||||
|
||||
Yea mine either... okay... XD thanks... I'll make it work with what I can make appear then ^^
Thank you for trying! |
|
|
What's New? |
What's Hot? |
What's Popular? |