bibob Posted February 23, 2013 Share Posted February 23, 2013 Hi Iam here ..admin/themes/default/template/controllers/orders/_product_line.tpl i want to trim the first to numbers of the reference number so instead og AB12345, i need it to 123456 i added this code and it is working <script language="javascript" type="text/javascript"> alert('{$product.product_reference}'.slice(2, '{$product.product_reference}'.length)); </script> but now, how to use it as a value example something like {new_referencenumber} to show up as a text? hope someone can help Link to comment Share on other sites More sharing options...
PascalVG Posted February 23, 2013 Share Posted February 23, 2013 Maybe you can override the product class and add a new field product_new_reference to it, next to product_reference? Maybe also easier to set it directly where product_reference is set, so that you can use it anywhere, anytime? My 2 cents, pascal Link to comment Share on other sites More sharing options...
bibob Posted February 23, 2013 Author Share Posted February 23, 2013 Maybe you can override the product class and add a new field product_new_reference to it, next to product_reference? Maybe also easier to set it directly where product_reference is set, so that you can use it anywhere, anytime? My 2 cents, pascal Could you please explain the steps to do? iam unable to find out how to do it exactly Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now