Auth 1.0 oauth_signature creation Android for magento API

We didn’t need to pass all the attribute as auth, retrofit itself handle this, we need to pass only the CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN and TOKEN_SECRET. By following this ApiUtils class will be like, Kotlin class ApiUtils { companion object { fun getAPIService(): APIService? { val consumer = OkHttpOAuthConsumer(BuildConfig.CONSUMER_KEY, BuildConfig.CONSUMER_SECRET) consumer.setTokenWithSecret(BuildConfig.ACCESS_TOKEN, BuildConfig.TOKEN_SECRET) return RetrofitClient.getClient(BuildConfig.BASE_URL, consumer)?.create(APIService::class.java) } … Read more

Magento tax rounding issue

In the end I found the solution. I changed System > VAT > Tax Calculation Method Based On from Unit price to Row Total and it works, more details here The issue which I found is in core/store model. I had to rewrite roundPrice method and change rounding precision there. public function roundPrice($price) { return … Read more

How do I create a simple ‘Hello World’ module in Magento?

First and foremost, I highly recommend you buy the PDF/E-Book from PHP Architect. It’s US$20, but is the only straightforward “Here’s how Magento works” resource I’ve been able to find. I’ve also started writing Magento tutorials at my own website. Second, if you have a choice, and aren’t an experienced programmer or don’t have access … Read more