Removing Letters From Numbers

Hi

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?

Thanks

Append it as prefix.

I'm not to sure how to do that.

See this

https://marketplace.cs-cart.com/add-ons/integrations/unique-product-sku-or-code.html

or search for Product Code

Hi

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}
OG{$intval+1}