{"id":300025,"date":"2021-08-05T17:09:57","date_gmt":"2021-08-05T17:09:57","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=300025"},"modified":"2022-12-28T13:19:37","modified_gmt":"2022-12-28T13:19:37","slug":"applying-custom-discount-with-including-tax-in-magento-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/","title":{"rendered":"Applying Custom Discount Including Tax in Magento 2"},"content":{"rendered":"\n<p>How to apply Magento 2 custom discount with tax, we will find out in this dev doc article.<\/p>\n\n\n\n<p>So when you add a custom discount it will not work with tax. But before that, you can also learn about <a href=\"https:\/\/webkul.com\/blog\/set-custom-discount-fee-cart-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">how to add custom discount in Magento 2<\/a>.<\/p>\n\n\n\n<p>First, we need to confirm the configurations for Tax in Magento 2 Admin Configuration.<\/p>\n\n\n\n<p>Log in to Admin Backend> Stores> Configurations> Sales> Tax.<\/p>\n\n\n\n<p>Tax Calculation Method Based On should be on Total.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"614\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18-1200x614.png\" alt=\"magento 2 custom discount with tax\" class=\"wp-image-300029\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18-1200x614.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18-300x153.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18-250x128.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18-768x393.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18.png 1308w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Now, get back to our code. Please make sure your totals calculates before calculating tax in Magento 2. You can do this by managing sort_order in your sales.xml file for tax the sort_order is 450 you can define less than 450 see the code snippet below:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;section name=&quot;quote&quot;&gt;\n        &lt;group name=&quot;totals&quot;&gt;\n             &lt;item name=&quot;customdiscount&quot; instance=&quot;companyname\\module\\Model\\Quote\\Address\\Total\\CustomDiscount&quot; sort_order=&quot;440&quot;\/&gt;\n        &lt;\/group&gt;\n    &lt;\/section&gt;<\/pre>\n\n\n\n<p>Now, Please make changes to your CustomDiscount.php file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">namespace companyname\\module\\Model\\Quote\\Address\\Total;\n\nclass CustomDiscount extends \\Magento\\Quote\\Model\\Quote\\Address\\Total\\AbstractTotal\n{\n\n    \/**\n    * @var \\Magento\\Framework\\Pricing\\PriceCurrencyInterface\n    *\/\n    protected $_priceCurrency;\n\n    \/**\n     * @param \\Magento\\Framework\\Pricing\\PriceCurrencyInterface $priceCurrency [description]\n     *\/\n    public function __construct(\n        \\Magento\\Framework\\Pricing\\PriceCurrencyInterface $priceCurrency\n    ) {\n        $this-&gt;_priceCurrency = $priceCurrency;\n    }\n\n    public function collect(\n        \\Magento\\Quote\\Model\\Quote $quote,\n        \\Magento\\Quote\\Api\\Data\\ShippingAssignmentInterface $shippingAssignment,\n        \\Magento\\Quote\\Model\\Quote\\Address\\Total $total\n    ) {\n        parent::collect($quote, $shippingAssignment, $total);\n\n            $customDiscount = -10;\n            $items = $shippingAssignment-&gt;getItems();\n            foreach ($items as $item) {\n                \/\/ in case of configurable product.\n                if ($item-&gt;getPrice() &lt;= 0) {\n                    continue; \n                }\n                $item-&gt;setCalculationPrice($item-&gt;getCalculationPrice() - $customDiscount);\n                $item-&gt;setBaseCalculationPrice($item-&gt;getBaseCalculationPrice() - $customDiscount);\n            }\n            $total-&gt;addTotalAmount('customdiscount', $customDiscount);\n            $total-&gt;addBaseTotalAmount('customdiscount', $customDiscount);\n            $quote-&gt;setCustomDiscount($customDiscount);\n        }\n        return $this;\n    }\n\n    \/**\n     * Assign subtotal amount and label to address object\n     *\n     * @param \\Magento\\Quote\\Model\\Quote $quote\n     * @param Address\\Total $total\n     * @return array\n     * @SuppressWarnings(PHPMD.UnusedFormalParameter)\n     *\/\n    public function fetch(\\Magento\\Quote\\Model\\Quote $quote, \\Magento\\Quote\\Model\\Quote\\Address\\Total $total)\n    {\n        return [\n            'code' =&gt; 'Custom_Discount',\n            'title' =&gt; $this-&gt;getLabel(),\n            'value' =&gt; 10\n        ];\n    }\n\n    \/**\n     * get label\n     * @return string\n     *\/\n    public function getLabel()\n    {\n        return __('Custom Discount');\n    }\n}<\/pre>\n\n\n\n<p>That&#8217;s it for this dev doc on Magento 2 Custom Discount with Tax. Hope!! It will help you. Please reach out to our team via a <a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\">support ticket<\/a> if you have any queries. Happy Coding &#8230;:)<\/p>\n\n\n\n<p>You may also check our wide range of <a href=\"https:\/\/store.webkul.com\/Magento-2.html\" target=\"_blank\" rel=\"noreferrer noopener\">Best Magento 2 extensions<\/a> including <a href=\"https:\/\/store.webkul.com\/magento2-coupon-product-builder.html\" target=\"_blank\" rel=\"noreferrer noopener\">coupon builder<\/a>, <a href=\"https:\/\/store.webkul.com\/magento2-coupon-listing.html\" target=\"_blank\" rel=\"noreferrer noopener\">coupon listing<\/a>, <a href=\"https:\/\/store.webkul.com\/magento2-product-bundle-discount.html\" target=\"_blank\" rel=\"noreferrer noopener\">product bundle<\/a> and many more.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to apply Magento 2 custom discount with tax, we will find out in this dev doc article. So when you add a custom discount it will not work with tax. But before that, you can also learn about how to add custom discount in Magento 2. First, we need to confirm the configurations for <a href=\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":362,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1420,2070,4481,1041,4482],"class_list":["post-300025","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-discount","tag-magento2","tag-order-totals","tag-tax","tag-totals"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento 2 Custom Discount with Tax | Apply Taxes &amp; Discounts<\/title>\n<meta name=\"description\" content=\"Read this dev doc to know How to add Magento 2 Custom Discount with Tax. Applying customized discounts with proper taxes at checkout.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 2 Custom Discount with Tax | Apply Taxes &amp; Discounts\" \/>\n<meta property=\"og:description\" content=\"Read this dev doc to know How to add Magento 2 Custom Discount with Tax. Applying customized discounts with proper taxes at checkout.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-05T17:09:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-28T13:19:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18-1200x614.png\" \/>\n<meta name=\"author\" content=\"Vikas Tiwari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vikas Tiwari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/\"},\"author\":{\"name\":\"Vikas Tiwari\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5f1a3d1e180e3468f8b2a6926cecff9b\"},\"headline\":\"Applying Custom Discount Including Tax in Magento 2\",\"datePublished\":\"2021-08-05T17:09:57+00:00\",\"dateModified\":\"2022-12-28T13:19:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/\"},\"wordCount\":193,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18-1200x614.png\",\"keywords\":[\"discount\",\"Magento2\",\"order totals\",\"tax\",\"totals\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/\",\"name\":\"Magento 2 Custom Discount with Tax | Apply Taxes & Discounts\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18-1200x614.png\",\"datePublished\":\"2021-08-05T17:09:57+00:00\",\"dateModified\":\"2022-12-28T13:19:37+00:00\",\"description\":\"Read this dev doc to know How to add Magento 2 Custom Discount with Tax. Applying customized discounts with proper taxes at checkout.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18.png\",\"width\":1308,\"height\":669,\"caption\":\"screenshot-192.168.15.81-2021.08.05-22_12_18\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Applying Custom Discount Including Tax in Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5f1a3d1e180e3468f8b2a6926cecff9b\",\"name\":\"Vikas Tiwari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/49a0fe188f08a80af6fe7b6487da3a3e3adc1be472186b3f0eb833eff1323d10?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/49a0fe188f08a80af6fe7b6487da3a3e3adc1be472186b3f0eb833eff1323d10?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Vikas Tiwari\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/vikastiwari-magento160\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento 2 Custom Discount with Tax | Apply Taxes & Discounts","description":"Read this dev doc to know How to add Magento 2 Custom Discount with Tax. Applying customized discounts with proper taxes at checkout.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Magento 2 Custom Discount with Tax | Apply Taxes & Discounts","og_description":"Read this dev doc to know How to add Magento 2 Custom Discount with Tax. Applying customized discounts with proper taxes at checkout.","og_url":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2021-08-05T17:09:57+00:00","article_modified_time":"2022-12-28T13:19:37+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18-1200x614.png","type":"","width":"","height":""}],"author":"Vikas Tiwari","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vikas Tiwari","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/"},"author":{"name":"Vikas Tiwari","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5f1a3d1e180e3468f8b2a6926cecff9b"},"headline":"Applying Custom Discount Including Tax in Magento 2","datePublished":"2021-08-05T17:09:57+00:00","dateModified":"2022-12-28T13:19:37+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/"},"wordCount":193,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18-1200x614.png","keywords":["discount","Magento2","order totals","tax","totals"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/","url":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/","name":"Magento 2 Custom Discount with Tax | Apply Taxes & Discounts","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18-1200x614.png","datePublished":"2021-08-05T17:09:57+00:00","dateModified":"2022-12-28T13:19:37+00:00","description":"Read this dev doc to know How to add Magento 2 Custom Discount with Tax. Applying customized discounts with proper taxes at checkout.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/screenshot-192.168.15.81-2021.08.05-22_12_18.png","width":1308,"height":669,"caption":"screenshot-192.168.15.81-2021.08.05-22_12_18"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/applying-custom-discount-with-including-tax-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Applying Custom Discount Including Tax in Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5f1a3d1e180e3468f8b2a6926cecff9b","name":"Vikas Tiwari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/49a0fe188f08a80af6fe7b6487da3a3e3adc1be472186b3f0eb833eff1323d10?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/49a0fe188f08a80af6fe7b6487da3a3e3adc1be472186b3f0eb833eff1323d10?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Vikas Tiwari"},"url":"https:\/\/webkul.com\/blog\/author\/vikastiwari-magento160\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/300025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=300025"}],"version-history":[{"count":8,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/300025\/revisions"}],"predecessor-version":[{"id":362235,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/300025\/revisions\/362235"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=300025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=300025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=300025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}