Hi Ajit,
Thanks for your help.
I can see that the code works great on your site.
When I use the code it doesn't redirect and I get the error message:
The listing hasn't been enabled. Please enable it in order to make it public
I think it maybe because I'm using the Item Validation Plugin on my site.
Can anyone suggest a solution?
It would be great if the code could be built-in to the core Osclass :-)