![]() |
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:
|
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:
|
Thanks, but I did some further squinting and I got the desired result in the end (editted the first post).
|
Alright, glad you figured it out
|
All times are GMT -5. The time now is 06:49 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.