clemens / spree_wirecard

MIT License
0 stars 4 forks source link

Make imageURL configureable in backend #1

Open 23tux opened 11 years ago

23tux commented 11 years ago

Hi,

I just found your repo, and it's really cool. But I'm missing (some) features, like configuring the imageURL in the backend. Or is there any other way to configure the url?

clemens commented 11 years ago

Thanks for the positive feedback. :)

When writing this, I needed it for a project so I've extracted it as an extension but I've only implemented what was needed for the project – imageURL wasn't one of these things.

I'm not sure where I want to go with further settings – some might be suitable for the admin preferences but others probably aren't (e.g. you might want to use the asset pipeline for your imageURL). Until I've figured that out, the easiest way for you would be to just override the view file and customize it according to your needs. This can be done the same way as with all other Spree extensions and Spree itself by just placing a file with the same name in the same path – in this case app/views/spree/checkout/wirecard_qpay_payment_page.html.erb (or html.haml if you want to use HAML). You can start by copying the contents of the original file and adapting whatever you need.

I'll keep this issue open in case I make my mind up regarding what configuration goes where.

23tux commented 11 years ago

cool, I'll have a look at it, thx!