Home » Archive

Articles Archive for August 2018

Blockchain, Hyperledger-Fabric »

[28 Aug 2018 | No Comment]

Problem Scenario:
You are working on Hyperledger Fabric and you are following this tutorial: Chaincode for Developers and when you try building your chaincode, it hungs up forever.
You run the following command on your terminal to build the chaincode you wrote:

Blockchain, Hyperledger-Fabric »

[21 Aug 2018 | No Comment]

This is a solution to one problem scenario while working on Hyperledger Fabric. I was working on modifying a Hyperledger Fabric Sample Application called fabcar. You can face this issue with other sample apps as well.
The issue occurred when I tried modifying the function name in the chaincode file of the sample app.

Javascript, Node.js »

[14 Aug 2018 | No Comment]

This article shows how you can base64 encode and decode string using both Nodejs and Javascript.
Javascript: Base64 encode/decode string
Encode String

Magento, Magento 2 »

[7 Aug 2018 | Comments Off on Magento 2: Get Simple Product ID & Quantity in Configurable Product using Swatches]

This article shows how you can get the associated Simple Product ID and Quantity (Qty) / inventory from a Configurable Product in frontend product detail page in Magento 2.x.
– The below code assumes that Swatches have been used in the product detail page.
– Suppose you have two configurable attributes (color and size) for your configurable product.
– When you click on any color swatch and then click on the size swatch:
– then the available stock quantity of that particular color & size associated product will be displayed.