These are chat archives for mirumee/saleor

20th
Jun 2018
Shamhaad
@shamhaad180
Jun 20 2018 04:57
@NyanKiyoshi I managed to do the localhost setup and the test DB does get created. But when I run the tests, I still get errors. Says "E django.db.utils.ProgrammingError: relation "userprofile_address" does not exist"
Something like it was not able to do the migration.
Patryk Zawadzki
@patrys
Jun 20 2018 09:28
@shamhaad180 could you paste the command you’re using?
Shamhaad
@shamhaad180
Jun 20 2018 09:48
I just did py.test
Yunaz Gilang Ramadhan
@YunazGilang
Jun 20 2018 13:15
image.png
hey i want to ask, why i keep getting this error : decimal.InvalidOperation: [<class 'decimal.InvalidOperation'>] when creating a fake order, it says the error is occured when the system try to run the create_payment method as shown in the screenshot above
i am confused, and re run it once again, i can save 3 entry into the database, but still getting that error.
Yunaz Gilang Ramadhan
@YunazGilang
Jun 20 2018 13:33
image.png
it seems the system cannot handle a total price of that amount. how's the max number can the order_payment handle?
Patryk Zawadzki
@patrys
Jun 20 2018 14:11
I think all fields default to max_digits=12
and the number of decimal places depends on the currency
do you need more than that? if so, could you open an issue and provide a typical use case so we know what to change it to
Pete Dermott
@petedermott
Jun 20 2018 14:32
Has anyone had any luck integrating with Saleor SagePay? The django-payments system just doesn't seem to work for me
Yunaz Gilang Ramadhan
@YunazGilang
Jun 20 2018 14:33
@patrys i have set the max_digits=13 but still getting the same error from that command. but when i try to insert it manually from postgre it work just fine. It seems it fail when get the total amount from the TaxedMoneyField I am still unfamiliar with the django_prices package, any suggestion please?
Patryk Zawadzki
@patrys
Jun 20 2018 14:37
@YunazGilang which currency is that and how many decimal places does it use?
Yunaz Gilang Ramadhan
@YunazGilang
Jun 20 2018 14:40
I am getting confused with the currency, i wanna set it to my country (Indonesia) currency which is rupiah, but not sure with the code so i set the currency to Rp., I use the default decimal places = 2.
Patryk Zawadzki
@patrys
Jun 20 2018 14:41
please set it to IDR
that’s the ISO code of Indonesian Rupiah
Yunaz Gilang Ramadhan
@YunazGilang
Jun 20 2018 14:41
Ah i see, but i want to print it to Rp. in the template view.
thanks anyway @patrys
Patryk Zawadzki
@patrys
Jun 20 2018 14:42
it should do that automatically
Yunaz Gilang Ramadhan
@YunazGilang
Jun 20 2018 14:42
so all i have to do is to change it in setting and then re run the command? @patrys
Patryk Zawadzki
@patrys
Jun 20 2018 14:42
it uses the Unicode CLDR database to format currency formats depending on the active language
yes, let me know if it still crashes
Yunaz Gilang Ramadhan
@YunazGilang
Jun 20 2018 14:44
@patrys yea, speaking of languange support, it seems Saleor still hasn't had any support yet for Indonesian Language, i am trying to join the translating project on transifex but still don't get the approval
Patryk Zawadzki
@patrys
Jun 20 2018 14:44
oh, sorry for that, I must have missed the request
@YunazGilang I see that it’s already approved
Yunaz Gilang Ramadhan
@YunazGilang
Jun 20 2018 14:47
@patrys oh, my bad, i must have missed that. but i have already created my customized Saleor with different repository than the Saleor
Patryk Zawadzki
@patrys
Jun 20 2018 14:48
if you’re willing to share you can upload your translation files when you’re done, you could also use the transifex command line client to pull and push translations even when working on a fork
Yunaz Gilang Ramadhan
@YunazGilang
Jun 20 2018 14:49
@patrys ah okay, thank you for your support,
Yunaz Gilang Ramadhan
@YunazGilang
Jun 20 2018 14:56
@patrys i have changed the currency to IDR but still getting the same error.
Patryk Zawadzki
@patrys
Jun 20 2018 15:00
please report an issue on GitHub with the stack trace (it would be best if you could copy text instead of providing a screenshot) so someone from the core team can look at it
Yunaz Gilang Ramadhan
@YunazGilang
Jun 20 2018 15:11
@patrys Ah, no need for that. I have solved the issue, all i have to do is to override the basepayment model in order payment model.
as it needs more max_digits value
thanks
Patryk Zawadzki
@patrys
Jun 20 2018 15:12
please do open an issue nonetheless as you should not be required to do that
NyanKiyoshi
@NyanKiyoshi
Jun 20 2018 16:11
@shamhaad180 what version of Saleor? Is this a modified version? Can you show us the error stack?
Pete Dermott
@petedermott
Jun 20 2018 16:23
Are there any intentions to increase the level of functionality provided by the RichTextField? Being able to use some standard HTML in our product descriptions is one of our main requirements
Pete Dermott
@petedermott
Jun 20 2018 16:28
Also, adding an image to a RichTextField doesn't seem to work at all at the moment
NyanKiyoshi
@NyanKiyoshi
Jun 20 2018 16:47
Yes, but it seems like it's not planned yet
Patryk Zawadzki
@patrys
Jun 20 2018 16:57
we plan to eventually move to draft.js
but right now all work is put towards moving to an API-driven dashboard and then storefront