Questions tagged [render]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
200 views

mui/index/render loading slow, index reindex when I navigate pages in admin

A store we look after is experiencing odd behaviour recently. The admin dashboard is very slow and from what I can figure out, the indexes seem to reindex whenever you navigate to a different page. ...
Mr Pablo's user avatar
  • 131
1 vote
1 answer
171 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 ...
BodrinSanfu's user avatar
-1 votes
1 answer
216 views

What is Render in Magento 2?

I find the answer is Render in magento 2 but no proper answer not find, so please send any link or answer for clarification this topic. thanks in advance if you give me the answer
Alok Tiwari's user avatar
0 votes
3 answers
553 views

Magento 2.4 : How to override \Magento\Sales\Model\Reorder\Reorderp model?

Model\Reorder\Data\ReorderOutput must be compatible with Magento\Sales\Model\Reorder\Reorder::execute(string $orderNumber, string $storeId): Magento\Sales\Model\Reorder\Data\ReorderOutput I am ...
magento newbie's user avatar
0 votes
1 answer
402 views

Magento 2 which of the elements automatically render their children in layout Xml?

Which two elements automatically render their children in Xml? <block class=”\Magento\Framework\View\Element\AbstractBlock” name=”shop.info.details”/> <block class=”\Magento\Framework\View\...
Jancy Abraham's user avatar
0 votes
2 answers
659 views

Magento 2 Product Grid is Rendering Special Characters as HTML Tags

For some reason my product grid in Magento ver. 2.3.4 (Open Source version) is rendering the special characters & and " as HTML tags. For example creating a product with the name Product name &...
CJNotts's user avatar
  • 392
3 votes
3 answers
11k views

Specific product price render in magento 2

I want to render specific product price render in my custom page in block file. I get reference from here . But, It returns error : main.CRITICAL: Wrong Price Rendering layout configuration. ...
Rohan Hapani's user avatar
  • 17.3k
0 votes
1 answer
553 views

Magento 2.2.5: Ui-component render wrong position

I am doing rendering students to magento admin page using ui-component after this course https://www.youtube.com/watch?v=qeIjXiAI5JY&index=3&list=PL98CDCbI3TNvvb0SvN_M35IToppFCHGg3. And its ...
fudu's user avatar
  • 1,258
2 votes
1 answer
624 views

how to debug 'page not rendering' in magento 2- possible problem with the xml

How do you debug a page in a custom module. or more to the point. How do you debug whether the xml is rending the correct page content. I am trying to create a page in my custom module, I am able to ...
theSeeker's user avatar
  • 449
3 votes
1 answer
194 views

Magento2 display price in 2.5 lac, 3.5 crore, 25 lac etc

How to display product price on listing page, product detail page in numbers & letters combination. For example 2.5 lac, 3 crore etc. In PHP I can get price using following logic, but how to ...
Siva Kumar Koduru's user avatar
0 votes
1 answer
1k views

Force page rendering after new HTML is loaded by AJAX

I have a 3rd party extension for layered navigation in Magento 2.2.1. Products listing is repainted (using ajax) after customer changed the navigation filter (categories) There is some visual error ...
Alex Gusev's user avatar
  • 1,999
0 votes
1 answer
79 views

render different layout (rather than the default one)in controller

the case is as follow i create a module that save articles in DB and when the the saving is successfull i need to redirect the user to thanks page .the contoller render the default layout in the index ...
Shymaa Helal's user avatar
1 vote
1 answer
114 views

Optimize the render path (Magento 1.X)

Using Google Speed Insight, webtestpage.org, gtmetrix.com it says me make several modifyies to optimize and speed up my site render. They say to inline small js, defer parsing js, inline small css. ...
Marcello D'Ambrosio's user avatar
2 votes
1 answer
178 views

How to pass price into my own div block

In magento 2, I've created a recently viewed items using Magento Reports block. Now I need to show prices for only registered users. I have 2 problems, price is rendered by following php code, ...
Joey's user avatar
  • 571
18 votes
4 answers
11k views

Magento 2 - Render custom product collection via list.phtml

The product grid of a category page (frontend) is rendered via layout in catalog_category_view.xml. Lets say I have a custom product collection (which I got via ProductRepositoryInterface::getList(...
Blackpanther0001's user avatar
0 votes
2 answers
647 views

Template not loading on checkout/cart page

I've installed a module which explicitly describes that the layout should be updated in order to see the template file. I've done this, but it's still not showing and I can't figure out why. Here is ...
Nico V's user avatar
  • 87
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
Pradeep Kumar's user avatar
1 vote
0 answers
918 views

Make Magento render complete HTML

I'm new to Magento I get this template that I don't want to split into multiple blocks. I just want to render the page as it is (not only, but this is something I can try to understand later) when I ...
Victor Ferreira's user avatar
1 vote
1 answer
701 views

render without html and body tag

I created a controller which show a simple block. public function execute() { $this->_view->loadLayout(); $this->_view->getLayout()->initMessages(); $this->...
Kpone's user avatar
  • 371
1 vote
1 answer
518 views

How to change order in the summary order?

in my file phtml I have method: <?php echo $this->renderTotals(null, $_colspan); ?>. I want to change order from subtotal, combined order shipping grandtotal to subtotal, combined ...
Miuzik's user avatar
  • 21
1 vote
0 answers
206 views

Rendering: only <body> content visible on some pages

Almost all the page's render correct. Currently i have 1 (product) page which shows only the content of the tag. When i view the source, the html,body, head tags are all gone (both opening and ...
Stijn Duynslaeger - Echron's user avatar
4 votes
1 answer
3k views

loadLayout() how can I find the according template?

If I do see this function in my controller - how does Magento knows which layout (and templates) it needs to load/show? public function upsellAction() { $this->loadLayout(); $this->...
Xavin's user avatar
  • 405
0 votes
1 answer
6k views

Mage::app()->getLayout()->createBlock()->toHtml() taking much load time

I am calling a block method of another module in one of the .phtml file using below code-- Mage::app()->getLayout()->createBlock('tablisting/list')->toHtml(); this code works but it takes ...
Shashank Kumrawat's user avatar
1 vote
0 answers
69 views

Rendering Custom Customer Attribute issue

This is my code: $attributeCode = 'customer_custom_field'; $attributeData = array( 'label' => 'Customer Custom Field', 'input' => 'text', 'type' => 'text'...
Attila Naghi's user avatar
2 votes
0 answers
155 views

Appending product list with custom collection

I am making a small module to display a product list with content depending on the URI. /storeid/parts/ would be the base, with all parts/products /storeid/parts/mobile would contain all parts in ...
Nathan Prins's user avatar
11 votes
1 answer
2k views

How can I trigger code to run after knockoutjs render in adminhtml

UPDATE: You can access the viewmodels directly. If you need to trigger code to run after a render, use MutationObserver. I'll post my code as soon as I have a good working example. Original Question:...
CarComp's user avatar
  • 1,246
2 votes
1 answer
2k views

render() must be compatible with Magento\Backend\Block\Widget\Grid\Column\Renderer\RendererInterface::render(Magento\Framework\DataObject $row)

Fatal error: Declaration of \ModuleName\Block\Adminhtml\ModuleName\Grid\Renderer\Image::render() must be compatible with Magento\Backend\Block\Widget\Grid\Column\Renderer\RendererInterface::...
user38471's user avatar
0 votes
1 answer
116 views

Magento2 css taking ages to load

I am creating a custom theme and the page always renders without the css formatting for about 10 seconds before loading properly. Is this a configuration issue?
PHPDev76's user avatar
  • 331
1 vote
1 answer
3k views

Check if block rendered and displayed on the current page

Is there any way I can check if a block is displayed on the current page? I have a block my.banner with simple image. This block is added to the left sidebar on many different types of pages, e.g. on ...
zitix's user avatar
  • 2,192
1 vote
1 answer
500 views

Problem with rendering address field on profile page

I have a problem like in attachment. I don't know why address isn't rendering. Please help me how to debug this.
MaQ's user avatar
  • 33
3 votes
2 answers
4k views

Unable to save multi selected values to db from magento admin form and render it to grid

I have created a custom grid, I need to add a multi select field. Multi select field will be getting value from "customer_group" table as you can see in /www/Abc/app/code/local/Abc/Bar/Block/...
Abdul Ghaffar's user avatar
2 votes
1 answer
840 views

How to Render the container1 Block in controller

I have try this code in controller to render the block. $layout = Mage::getSingleton('core/layout'); $block_header = $layout->createBlock('core/template_facade'); $block_header->...
V-jay's user avatar
  • 153
1 vote
2 answers
4k views

Custom layout not loading for custom module

I have created a custom module. Below is my app/etc/modules/Php_CardReload.xml <?xml version="1.0"?> <config> <modules> <Php_CardReload> <version&...
Anto S's user avatar
  • 1,407
2 votes
0 answers
180 views

input_renderer does not come in action - Widget_Form

Taking example from this link http://inchoo.net/magento/adding-magento-attribute-with-custom-input-renderer/ I create my renderer and associate it to a attribute in setup.php file: ...
tonyB's user avatar
  • 45
6 votes
2 answers
571 views

hook into magento's output to the client

I'm quite new to Magento, and i'm looking into the following, wondering if it's possible. at some point magento will need to do some echo'ing to the client, ie. stream it's html data to the client. ...
Marten Sytema's user avatar
2 votes
3 answers
145 views

Test if Block is rendered in EMail or in Page (by PHP code)

How is it possible to test whether a custom block (extends Mage_Core_Block_Template) is rendered in a HTML page or rendered in an email (transactional email template)? I want to do this in the PHP ...
Ronny's user avatar
  • 121
1 vote
2 answers
1k views

I get code while displaying terms and conditions in checkout onepage

I created a terms and conditions page via Sales > Terms and Conditions, I created a terms page and content as {{block type="cms/block" block_id="terms"}}. I also created static block from CMS >...
Kasino's user avatar
  • 11
2 votes
1 answer
10k views

which phtml file is called by $this->renderTotals()?

In following path, app\design\frontend\MYTHEME\default\template\checkout\cart\totals.phtml file contains $this->renderTotals(). My question is that, which phtml file is called by renderTotals() ...
Ravi Patel's user avatar
0 votes
1 answer
95 views

Order Confirmation Template Not Being Picked up

I'm working on a store which language wise is set to use en_UK. Here - app/locale/en_GB/template/email/sales I added email templates. For some reason the order confirmation email template is being ...
develophper's user avatar
  • 2,214
2 votes
1 answer
84 views

layout file not able to render changes on certain category pages

I have made some changes to the layout using local.xml. With the original sample products and category data that I used to test the site the product listing page works as I want it to. I recently got ...
develophper's user avatar
  • 2,214
0 votes
1 answer
223 views

Adding template to admin panel results in strange behaviour

I am having some problems with adding files to the admin/sales_order_create/index page in Magento's admin/backend section. The js file is being rendered but twice. This is definitely not being called ...
develophper's user avatar
  • 2,214
1 vote
1 answer
1k views

Show WYSIWYG button below custom category attribute

I added category attribute (textarea) and Magento stops displaying WYSIWYG button if I use custom renderer for that textarea field. I want to ask I anyone knows why this happens? Here are my steps. I ...
d3tr5845's user avatar
  • 317
7 votes
2 answers
5k views

How to load all child block in controller

I am using Ajax to add to cart, so need to update the cart side bar. I have try this code in controller to render the block. Mage::app()->getLayout()->getBlockSingleton('page/html')->...
VijayS91's user avatar
  • 1,788
2 votes
2 answers
1k views

What is the best way to create "recursive template"?

How could one make a template that based on some condition renders itself again?
LDusan's user avatar
  • 966
1 vote
1 answer
4k views

When is local.xml loaded?

I'm having trouble getting my page to render properly. At app/design/frontend/base/default/layout, I have the following local.xml file ... <layout version="0.1.0"> <...
Clayton Roth's user avatar
1 vote
1 answer
5k views

Render particular block instead of complete layout

If we call the below code in a controller, it renders the complete layout handle related to the controller. $this->loadLayout(); $this->renderLayout(); But what I want is to render only a ...
Mr_Green's user avatar
  • 1,605
3 votes
2 answers
2k views

Render bundle product options in block

I'm trying to render a bundle product's options (html) in a block for a custom module that I'm working on, without much success and I hit a dead end so far. For for configurable or grouped products ...
George Schiopu's user avatar