I'm trying to edit Open Cart stock levels and I am just a beginner in php.
I am currently displaying the quantity of stock left (numeric only), which is stored within $product_info['quantity'].
$data['stock'] = ($product_info['quantity']);
This works fine.
I am trying to add text to the end of the quantity so it would say for example 3 remaining in stock:
$data['stock'] = ($product_info['quantity']) + "remaining in stock"; //(doesn't work)
I don't know the mark up to add text, I've tried a few things and no luck I can only get the number value to show.
+is addition;.is concatenation