Please make sure that you added and published a listing package and that it’s not assigned to any categories or to categories that you’re not testing. If you add a package, it will block adding/renewing listings (to any category or to categories you selected).
Sorry but the code snippet above does not affect renewing the listing. The code snippet above sends the listing to moderation. The renew listing is functionality that operates when the Expiration date, which is set for the listing, is passed, and then vendor can click renew button on the listing edit page to ask to renew the listing. So, in this case, the Select Package page appears. When the listing is sending to the moderation then the Select Package does not appear
So do you have a problem with the renewing functionality or do you have a problem when the listing is sent to the moderation?
The problem occurs when:
Advertisement ends + administrator’s approval of changes is required.
As I wrote: when the option of checking a moderated ad is turned on, the payment step for renewing the ad is skipped.
Clicking renew ad sends information to admin. There is no package selection. After the admin approves the changes, the ad is published indefinitely (the expiration date is earlier) but the admin permissions publish the ad!