theviralwaves-blog
theviralwaves-blog
Viral Waves
110 posts
Don't wanna be here? Send us removal request.
theviralwaves-blog · 7 years ago
Text
Update customer email information magento 2
Update customer email information magento 2
Update customer email information magento 2 using controller here i have passed the custom value, you can replace it with the post value which you have sent from form.
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
Update customer details magento 2 using controller
Update customer details magento 2 using controller
Update customer details magento 2 using controller here i have passed the custom value, you can replace it with the post value which you have sent from form.
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
Get customer information using helper | Magento 2
Get customer information using helper | Magento 2
Get customer information using helper, First create a Data.php inside Helper folder and use the below code.
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
How to get order details from customer Id magento 2
How to get order details from customer Id magento 2
Get order details from customer Id magento 2, create helper file inside your module and call this helper function in your phtml file.
Get order details from customer Id magento 2, create helper file inside your module and call this helper
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Photo
Tumblr media
How to add header and top link in Magento 2 How to add header and top link with default.xml file. The top links is display for log in users and link is displayed for both guest and logged in customers.
0 notes
theviralwaves-blog · 7 years ago
Text
Model | ResourceModel and Collection in Magento 2
Model | ResourceModel and Collection in Magento 2
Inside Model create Mymodel.php
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
How to get product url Magento 2
How to get product url Magento 2
Get product url Magento 2, First create a helper and add the below code into helper file
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
Set custom attribute value for customer Magento 2
Set custom attribute value for customer Magento 2
Set custom attribute value for customer Magento 2 create a form and sent it to the controller and SAVE it into Customer EAV.
This is my Form
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Photo
Tumblr media
Magento 2 get product first category name Magento 2 get product first category name <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->get('Magento\Framework\Registry')->registry('current_product'); $categories = $product->getCategoryIds(); /*will return category ids array*/ $catnames = ''; foreach($categories as $category){ $cat = $objectManager->create('Magento\Catalog\Model\Category')->load($category); $catnames .= $cat->getName().","; } $exp = explode(',', $catnames); $singlecat = reset($exp); echo $singlecat; ?>
0 notes
theviralwaves-blog · 7 years ago
Text
Get order details from order id in Magento 2
Get order details from order id in Magento 2
Get order details from order id in Magento 2, here will see how to get all order information from order id.
Get Order Information From Order ID
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
Magento 2 module architecture documentation
Magento 2 module architecture documentation
Magento 2 module architecture the limitations of the module
Some modules may conflict with each other if the dependencies in module.xml (sequence) are incorrectly indicated.
Not all standard classes can be redefined using modules.
The interaction between different modules
Modules interact with each other using Dependency injection (di.xml) and layout files (/view/frontend/layout,…
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
Track order magento 2 | How to track order in Magento 2
Track order magento 2 | How to track order in Magento 2
Track order magento 2.
Step 1: Create a template file and include the below html code. And add an image loader.gif inside the folder.
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
How to get products from category ID in magento 2
How to get products from category ID in magento 2
Get products from category ID in magento 2, first create a block in your module and a template file follow the below steps:
Create block file under Vendor\Hello\Block >> Knowledgestuff.php
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
How to Create Model and Collections in magento 2
How to Create Model and Collections in magento 2
Create Model and Collections in magento 2, First have to create your own module or you can modify the existing one.
Step 1: Create a file Vendorname/Modulename/etc/frontend/routes.xml and insert the below code.
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
Magento 2 how to get Current cart count items
Magento 2 how to get Current cart count items
Magento 2 Current cart count items, If you want to show the current cart count in website header or anywhere. But Other than if you want to show then using below code in your template file or helper and call it.
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
How to create admin theme in Magento 2
How to create admin theme in Magento 2
Create admin theme in Magento 2, First need to register your admin theme
First – create a file inside app/code/Kstuff/Backend/registration.php
<?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Kstuff_Backend', _DIR_); ?>
Second – Add di.xml inside app/code/Kstuff/Backend/etc/di.xml
Kstuff/Backend
View On WordPress
0 notes
theviralwaves-blog · 7 years ago
Text
CSS and JS not loading after installation magento 2
CSS and JS not loading after installation magento 2
CSS and JS not loading after installation magento 2
After successfully installed magento 2 some times cssand jswon’t load properly in your browser.
Then, Take source code and check, Is css and js link are redirecting to 404 or not.
And If it is redirecting to 404 then execute below mysql query in Database.
insert core_config_data (config_id, scope, scope_id, path, value) values (null, 'default',…
View On WordPress
0 notes