#1
|
||||
|
||||
Shop Discount
Nvm, got it work finally. -o-
If you send another value, for a discount, through the buy form, you can access it in class_stockitem.php in the getcost function. But this is just to fix the display on the confirmation screen. PHP Code:
PHP Code:
To actually make a discount percentage go through in terms of calculations you'll have to modify the purchase() function in class_itemshop.php - PHP Code:
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. Last edited by Kyttias; 12-23-2014 at 05:46 PM. |
#2
|
||||
|
||||
I can't really test this, since my host is yet again down for maintenance, but did you try (purchase() in shopview.php):
PHP Code:
If you want to send a value from the controller to the view: PHP Code:
__________________
asp.net stole my soul. Last edited by IntoRain; 12-23-2014 at 05:32 PM. |
#3
|
||||
|
||||
Thanks, but I did some further squinting and I got the desired result in the end (editted the first post).
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#4
|
||||
|
||||
Alright, glad you figured it out
__________________
asp.net stole my soul. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Shop error? | pachoofoosh | Questions and Supports | 1 | 10-30-2014 01:10 PM |
Shop to buy an adoptable? | SilverDragonTears | Questions and Supports | 8 | 08-16-2011 02:17 PM |
System Shop | sensacion | Questions and Supports | 0 | 05-08-2011 06:40 PM |
Shop and... | 12345 | Questions and Supports | 1 | 03-05-2009 07:59 AM |
Shop? | trollis76 | Questions and Supports | 6 | 02-20-2009 12:46 AM |
What's New? |
What's Hot? |
What's Popular? |