I am creating products programmatically in my magento store by a PHP script. Everything is going correct but url-key not showing correct.
For example :
I have a product
Test already in store which has url-key
test and frontend url is
Now when I create a new product with name
Test then it is showing url-key
test in admin panel but in frontend url is
I want to set url-key as
test-123 in admin panel also.
How to do that at the time of product creation?