Post by derwydd » Fri Sep 28, 2007 9:27 pm

How can I bring up Quantities in OpenCart? I see search.php, and search.tpl. I tried adding quantity to the product_data() array. It didn't work, or I just did not do it right!

Jason

Active Member

Posts

Joined
Wed Aug 29, 2007 12:13 am

Post by derwydd » Fri Sep 28, 2007 9:44 pm

Ok I forgot a comma on the one array above! But how do you make it have no decimals?

I don't want any decimals

Active Member

Posts

Joined
Wed Aug 29, 2007 12:13 am

Post by luvz2drv » Sat Sep 29, 2007 2:29 am

cast it as an int

Code: Select all

(int)$quantity

that should fix you up

luvz2drv


Post by derwydd » Sat Sep 29, 2007 3:38 am

Thanks

Active Member

Posts

Joined
Wed Aug 29, 2007 12:13 am

Post by luvz2drv » Sun Sep 30, 2007 4:50 pm

that worked out for you ?

luvz2drv


Post by derwydd » Mon Oct 01, 2007 9:25 pm

yes perfectly, thank you

Active Member

Posts

Joined
Wed Aug 29, 2007 12:13 am
Who is online

Users browsing this forum: No registered users and 4 guests