cancel
Showing results for 
Search instead for 
Did you mean: 

Call a custom function in admin

www.albertsonssurvey.com

In a statement, CEO Vivek Sankaran stated, "We are happy with our fourth quarter financial performance and the range of capabilities we continue to expand in our business.

www.albertsonssurvey.com 

Re: Call a custom function in admin

Customers can assist Wendy's in making improvements and delivering the best possible food and service to their customers by submitting feedback through the survey.Talktowendys 

Re: Call a custom function in admin

Does this really work?

Valero Credit Card Login

Dqfanfeedback.com

Since that time, the company has grown to 6,400 locations in more than 25 countries. The majority of Dairy Queen's locations are in the United States, and the business is franchised. Berkshire Hathaway, which paid $600 million to buy Dairy Queen in 1998, is the company's current owner.
Visit here Dqfanfeedback.com Survey

Re: Dqfanfeedback.com

Customers are encouraged to take part in the Hannaford Survey and share feedback about the business in order to assist the company in improving both customer terms and conditions and the client experience. Talktohannaford.com

Re: Dqfanfeedback.com

Understanding consumer wants, preferences, and feedback is essential to creating a company that successfully caters to its target market.  Jacklistens 

Re: Dqfanfeedback.com

The CVS Health business improvement program includes a survey. Customer input is used, and some customers get compensated for it.  
Visit here Cvshealthsurvey Survey

Re: Call a custom function in admin

I have seen this article this is very nice thanks spotify receiptify for sharing it with us. 

 

Re: Call a custom function in admin

To call a custom function from your module in the Magento admin, you can follow these steps:

  1. Create a Custom Module: If you haven't already, make sure you've created a custom module for your specific functionality.

  2. Override or Extend the Appropriate Class: In your custom module, you'll need to either override or extend the class that contains the function you want to call. In this case, it seems like you want to modify functionality related to importing customer pricing. To do this, you might need to override or extend classes in the Magedelight_Customerprice module.

    Here's an example of how you can extend a block class in your module:

  3.  
  4. // app/code/YourNamespace/YourModule/etc/di.xml
    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
        <type name="Magedelight\Customerprice\Block\Adminhtml\Form\Field">
            <plugin name="yourmodule_custom_function" type="YourNamespace\YourModule\Plugin\Block\Adminhtml\Form\Field" sortOrder="1"/>
        </type>
    </config>
  5. // app/code/YourNamespace/YourModule/Plugin/Block/Adminhtml/Form/Field.php
    <?php
    
    namespace YourNamespace\YourModule\Plugin\Block\Adminhtml\Form;
    
    class Field
    {
        public function aroundGetElementHtml(\Magedelight\Customerprice\Block\Adminhtml\Form\Field $subject, callable $proceed)
        {
            // Your custom logic here
    
            // You can call the original method if needed
            $result = $proceed();
    
            // Modify $result if necessary
    
            return $result;
        }
    }

    Implement Your Custom Logic: In the aroundGetElementHtml method of your custom class, you can add your custom logic related to importing customer pricing from the CSV file. This is where you can call the function or functions you need to perform the import.

  6. Use Cron Jobs for Scheduled Imports: If you want to schedule the import to run at specific intervals, you should create a Magento cron job in your module. This cron job will trigger the import process based on your schedule.

  7. Upload and Configure the CSV File: It looks like you've provided a screenshot showing a file upload configuration in the admin panel. Make sure you've correctly configured this part of your module to accept and process the custom CSV file.

  8. Testing: Always thoroughly test your module's functionality, especially when dealing with data imports and cron jobs, to ensure it works as expected.

    By extending or overriding the relevant classes and implementing your custom logic within the plugin, you can effectively call the correct function in your own module and achieve your desired functionality.

     
    if you need any help, just contact me at https://pickleballassociationofontario.org/contact/  for faster replies
     

Re: Call a custom function in admin

gathering feedback, FirehouseListens also serves as a platform for customers to voice their concerns or highlight exceptional experiences. If a customer had an issue during their visit, such as a problem with their order or unsatisfactory service, they can communicate these concerns through the survey. Firehouse Subs takes these complaints seriously and uses them as an opportunity to rectify the situation and prevent similar issues from occurring in the future.