Language Translations - Add Product's Remaining Quantity

Hi,

Is there a way to show the product's remaining quantity in the 'text_cart_amount_corrected' language translation?

I've tried [amount] and [quantity] but they are not working.

You can use the following code

{__('text_cart_amount_corrected')|replace:'[amount]':$product.amount}

Thanks,

Is there something I can use where I can just input it into the language translation in the admin?

Thanks,

Is there something I can use where I can just input it into the language translation in the admin?

Unfortunately, no

Hi,

Where would I need to put this code to affect the 'text_cart_amount_corrected' language translation?

Looks like you talk about notification in the app/functions/fn.cart.php file

                fn_set_notification('W', __('important'), __('text_cart_amount_corrected', array(
                    '[product]' => $product['product']
                )));

In this case try

                fn_set_notification('W', __('important'), __('text_cart_amount_corrected', array(
                    '[product]' => $product['product'],
                    '[amount]' => $current_amount,
                    '[qty]' => $amount
                )));

Excellent! That worked :D