Category: Magento
How to display the custom fields data on my account page under account information and how to remove the unwanted nav links from my account tabs.
1)First create a module app/code/JJ/Account then in that module create a registration page, then create etc folder in that module.xml, and create a view folder- view/frontend/layout/ create a customer_account_index.xml then create a template file under the viwe/frontend/templates/info.phtml file. this two line – for get the data from customfield to my account page under the account… Continue reading How to display the custom fields data on my account page under account information and how to remove the unwanted nav links from my account tabs.
How to create banner section from magneto backend in swissup?
How to configure Magento 2’s customer group pricing
Login to the admin panel Navigate to Catalog > Products Select the product to edit for which you want to set the customer group pricing in Magento 2. Go to Advanced Pricing under the Price field In the field “Customer Group Price“, select the website, customer group for which the price is to be set, quantity, and price as shown in… Continue reading How to configure Magento 2’s customer group pricing
Magento default pop-up
<div id=”add-to-cart-popup” style=”display: none;”> <div class=”add-to-cart arrow-up”></div> <div class=”content”>Item added to cart</div> </div> <script> require([‘jquery’], function($) { $(document).on(‘ajax:addToCart’, function(event, eventData) { $(‘#add-to-cart-popup’).fadeIn(); setTimeout(function() { $(‘#add-to-cart-popup’).fadeOut(); }, 1400); }); }); </script> The script code uses jQuery to listen for the “ajax:addToCart” event, which is triggered when an item is successfully added to the cart using AJAX.… Continue reading Magento default pop-up
How to make 1 slide visible when scrolling on mobile devices?
In the above code, the ‘slidesToScroll’ option is set to 1, which means that two slides will be scrolled at a time. The ‘1’ argument after ‘slidesToScroll’ is the same as the one after ‘slidesToShow’, and it specifies the number of slides to be displayed at a time. You can adjust the ‘slidesToScroll’ option to… Continue reading How to make 1 slide visible when scrolling on mobile devices?
How to Hide Price for Not Logged-In Customers in Magento 2
To hide the price for not logged-in customers in Magento 2, one needs to implement the below code. Method to hide price for not logged-in customers in Magento 2: Create di.xml in Vendor\Extension\etc folder Step 2: After this, you will require to create FinalPriceBox.php in the following path: Vendor\Extension\Pricing\Render
Magento Uninstall Database using terminal
To reinitialize the Magento 2 database with defaults, you can use the setup:install command with the –use-sample-data option. This command will remove all existing data from the database and install the Magento 2 sample data along with the default configuration. Remove all existing data from the database by running the following command: Run the following… Continue reading Magento Uninstall Database using terminal
How to Create custom fields for customer registration
What are Up-sell products and Cross-sell products?
Up-selling and cross-selling are both techniques used by businesses to increase their revenue by encouraging customers to purchase additional products or upgrade their existing purchases. Up-selling is the practice of offering a higher-end or more expensive version of a product that the customer is already interested in purchasing. For example, if a customer is interested… Continue reading What are Up-sell products and Cross-sell products?