Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-01-2016, 08:02 PM
Ittermat's Avatar
Ittermat Ittermat is offline
The awesomesauce
 
Join Date: Feb 2016
Location: in front of my laptop
Posts: 272
Gender: Female
Credits: 33,709
Ittermat is on a distinguished road
Red face 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.
Reply With Quote
  #2  
Old 10-02-2016, 03:35 PM
Ittermat's Avatar
Ittermat Ittermat is offline
The awesomesauce
 
Join Date: Feb 2016
Location: in front of my laptop
Posts: 272
Gender: Female
Credits: 33,709
Ittermat is on a distinguished road
Default

bump cuz I had to clarify cuz of my title... x.x
Reply With Quote
  #3  
Old 10-04-2016, 02:06 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,747
NobodysHero is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 10-04-2016, 07:49 PM
Ittermat's Avatar
Ittermat Ittermat is offline
The awesomesauce
 
Join Date: Feb 2016
Location: in front of my laptop
Posts: 272
Gender: Female
Credits: 33,709
Ittermat is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 10-05-2016, 09:40 AM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,747
NobodysHero is on a distinguished road
Default

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:
$document->addLangvar("{$this->lang->purchase_item}{$cost->getValue()} {$mysidia->settings->cost}");
        } 
So, for this to work, you need to word it sort of like:

PHP Code:
"You have purchased Item {$mysidia->input->post("quantity")} {$mysidia->input->post("itemname")} at a cost of: "
BUT, even then, I can't get it to post the amount of currency. Might have to shove in an extra function somewhere and that's not really something I know anything about. PHP is not my strength. XD
Reply With Quote
  #6  
Old 10-05-2016, 07:42 PM
Ittermat's Avatar
Ittermat Ittermat is offline
The awesomesauce
 
Join Date: Feb 2016
Location: in front of my laptop
Posts: 272
Gender: Female
Credits: 33,709
Ittermat is on a distinguished road
Default

Yea mine either... okay... XD thanks... I'll make it work with what I can make appear then ^^

Thank you for trying!
Reply With Quote
Reply


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 03:43 PM.

Currently Active Users: 9310 (0 members and 9310 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