Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
4k views

How to fetch data from a custom table in magento2 and show in home page

I have created a custom module with a custom table, now I need to fetch the data from the table and display in the home page. I achieved it by applying object manager I know it's not the correct ...
jithin 's user avatar
0 votes
1 answer
4k views

Magento 2: Update Query Using Standard Way

I have UPDATE posts SET viewed = viewed + 1 WHERE id = 1 MySql Query I have referred https://webkul.com/blog/magento2-write-custom-mysql-query-without-using-model/ But i want to as we do Select Way, ...
Jackson's user avatar
  • 9,969
0 votes
1 answer
205 views

Resolved - Reading Database Table Info in Magento Way

I'm using this simple PHP code below to read data from my module's table, but can't do the same thing using Magento codes. Tried to do that using different articles but was either getting errors or ...
bestwebdevs's user avatar
0 votes
1 answer
163 views

How to send inquiry email to customer on admin reply in magento2.4.3

Hello all magento developers, I want to send inquiry email notification to customer when admin can add reply to customer inquiry in magento 2.4.3. can anyone have idea then please share here, Thank ...
Deep Shah's user avatar
  • 577
0 votes
1 answer
660 views

Edit Action don't work in Custom Module

When I open the edit form in admin, the fields are empty, the data is not loaded from DB. Loading still work. Files: Form.php https://pastebin.com/8TJ54KSi StoreController.php https://pastebin.com/...
user55124's user avatar
0 votes
2 answers
36 views

Query is not working?

/I need those questions whose status is 1 but its not working/ <?php $i=1; //$coll=$collection->getSelect()->where("`main_table`.`status`= 1"); //$collection->load(true);...
kks's user avatar
  • 19
0 votes
0 answers
25 views

If trying to get the current product info then pop up model is not opening

/Blockname.php/ <?php namespace Eaglerocket\Customquote\Block; use Magento\Framework\View\Element\Template; class Blockname extends Template { protected $_registry; public function ...
kks's user avatar
  • 19
0 votes
1 answer
139 views

Adding Custom Attribute to Admin Users - Magento 1.7

Currently in creating Admin Users we collect: Username, First Name, Last Name, Email, Password, Password Confirmation I would also be interested in adding Address as a field but am not sure how to ...
CodingMageSheen's user avatar
-1 votes
2 answers
83 views

I need to display table data in my custom module at the front end of the site. Its saying wrong argument for $collection

/*Showdata.php Controller\Index */ <?php namespace Eaglerocket\Customquote\Controller\Index; use Magento\Framework\App\Action\Context; use Magento\Framework\View\Result\PageFactory; use Magento\...
kks's user avatar
  • 19