Removing Letters From Numbers


I'm trying to do a sum but the problem is that there's letters on it so it dose't work. Can anyone help me.

{math equation=$products.product_code+1 assign="sku_code"}

The product code is OG008456, so the results should be OG008457 but it comes up with 1. Dose anyone know I can remove the OG from the equation?


Append it as prefix.

I'm not to sure how to do that.

See this

or search for Product Code


Thats not what I want or asked, but thanks for you help all the same.

Pay attention to the PHP intval function

{$intval = $products.product_code|intval}