View Single Post
  #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: 25,050
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