Steps to follow oauth authorization in Magento rest api 1.Create consumer on back end System->REST – Oauth consumer Consumer key Consumer secret Consumer key Consumer secret 2.By add consumer get auto generated (i)Consumer key (ii)Consumer Secret 3.Request for token: http://magentohost/oauth/initiate Add params oauth_callback:http:\\magentohost/adminScreenshot from 2015-07-10 15:09:35 4.By send this token request you will receive (i)oauth_token…
WordPress Custom Post Type with ACF get data
<code> ?php%20echo%20get_template_directory_uri(). <link rel=’stylesheet’ href='<?php echo get_template_directory_uri().’/resCarousel.css’; ?>’ type=’text/css’ /> Directory <?php global $wp_query; // get the query object $taxonomy = ‘categories’; $terms = get_terms($taxonomy); //$value = get_field(‘image_upload’, ‘categories_88’); //print_r($value); ?> term_id); ?> “> <h5 class=”text-center”><?php echo $term->name; ?></h5> </div> </div> <?php } ?> <?php endif;?> </div> <!– <button class=’btn btn-default leftRs’><</button> <button class=’btn btn-default…
Some of hyperledger composer and fabric commands
#crypto-config.yaml ./bin/cryptogen generate –config=crypto-config.yaml –output=”crypto-config” #configtx.yaml bin/configtxgen -profile TwoOrgsOrdererGenesis -channelID mychannel -outputBlock channel-artifacts/genesis.block bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx channel-artifacts/channel.tx -channelID mychannel export CHANNEL_NAME=mychannel && bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID mychannel bin/configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID mychannel -asOrg Org1MSP bin/configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID mychannel -asOrg Org2MSP CHANNEL_NAME=mychannel docker-compose -f docker-compose-cli.yaml up -d IMAGE_TAG=latest…
Hyperledger fabric command part 2
#crypto-config.yaml ./bin/cryptogen generate –config=crypto-config.yaml –output=”crypto-config” #configtx.yaml bin/configtxgen -profile TwoOrgsOrdererGenesis -channelID mychannel -outputBlock channel-artifacts/genesis.block bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx channel-artifacts/channel.tx -channelID mychannel export CHANNEL_NAME=mychannel && bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID mychannel bin/configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID mychannel -asOrg Org1MSP bin/configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID mychannel -asOrg Org2MSP CHANNEL_NAME=mychannel docker-compose -f docker-compose-cli.yaml up -d IMAGE_TAG=latest…
Start your own Hyperledger blockchain the Easy Way!
The first thing you’ll notice when wading through Fabric’s official documentation is that it’s not beginner friendly. Even basic setup instructions appear needlessly complicated. For example: If you want to use the docker-compose-e2e.yaml without first running the byfn.sh script, then we will need to make four slight modifications. We need to point to the private…
Hyperledger Fabric Commands part 1
1. ./cryptogen generate –config=../crypto-config.yaml –output=../crypto-output 2. ./configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ../first-network/channel-artifacts/genesis.block 3. ./configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ../first-network/channel-artifacts/channel.tx -channelID samplechannel 4. ./configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ../first-network/channel -artifacts/Org1MSPanchors.tx -channelID samplechannel -asOrg Org1MSP
Docker commands
Fabric 1.2 has annoyingly changed how it references the ccenv docker image it uses to create chaincode container images. It looks like you have an old version of this image which it is using. you need to remove this image by doing docker rmi hyperledger/fabric-ccenv:latest docker rm -f $(docker ps -a -q) docker kill $(docker…
No version of composer-cli has been detected
I had the same issues. And I solved it. Follow the instructions in Installing pre-requisites. Very Important the link is below(I am using MacOS) : – https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html After completing the above step destroy a previous setup https://hyperledger.github.io/composer/latest/installing/development-tools.html#appendix or docker kill $(docker ps -q) docker rm $(docker ps -aq) docker rmi $(docker images dev-* -q) run…
Add custom attribute to Magento’s PDF invoice
Hello everyone! Today I’ll show you how to add custom attribute to Magento’s generated PDF invoice in just a few steps. Since this article is pretty straight-forward, here we go. One of my recent tasks was to create a custom attribute for products called inchoo_warehouse_location, and output it when click on “Print” (invoice in admin…
Nope js commands
Try running these two commands to fully remove the old repo: sudo add-apt-repository -y -r ppa:chris-lea/node.js sudo rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list kill any stale or active containers: docker rm -f $(docker ps -aq) docker network prune docker kill $(docker ps -q) docker rm $(docker ps -aq) docker rmi $(docker images -q) docker ps -a docker images…
