Closed sodaling closed 4 years ago
Is there a mistake in README?
tutor config save \ --set 'ENABLED_PAYMENT_PROCESSORS=["myprocessor"]' \ --set 'ENABLED_CLIENT_SIDE_PAYMENT_PROCESSORS=["myprocessor"]' \
Maybe it should be
tutor config save \ --set 'ECOMMERCE_ENABLED_PAYMENT_PROCESSORS=["myprocessor"]' \ --set 'ECOMMERCE_ENABLED_CLIENT_SIDE_PAYMENT_PROCESSORS=["myprocessor"]' \
BTW,thanks for your patiention. And I studied a lots from your code.
Hi, @regisb . How is it going? I think you are having a good trip. These time we work with tutr-ecommerce. We have some problem hope you can support us.
Look forward to your reply~~
@sodaling:
- About the ecommerce payment processors setting,the plugin has been done very well.But it still need a init-hook.If u create a new ecommerce payment processors like alipay.The new value of waffle switch about this processor should be created and actived(ecommerce document).I found the command is : ./manage.py waffle_switch payment_processor_active_alipay on
If I understand correctly, this waffle switch is only required to disable the payment processor. It is not necessary in order to enable it, because by default it is equal to true.
How did you realize that you needed this waffle switch?
2.When I changed the default ecommerce repo to ours for building image,it got an error on this step: RUN python manage.py compress --force
The assets compression inside the ecommerce image should not depend on the production settings. The assets.py
settings are supposed to be minimal settings defined just to collect and compress assets. It looks like the journal_bundleoffer_form.html
template from your fork requires production settings. These settings will differ from one user to another, and thus we cannot rely on production.py
for all users. What we can do is find out which setting is missing from assets.py
and add it there.
- There's some configuration should be set in tutor.py OSCAR_DEFAULT_CURRENCY = 'CNY' CURRENCY_SYMBOL = '¥'
It makes sense to add new settings to the ecommerce plugin. Would you like to open a PR? Basically, you would have to add new default settings to plugin.py
and templates/ecommerce/apps/tutor.py
.
- The reason of this PR as same as that.
Let's talk about this PR on the PR page.
Is there a mistake in README?
Yes indeed! It was fixed in an earlier commit.
@xavierchan:
The config.yml in tutor-ecommerce image seem has no hook for change(That is also possible i just don't know), so what's your suggestion for this?
Why do you need to modify config.yml?
@regisb To be exact, we want to modify tutor-ecommerce's settings, but i don't know how to do it in current situation.
@xavierchan which settings would you like to modify?
@xavierchan which settings would you like to modify?
Not which one settings but a way to do it. I think it should be free to modify, like the plugin tutor-openedx_settings we done for lms and cms.
It makes sense to add new settings to the ecommerce plugin. Would you like to open a PR? Basically, you would have to add new default settings to
plugin.py
andtemplates/ecommerce/apps/tutor.py
.
These setting doesn't belong to edx-ecommerce but our repository. When we change the ecommerce repo to our's,there are some customized setting that we intend to add. How about adding a patch tag like you did before?
@xavierchan @sodaling Since you are running a fork of the ecommerce repo, why not directly add your settings to production.py
?
Hi @regisb !When I deploy this plugin, there are some things I want to discuss with you.
alipay
.The new value of waffle switch about this processor should be created and actived(ecommerce document).I found the command is :2.When I changed the default ecommerce repo to ours for building image,it got an error on this step:
It printed: But after i modified the assets.py
Then this step is executed smoothly. But:
should be executed before the action of
RUN make theme_static
These configurations are generic but not required. Do u have any suggestion of these configurations where to patch?