Skip to content

magento man

When click Image and show clicking Image in popup in magento 2

How to create, When click Image and show clicking Image in popup. This is my code :- echo “<td>”?><img src=”<?php echo $this->getMediaUrl() .’brand’. $data->getImage(); ?>” width=”100px” height=”100px” class=”click-header”></td> JS Code :- <script type=”text/javascript”> require([ ‘jquery’, ‘Magento_Ui/js/modal/modal’ ], function($, modal) {… Read More »When click Image and show clicking Image in popup in magento 2

How to get current Cart_id/quote_id in plugin file Magento 2?

namespace AsmSetselleridPlugin; use MagentoQuoteModelCartTotalsItemConverter; use MagentoQuoteApiDataTotalsItemExtensionFactory; class Item { /** * @var TotalsItemExtensionFactory */ protected $totalsItemExtensionFactory; /** * ItemConverterPlugin constructor. * * @param TotalsItemExtensionFactory $totalsItemExtensionFactory */ public function __construct( MagentoCheckoutModelCart $cart, TotalsItemExtensionFactory $totalsItemExtensionFactory ) { $this->totalsItemExtensionFactory = $totalsItemExtensionFactory; $this->cart =… Read More »How to get current Cart_id/quote_id in plugin file Magento 2?

How to add select state dropdown field in custom phtml form and save in database(frontend) in magento2.2.5?

I have added a select state dropdown field in my custom phtml file. But not able to save that value in database in Magento2.2.5? /var/www/html/magento2/app/code/Amy/Contactform/Block <?php namespace AmyContactformBlock; use MagentoFrameworkViewElementTemplate; class ContactForm extends MagentoContactBlockContactForm { public function __construct( TemplateContext $context,… Read More »How to add select state dropdown field in custom phtml form and save in database(frontend) in magento2.2.5?