skip to Main Content

How to save input value to database magento2

I am absolutely new in magento. I have made new input called 'name' under email input in app/design/frontend/NewVendor/NewTheme/Magento_Newsletter/templates/subscribe.phtml <div class="block newsletter"> <div class="title"><strong><?= $block->escapeHtml(__('Newsletter')) ?></strong></div> <div class="content"> <form class="form subscribe" novalidate action="<?= $block->escapeUrl($block->getFormActionUrl()) ?>" method="post" data-mage-init='{"validation": {"errorClass": "mage-error"}}' id="newsletter-validate-detail"> <div…

VIEW QUESTION

Magento 2 – Get Customer Address Id through Shipping Address at Checkout Session

I'm having trouble with getting customer address Id as it returns a null value. This is what I have tried: $checkout = $this->_sessionCheckout->getQuote(); if ($checkout) { $shippingAddress = $checkout->getShippingAddress(); if ($shippingAddress) { $addressId = $shippingAddress->getCustomerAddressId(); $this->_logger->log(100, print_r('address Id: ' .…

VIEW QUESTION

Magento 2 – Symlinks not created in dev mode

Environment: - Magento 2.3 - Mode: Developer - Cache: Disabled - empty: pub/static, except .htaccess - empty: var/cache, var/composer_home, var/page_cache, var/view_preprocessed From there it is my understanding that if you reach the website through a browser, considering there are no…

VIEW QUESTION
Back To Top
Search