uzziell Posted July 16, 2015 Share Posted July 16, 2015 sir i have code like this public function getHarga($id){ $cariprice = Db::getInstance()->executeS('SELECT * FROM `ps_product` WHERE id_product='.$id.''); foreach ($cariprice as $lawlaw){ $mantap = $lawlaw['price']; } return $mantap; } and on my .tpl {convertPrice price=$lawak->getHarga($value['product_4'])} the code work well, but I get stuck when I wanna get value price after discount and get discount value. anyone get idea? thanks Link to comment Share on other sites More sharing options...
uzziell Posted July 17, 2015 Author Share Posted July 17, 2015 can someone tell me, which table value discount or sale? thank Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now