Jump to content

get value discount or sale


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...