Questions tagged [frontend-model]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
42 views

How can I get my custom news collection on frontend in magento 1.9?

I had created a custom module for the news grid and form in Magento admin. I need to create custom pages with news collection on my custom news list page and a custom news detail page. How could I get ...
1
vote
2answers
66 views

Magento 2: phtml page adding buttons and pop up models

Is it possible to add a few buttons and once the user clicks get pop up model which built by Magento 2? I want to allow the user to click a button and display a pop-up I was thinking to add 2/3 ...
2
votes
0answers
30 views

ReferenceError: {var} is not defined

I have a problem with the frontend_model of the system.xml This is the system.xml <field id="words" translate="label" sortOrder="92" showInDefault="1" showInWebsite="1" showInStore="1"> ...
0
votes
0answers
20 views

Get configValue in _prepareToRender function of a block

I want to get the configValue of system.xml in this block <?php namespace Module\Vendor\Block\Adminhtml\Menu\Field; use Magento\Config\Block\System\Config\Form\Field\FieldArray\...
0
votes
2answers
372 views

Magento 2 - How to display a programmatically created attribute under SKU on the frontend?

I have created a custom module, which creating an product attribute, now I need to display this attribute on the frontend, right under product SKU How I can I do this? Thanks everyone!
1
vote
0answers
259 views

Save Config Button does not work when <frontend_model> tag is added in system.xml file

I am adding color picker in system configuration fields. My block class is at vendor/Module/Block/Color.php <?php namespace PME\SuccessPage\Block\Adminhtml\System\Config; class Color extends \...
3
votes
1answer
202 views

Fatal Error Layout.php on Frontend after staging environment setup

I have recently created a staging environment. Back-end works fine. But when I load my staging site I get the following error: Fatal error: Class 'Mage_Wishlist_Block_Customer_Sidebar' not found in ...
3
votes
4answers
522 views

Admin Module goes to 404 page

I am new in magento and creating a module for use of both frontend and backend. Module works perfectly on frontend but it does not work in Magento Admin. It goes to 404 page.Here is the config file ...
0
votes
2answers
161 views

Adding new model to Contacts module breaks contacts configuration

Recently I tried to extend the contact form on our website. I wanted to add a drop-down with some possible subjects the user could select. To do this I created a new module MyCompany/Contacts in the ...
4
votes
1answer
1k views

Magento-2 Style attribute value on frontend

I have created attribute using install script $eavSetup->addAttribute( \Magento\Catalog\Model\Product::ENTITY, 'mydemo', [ 'type' => 'text', ...
1
vote
1answer
788 views

Adding Checkbox in system configuration is not working

I want to add single check box in my extension like below. Please check my system.xml <config> <sections> <mymodule> <groups> <...
3
votes
1answer
916 views

Magento 2 How to add Product Review Form to Popup?

I want to add a Popup for product review form. I was able to create pop up with js: define( [ 'jquery', 'Magento_Ui/js/modal/modal' ], function ($) { "use strict";...
4
votes
2answers
146 views

Are there performance issues with dynamically adding text fields to System->Configuration via frontend_model?

I am writing an extension that creates a menu. The menu pulls the top-level categories of the store and displays subcategories in a dropdown menu. Also in the dropdown menu is a callout, which is ...
1
vote
2answers
2k views

product attribute front end html not rendering properly

I created front end model for custom product attribute.but in the front end output coming like this <b>pencilval</b> instead of pencilval namespace Some\Pencil\Model\Entity\Attribute\...
1
vote
2answers
94 views

Bad design of js in magento or not?

I just figured out that the form fields in Magento, while using checkbox, it sends on as its value when it is checked and nothing when unchecked. Now if it is on once it is never set as off in Db ...
0
votes
1answer
99 views

Can't make overwrite of system_store_edit_form to work

I need to add extra fields in multi store edit view, but currently I'm stuck with extension code, and seems that extension is not loaded? My xml file looks like this: <?xml version="1.0" encoding=...
4
votes
1answer
2k views

frontend model resolved in Mage instead of my namespace

I'm trying to add a button in the admin section, but I'm facing an annoying problem. to be quick, Magento doesn't resolve the path to my <frontend_model>, it try to look into ...
0
votes
2answers
556 views

How to add attributes to a custom table?

I would like to add some attributes to a custom table with an install script. But whatever I try it didn't work. $installer = $this; $installer->startSetup(); $installer->addAttribute(...
0
votes
1answer
2k views

How to download text file from button on click

How to download text file from button on click . I created Button in my system.xml i define frontend Model i want to download text file when i click on button .below is the code i am using ...
13
votes
3answers
2k views

How to insert an <iframe> in an Admin Panel <field>?

I'm creating a custom module which displays Google Maps in the frontend of Magento. To get those maps the Admin would have to enter and save the URL of the map location in the Admin Panel. This all ...