Skip to content

Magento 2 – Rest API error

I am following the document to create a Rest API: https://www.mageplaza.com/devdocs/magento-2-create-api/ and i create access token from backend: when i try to access, i am getting The consumer isn’t authorized to access %resources What is my error?

Custom Discount Breaks Shipping Rate Calculation in Quote

<?php declare(strict_types=1); namespace VendorModuleModelQuoteTotal; use MagentoQuoteApiDataShippingAssignmentInterface; use MagentoQuoteModelQuote; use MagentoQuoteModelQuoteAddressTotal; use MagentoQuoteModelQuoteAddressTotalAbstractTotal; use MagentoQuoteModelQuoteItem as QuoteItem; use MagentoQuoteModelQuoteAddress; class CustomDiscount extends AbstractTotal { private const CODE = ‘custom_discount’; private const LABEL = ‘Points Redeemed’; public function __construct( ) { $this->setCode(self::CODE);… Read More »Custom Discount Breaks Shipping Rate Calculation in Quote

Magento 2 – Jenkins setup

Does anyone have any tutorials or documentation for setting up Jenkins for Magento 2? I can’t able to find proper docs for setting up Magento 2 in Jenkins.