Questions tagged [render]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
2k 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. ...
0
votes
1answer
208 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 ...
2
votes
1answer
145 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 ...
3
votes
1answer
150 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 ...
0
votes
1answer
388 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 ...
0
votes
1answer
47 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 ...
0
votes
1answer
90 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. ...
1
vote
1answer
83 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, ...
14
votes
4answers
5k 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::...
0
votes
2answers
359 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 ...
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
1
vote
0answers
463 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 ...
1
vote
1answer
284 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->...
1
vote
1answer
470 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 ...
1
vote
0answers
131 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 ...
3
votes
1answer
2k 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->...
0
votes
1answer
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 ...
1
vote
0answers
42 views

Rendering Custom Customer Attribute issue

This is my code: $attributeCode = 'customer_custom_field'; $attributeData = array( 'label' => 'Customer Custom Field', 'input' => 'text', 'type' => 'text'...
2
votes
0answers
144 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 ...
11
votes
1answer
924 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:...
2
votes
1answer
1k 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::...
0
votes
1answer
88 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?
1
vote
1answer
1k 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 ...
1
vote
1answer
442 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.
2
votes
2answers
3k 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/...
2
votes
1answer
759 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->...
1
vote
2answers
3k 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&...
2
votes
0answers
174 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: ...
6
votes
2answers
473 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. ...
2
votes
3answers
113 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 ...
1
vote
2answers
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 >...
2
votes
1answer
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() ...
0
votes
1answer
81 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 ...
2
votes
1answer
64 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 ...
0
votes
1answer
214 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 ...
1
vote
1answer
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 ...
7
votes
2answers
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')->...
2
votes
2answers
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?
1
vote
1answer
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"> <...
1
vote
1answer
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 ...
3
votes
2answers
1k 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 ...