Navigate to the project folder and open terminal Run the command mysql -u username -p databasename < database.sql
Category: Magento
How to set admin user roles in WordPress through database
take the wp_usermeta table. Once in there, look for the entry that has ‘wp_user_level‘ in it’s ‘meta_key’ column and has the matching ‘user_id’ that you would like to update. Then change that ‘meta_value’ to 9 or 10. It is also required to update the ‘wp_capabilities‘ meta_key value to ‘a:1:{s:13:”administrator”;s:1:”1″;}‘ Thank you.
Two way sync with Adobe Commerce – NetSuite
A two way sync with Adobe Commerce – NetSuite consist of Customer/contact sync, Estimate, Order, RMA. A detailed proposal has been attached. https://jobinandjismi2021-my.sharepoint.com/:w:/g/personal/lakshmipriya_suresh_jobinandjismi_com/EcCv4NA8j4ZIo-_GbT4PiVEBqL8EWhSE2uEA7ssQv5J6Bw?e=nU1ltA
How to add custom tab in Customer Account Sidebar Magento 2
First of all, you will need to create customer_account.xml file here in your custom module.. app/code/SK/CustomerAccountTab/view/frontend/layout/customer_account.xml Content of the File <?xml version=”1.0″?> <!– /** * * @package SKCustomerAccountTab * @author Kishan Savaliya <kishansavaliyakb@gmail.com> */ –> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”customer_account_navigation”> <block class=”MagentoFrameworkViewElementHtmlLinkCurrent” name=”customer-account-navigation-new-tab”> <arguments> <argument name=”path” xsi:type=”string”>sk_route/front/index</argument> <argument name=”label” xsi:type=”string”>Custom tab (SK)</argument> </arguments> </block> </referenceBlock> </body>… Continue reading How to add custom tab in Customer Account Sidebar Magento 2
Build a Simple Static page in GraphCommerce – Magento PWA
Create a new route Add the page GraphQL queries required to render the layout (header, footer) Create a new file, /pages/about/about-us.tsx: export default function AboutUs() { return <>About Us</> } Add GraphQL query In /about/about-us.tsx, replace the previous code with the following: import { PageOptions } from ‘@graphcommerce/framer-next-pages’ import { StoreConfigDocument } from ‘@graphcommerce/magento-store’ import… Continue reading Build a Simple Static page in GraphCommerce – Magento PWA
Overide the product description componenet in magento PWA
In the project, create a new component that extends or replaces the default product description component. For example, you might create a custom component called CustomProductDescription: import React from ‘react’; import { useProductDescription } from ‘@magento/peregrine/lib/talons/ProductFullDetail/useProductDescription’; import defaultClasses from ‘@magento/peregrine/lib/talons/ProductFullDetail/productFullDetail.css’; import { mergeClasses } from ‘@magento/venia-ui/lib/classify’; const CustomProductDescription = props => { const classes =… Continue reading Overide the product description componenet in magento PWA
What is a fetch event in Magento PWA?
After a service worker is installed and the user navigates to a different page or refreshes, the service worker will begin to receive. A event fires every time any resource controlled by a service worker is fetched, which includes the documents inside the specified scope, and any resources referenced in those documents (for example if… Continue reading What is a fetch event in Magento PWA?
Magento PWA Setting Storefront
Setup a storefront project using yarn In your terminal, navigate to the directory where you want to install your storefront project and run yarn create @magento/pwa Select a directory for the installation cd pwa-studio-fundamentals Adding the Custom hostname and SSL Cert. yarn buildpack create-custom-origin ./ NOTE: If you encounter any errors while creating a custom… Continue reading Magento PWA Setting Storefront
Solutions to the Cloudways Server CPU hike
Verified the issues on the server and added some bot blockers to avoid website traffic. Added Robots.txt file exceptions which include having the following permissions 1. Disallow: /app/ 2. Disallow: /bin/ 3. Disallow: /dev/ 4. Disallow: /lib/ 5. Disallow: /phpserver/ 6. Disallow: /pub/ This is included in the basic theme of Luma here we have… Continue reading Solutions to the Cloudways Server CPU hike
How to find if the target path in custom url rewrite exists in Magento 2
check if the target path for the custom URL is present in the URL rewrite table in Magento 2.