We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [renderer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
2answers
22k views

How to use custom html element in admin form field?

$fieldset->addField('rating', 'label', array( 'name' => 'rating', 'label' => Mage::helper('sellerreview')->__('Rating'), 'title' => Mage::helper('...
5
votes
1answer
2k views

Export a field from custom model grid with a diferent render to Csv

I created a custom column on sales order grid. It works as well but a used a custom render on a field (like this). When I export the grid to CSV, the file contains the raw value, but I need apply ...
4
votes
2answers
6k views

Customise a custom product attribute input renderer in Magento 2 the right way

I'm facing to a very ridiculous trouble, I added a custom product attribute with source model, backend model as a select box. Everything works fine (my custom attribute will get the values from a ...
4
votes
2answers
12k views

How to use renderer in column ui component grid in magento 2

I want to use renderer on certain column of grid.I need hint/suggestion.I used this tutorial for creating a grid in magneto2 https://ranasohel.me/2014/04/20/creating-magento2-adminhtml-grid/. I used ...
4
votes
1answer
3k views

How to join a collection with a query

I have a table represented in backend with two rendered fields, but when I try to make a CSV export from this grid, those two fields are not included. So I tried to make a join from the initial ...
3
votes
1answer
826 views

Magento renderers empty

I have the following line my configurable.phtml $_renderers = $this->getChild('attr_renderers')->getSortedChildren() But this throws the following error: Call to a member function getChild() ...
3
votes
1answer
2k views

How to use Renderer in UI Component in Magento 2

In my custom module grid i have to use custom grid column which render a field and create custom html content how to implement it in Magento 2
3
votes
1answer
648 views

How to create custom address renderer

How to create custom address renderer with the following template in one line {{var street}}, {{var city}}, {{var region}} {{var postcode}}, {{var country}} I can't change the native address ...
3
votes
2answers
1k views

How do I render country name from country_id in Adminhtml grids?

Is there a built-in column renderer for that, or should I build one myself?
3
votes
1answer
2k views

Magento load layout handle directive programmatically

In an e-mail template I found this layout handle which is displaying an overview of purchased products: {{layout handle="sales_email_order_items" order=$order}} I'm trying to load this layout handle ...
3
votes
1answer
542 views

Pdf xml in Magento 2?

When developing a payment fee, I want to add a surcharge fee to Pdf. I found the pdf.xml config. However, I don't know how it works. Can anyone help me to explain the config pdf xml. vendor/magento/...
3
votes
1answer
1k views

Custom renderered column sorting not working magento2

I have created the custom grid with one custom column(Products) by renderer method which shows product name. When I tried to apply sorting it looks the custom table in which other columns exists but ...
2
votes
2answers
5k views

How to sort custom renderer column in magento grid

I want to sort custom rendere column in magento grid. See below image-- As in above image Sorting is done using Status column, but it is is showing wrong. I want to sort it like active,on hold,out ...
2
votes
1answer
1k views

Bundle Products - how to use 2 different renderers for bundled product options? (to show in tab)

I need two renderers for Bundle Product Select Style Options, to show the same thing differently in two places. Context: At the moment all my bundle products are fixed (wine cases). I have decided ...
2
votes
2answers
2k views

Remove View All menu link only for specific categories RWD theme 1.9

How do I remove view all for one specific category only? These categories do not have children which I think is the problem. I tried editing renderer.phtml at line 62 with this if statement but it ...
2
votes
1answer
882 views

Get Product Custom Option Html In Custom Page

I am trying to render custom option in my custom page. I found an example for magento 1 here but it dint work out as in magento 2 addOptionRenderer is removed I guess. I tried this to call in from ...
2
votes
2answers
2k views

Cannot Override Item Renderer

I can successfully override other blocks but I couldn't extend Mage_Checkout_Block_Cart_Item_Renderer. <?xml version="1.0"?> <config> <modules> <Test_Checkout> ...
2
votes
1answer
82 views

Magento 1.9 - Custom Attribute - input_renderer / frontend_input_renderer not going into database

I'm creating an attribute like this $installer = new Mage_Eav_Model_Entity_Setup('core_setup'); $installer->startSetup(); $entityTypeId = 'catalog_product'; $installer->addAttribute($...
2
votes
1answer
407 views

Magento grid column filter by text instead of id

I created a column for my grid using renderer to change id to name like this: $this->addColumn( 'city_destination', array( 'header' => Mage::helper('...
2
votes
0answers
82 views

How to set bundle product renderer in custom module?

I want to get bundle product options: like this I have added setTemplate bundle/options.phtml file with Magento\Bundle\Block\Catalog\Product\View\Type\Bundle class now i am getting message : ...
2
votes
1answer
47 views

In my multi store website cart item price is not convert as per selected country's currency

In my multi store website cart item price is not convert as per selected country's currency.Default currency is USD, When i change my store currency is changed but price display in USD insted of ...
2
votes
0answers
265 views

magento2 - How to render or use custom html element for attribute in edit admin form of product?

I want render one of attribute in edit admin form of product use my custom html, ex: name, display link to view product page and input edit together. If anyone know, please advice.
2
votes
1answer
562 views

Modify the minicart price issue on Magento 2

I am trying to modify the price in mini cart with a custom product attribute now the price in the minicart come from: myproject\vendor\magento\module-checkout\view\frontend\web\template\minicart\...
2
votes
0answers
687 views

How to set input renderer on attribute for custom entity?

I'm trying to use an input renderer for a text attribute in my custom entity, however it doesn't seem to be working. I'm creating my ambassador entity in my setup file like this: <?php /* @var $...
1
vote
1answer
1k views

How to call admin form field renderer in magento 2

Question is very clear. I want to display custom drop-down options which are collection of other custom module in admin form. I did something like this after @Sohel Rana suggested This question. ...
1
vote
1answer
736 views

problem “extending” item renderer : duplicate content generated

I try to overload sales/order/items/renderer/default.phtml to modify order printing format In my layout.xml I defined : <sales_order_view> <reference name="my.account.wrapper"> ...
1
vote
1answer
402 views

setRenderer() on a grid column broke backend page

Scenario I'm overriding a grid and in the _prepareColumns() I would like to replace a column renderer with custom one. Because the column already exist I'm using getColumn() and the setRenderer() ...
1
vote
1answer
22 views

Magento2 Price including TAX/VAT renderer class

Can anyone let me know which class and method is responsible for rendering tax price in product listing page? pricing without tax coming from Magento\Catalog\Block\Product\ListProduct and method ...
1
vote
1answer
212 views

how can I save the value from a select element in custom config field in magento2

I'm trying to add a custom configuration field in system.xml like this where one of the columns will be a select element instead of a simple input element and will load values dynamically from the ...
1
vote
2answers
559 views

How do I render a cms/blocks collection into attribute list from product tab Magento 2?

I have create an attribute and I want to render an cms blocks as attribute values in Magento 2. Please do provide some go on it and I have done research about it but no clue so far. Thanks.
1
vote
1answer
245 views

Add custom input_renderer to an existing attribute

I've been searching for 2 hours now... I want to use a custom_renderer on the product view for the "color" attribute. Many answers posted here are adding new attributes and setting "input_renderer" ...
1
vote
1answer
1k views

How to display all product attribute in my custom grid

How to display all product attribute in my custom grid i am using the below code but its returning results in array format can you please correct me where i am doing wrong $this->addColumn('...
1
vote
1answer
1k views

how to filter sku from renderer in grid?

so I have a renderer for orders and here is the code: the sku renderer is working fine I have problem with search and filtering the skus $this->addColumn('sku', array( 'header'=>...
1
vote
0answers
19 views

Render full header from API

I need to pass the whole header to another website through an API. Do not ask why, this is the task. I asked some help from one of my colleague, he suggest me to create a controller, what has a ...
1
vote
1answer
694 views

Extend Swatch rendered js file

How to extend the Swatch rendered js file in my custom module? I have override the phtml template files. <script type="text/x-magento-init"> { "[data-role=swatch-option-<?= /* @...
1
vote
0answers
619 views

Send custom order email to vendor in magento 2

I am trying to send a custom mail to vendor based on email address in one of the product attribute. I have created following file app/code/Company/ModuleName/view/frontend/layout/...
1
vote
1answer
1k views

Filtering custom value from rendering column issue in Magento 1

I created my own collection with custom data. This is part from my grid class: my grid class extends Mage_Adminhtml_Block_Widget_Grid ... $this->setCollection($collection); array_walk($data['...
1
vote
3answers
2k views

filter_condition_callback using Ui Component - Magento 2

I have a customer column in my custom module admin grid (created using UI component) where I show the customer name. But in database I save customer Id. I need to use the filter on customer name as ...
0
votes
1answer
3k views

How the payment methods are rendered and displayed in checkout page in magento 2

I wish to know how the payment methods are rendered in checkout page in magento 2
0
votes
1answer
2k views

Magento2 How to custom column in sales order item renderer in admin order view

I need to add custom column in admin sales_order_view for each item listing with the help of renderer. For example, there are some predefined columns like name, status, price, qty, discount etc are in ...
0
votes
1answer
455 views

Issue in AddColumn dropdown options

I want to add some column as a drop drown with some values (not in grid)but I can't get Them , I don't know why ! Test 1: $this->addColumn('somme', array( 'label' => Mage::helper(...
0
votes
3answers
2k views

Magento 2 Renderer generates “Fatal error”

I don't understand what is wrong with this Renderer code: <?php namespace Darsh\Banner\Block\Adminhtml\Grid\Renderer; use Magento\Framework\DataObject as DObject; use Magento\Framework\Data\Form\...
0
votes
2answers
105 views

Can't edit HTML of a field in admin area

I want to edit HTML of "Url key" field in product editing form in Magento 2 admin area appending some additional HTML to it. Magento 2.2.9. I tried editing method UrlKeyRenderer::getElementHtml() but ...
0
votes
1answer
69 views

Magento load layout handle directive programmatically, setData() issue [closed]

Magento load layout handle directive programmatically When I used the code given in the above link, It throws an error when cache is turned on. Noticed that this issue occurs when "Layouts" cache is ...
0
votes
1answer
515 views

Render column based on another column's value

I'm making a custom grid that shows the ID and the status of specific orders. It is currently like this: I wanna make column Order ID background color change, depending on Status column value. How ...
0
votes
2answers
871 views

Renderer function not work in magento grid

I don't know what is the problem with my code. Gird $this->addColumn('category', array( 'header' => Mage::helper('udropship')->__('Cateogry'), 'index' ...
0
votes
1answer
1k views

How to use template file for grid column renderer in magento?

If I have a method in my renderer class: public function render(Varien_Object $row) { $rowValue = $row->getData($this->getColumn()->getIndex()); $data = unserialize($rowValue); $...
0
votes
1answer
90 views

CE 1.9.2.4 - Custom Address adminhtml field input

I'm working on a Magento site meant for employees from different departments within a company to purchase goods. I've created an installer to create the address attributes which shows correctly in the ...
0
votes
2answers
159 views

My downloadable product page showing html source only

I have installed theme http://themeforest.net/item/hosoren-responsive-magento-fashion-theme/12784020 It's working fine. But when I click on My Downloadable Products link from my account section, it ...
0
votes
1answer
932 views

Is that possible to add Textarea in Order Grid view

How to insert a personal note or text area on order grid page for each order, This should save when entered the text. is that possible using Renderer. If there is any module for this please suggest, ...