Hey there!
Andres here from the Replo team!
Sorry to inform you, but we're not able to debug or write custom code used in Replo code components. Implementing custom code is an advanced feature that produces something unique for each customer, and that requires a level of self-service. I hope you can understand why that means we can't offer more here.
What you can do instead, is use metafields where you can have the price set manually and yet, be pulled in dynamically into Replo