Questions tagged [renderer]
The renderer tag has no usage guidance.
71
questions
0
votes
1
answer
302
views
Magento 2, Undefined variable: secureRenderer
After install extension I receive error. If I go to Sales -> Order => shipped order.
If I go to new order it is ok.
Exception #0 (Exception): Notice: Undefined variable: secureRenderer in .........
1
vote
1
answer
333
views
Magento 2.3.7 Undefined variable: secureRenderer?
Undefined variable: secureRenderer In Magento 2.3.7
File Path :Vendor/Extension/view/frontend/templates/form/register.phtml
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See ...
1
vote
1
answer
147
views
Custom renderer showing only the last item from an array into grid magento2
I am trying to show all of the postal codes in my grid from the array in column but it showing only the last one.
Array
(
[0] => Array
(
[from_postalcode] => 123
...
0
votes
0
answers
72
views
Create custom renderer
I need to create a custom attribute renderer using Magento components.
So how can I apply Magento .js component and element .html template inside the renderer?
Please help.
0
votes
0
answers
214
views
Private content for a JS script only, without rendering a HTML template
There is a lot of articles, blogs and stackexchange posts about inserting private content into a HTML template with knockout and data-bindings. And I know how to do that.
But...
How to use Magento2's ...
0
votes
3
answers
624
views
Object of class Magento\Framework\View\Page\Title could not be converted to string
We just recently tested upgrading from M2.2.4 to M2.3.7 and have ironed out most of the issues, however when trying to load a page, we get the following error:
Fatal error: Uncaught Error: Object of ...
0
votes
1
answer
977
views
Render custom price-type in PDP page
I have a requirement where I want to show the annual product price for virtual products. I have created products but custom options and added pricing for individual options. I have also added 2 new ...
0
votes
1
answer
135
views
checkout onepage review item file override issue
I am trying to override the review/item.phtml file of checkout module into my custom module.
app\code\Vendor\Module\view\frontend\layout\checkout_onepage_review_item_renderers.xml
<?xml version=&...
1
vote
0
answers
68
views
Admin panel is not rendering properly
I just made a custom module in Magento 2 and now the header and Magento admin panel is not being rendered properly.
I already upgrade the setup and clean the cache and reindex all the grid.
When I ...
0
votes
0
answers
328
views
Magento 2 in custom grid click action result redirect given object object
I have created my custom grid increment id is click to result in redirect sales order view page. But given the action return object object.
file-path
vender/module/view/adminhtml/ui_component/...
1
vote
2
answers
2k
views
Magento 2 combine two functionality s using a single mixin js file?
I would like to override Magento_Swatches/js/swatch-renderer.js file using mixins concept.
I would like to club two functionalities in a single file. here is the code I have written please Note 2nd ...
0
votes
1
answer
188
views
Image is not showing in my custom grid of Magento 1.9.4.3
I am trying to add an Image using my custom admin form. The image is saved while uploading it via custom admin form. But does not displays in the admin grid image column of my custom-created module. ...
0
votes
2
answers
412
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 ...
1
vote
1
answer
184
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
1
answer
2k
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
0
answers
22
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 ...
0
votes
0
answers
170
views
CSV Export missing the custom column field added by renderer magento
Because my grid has a problem when join table, so I used renderer to show data like this
'brand' => array(
'header' => Mage::helper('advr')->__('Brand'),
'...
0
votes
1
answer
252
views
Filter columns with renderers but without an index
I'm adding a column like so in _prepareColumns() method of a class that extends Mage_Adminhtml_Block_Widget_Grid:
$this->addColumn('status', array(
'header' => $this->helper->__('...
1
vote
2
answers
2k
views
How To Pass A Custom Price Value To Product List Price Renderer In Magento 2?
We have come across an issue that I'm trying to solve. In order to overcome this bug https://github.com/magento/magento2/issues/10009 where discounted prices are not applied per customer group, I've ...
2
votes
2
answers
6k
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-<?= /* @...
2
votes
0
answers
168
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
1
answer
295
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($...
0
votes
1
answer
171
views
Pass extra class for stock in Swatch Magento2
I want to pass an extra class to swatch class which is formed via swatch renderer js based on the stock. The reason is the swatches are not being hidden if they are out of stock. This is what I am ...
1
vote
1
answer
6k
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
2
votes
2
answers
2k
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.
0
votes
1
answer
915
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(...
1
vote
0
answers
1k
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/...
0
votes
1
answer
90
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 ...
2
votes
1
answer
1k
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('...
0
votes
1
answer
756
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 ...
1
vote
1
answer
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['...
2
votes
1
answer
5k
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 ...
4
votes
1
answer
4k
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
2
votes
1
answer
2k
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 ...
3
votes
3
answers
3k
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 ...
2
votes
1
answer
63
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 ...
3
votes
1
answer
818
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 ...
0
votes
0
answers
568
views
how to show the value in custom grid without saving in table in magento 1.9
I am trying to show a column in grid using renderer .
here is my renderer file
public function render(Varien_Object $row)
{
$value = $row->getData($this->getColumn()->getIndex());
...
2
votes
0
answers
338
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.
3
votes
1
answer
1k
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\...
0
votes
0
answers
257
views
Sorting custom column renderer
I have this column i added. How can i sort it? i can click on sort, but well it doesnt really sort right.
My grid looks like:
$this->addColumn('sn_suppliers_noos', array(
'header' =&...
9
votes
2
answers
11k
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 ...
1
vote
1
answer
2k
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.
...
0
votes
2
answers
1k
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
1
answer
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);
$...
1
vote
1
answer
289
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" ...
0
votes
1
answer
105
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 ...
3
votes
1
answer
3k
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 ...
1
vote
2
answers
2k
views
How in Block a productcollection of template render?
How in Block
app/code/Name/Name/Block/Rewrite/TopMyMenu.php
a productcollection of template
"vendor/magento/module-catalog-widget/view/frontend/templates/product/widget/content/grid.phtml"
...
6
votes
3
answers
22k
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 ...