Skip to content

magento man

getting Js error in google analytics code

We are using google analytics in our website but getting below error in console. Error: Uncaught SyntaxError: Unexpected token ‘:’ Script: <script type=”text/x-magento-init”> { “*”: { “Magento_GoogleAnalytics/js/google-analytics”: { “isCookieRestrictionModeEnabled”: <?= (int)$block->isCookieRestrictionModeEnabled() ?>, “currentWebsite”: <?= (int)$block->getCurrentWebsiteId() ?>, “cookieName”: “<?= /* @escapeNotVerified… Read More »getting Js error in google analytics code

Magento 2 get custom attribute and show on phtml file

I have created a custom product attribute using a module. $eavSetup->addAttribute( MagentoCatalogModelProduct::ENTITY, ‘special_feature’, [ ‘type’ => ‘text’, ‘label’ => ‘Special Feature’, ‘input’ => ‘textarea’, ‘required’ => false, ‘sort_order’ => 12, ‘global’ => MagentoEavModelEntityAttributeScopedAttributeInterface::SCOPE_STORE, ‘group’ => ‘Special Feature’, ‘backend’ => ‘MagentoEavModelEntityAttributeBackendArrayBackend’,… Read More »Magento 2 get custom attribute and show on phtml file

Hosting by https://create.com

Create.com is one of the best, if not the best, hosting service around. The Create people are the best I’ve ever worked with. I say that… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1887224&goto=newpost

Magento form-action CSP not working

Refused to send form data to ‘https://example.com/customer/account/logout/’ because it violates the following Content Security Policy directive: “form-action ‘self’ secure.authorize.net test.authorize.net pilot-payflowlink.paypal.com www.paypal.com www.sandbox.paypal.com *.facebook.com “. I really don’t understand that I have added ‘https://example.com/’ into csp_whitelist by form-action. But it… Read More »Magento form-action CSP not working