Questions tagged [view]

The tag has no usage guidance.

0
votes
1answer
27 views

Unable to view customer's order

I have encountered an order view error. When I view an order in the magento2.2.6 background, it displays "Information Changes have been made to this section that have not been saved. This tab ...
0
votes
3answers
37 views

Magento 2: redirect to home

I want to redirect my view to the homepage after data submitted in a custom form $resultRedirect->setPath('//'); This code leads to redirection, for now, please help Also is it possible to get a ...
0
votes
0answers
10 views

Magento 2 (2.3.1): Can we share pre-defined views in grids?

it seems Magento 2 support the 'saving of views' by default. In M1 we usead the EAG grid manager, this could do the following: Save the current filter and column set as a view (M2 supports this by ...
1
vote
0answers
9 views

Magento 2 : How to Add Custom Fee To Authorized Amount In Backend Order View Page

I have to add my custom fee amount to authorized amount in backend oreder view comment section. if anyone have any idea than please tell me.
1
vote
3answers
149 views

Magento 2 custom phtml file not calling to all products view pages

I have created custom phtml file, but that file is calling to all the products magento2 Please find the below code: <referenceContainer name="product.info.form.content" > <block ...
0
votes
0answers
32 views

Overriding view.xml options but only on a specific module in Magento 2.

My Magento catalog product page is pretty standard, uses the regular Magento gallery setup which is controllable through my themes view.xml. The thumbnails are displayed in a vertical list with the ...
1
vote
1answer
320 views

How to use session data in view (phtml) magento 2

i can access session data in my controller using \Magento\Framework\Session\SessionManagerInterface public function __construct( Context $context, PageFactory $resultPageFactory, ...
0
votes
1answer
85 views

Create an Interceptor/Observer to trigger action when specific page is loaded

I want to send info to third party services about the views on pages like cart, products, checkout, etc. This info is sent whenever someone visits the respective page or view. For example, when a ...
2
votes
3answers
276 views

Magento2 remove columns from admin sales order view page items grid

Can anyone let me know how to remove existing columns from Admin->Sales->Order->View->Items Grid? Moreover, I also need to add a new column in the same grid, please find attached screenshot for your ...
0
votes
1answer
1k views

Admin grid view action magento 2

I have created admin grit using ui component. I'm trying to implement grid actions.the grid lists out my form details. how add view action to the grid app/code/Dyode/Pricebeat/Controller/Adminhtml/...
0
votes
0answers
8 views

Conditionally block all module output

According to the Magento 2 docs: https://devdocs.magento.com/guides/v2.2/config-guide/config/disable-module-output.html <advanced> <modules_disable_output> <...
1
vote
1answer
41 views

Create empty page on custom admin url

So we have a module which has to return a specific view using a layout. However we can not get an empty page rendered to add my layout too. So our code does the following: We have a massaction that ...
-1
votes
3answers
74 views

Magento 1.8 - How to use reference to show a template on all pages without using a custom module?

I try to add the following template on all pages in the header by using reference. I tried it like this: app/design/frontend/venedor/default/template/black/alert/index.phtml: <script>alert("...
0
votes
1answer
26 views

magento 2 displays small picture in catalog

My magento 2 was fine, I upload big image and the display was fine, now, new products show up small (the one in the right), see my screenshot : I didnt edit my view.xml so I dont know how this ...
0
votes
1answer
66 views

Magento - Insert the media gallery of the product in view.phtml

I'm trying to move the media gallery of the product from the media.phtml file to the view.phtml file. Basically I want to move the div with class = "more-views" which is contained in the media.phtml ...
0
votes
1answer
108 views

Can't use sort or change view in https

My site: discountirrigation.com The SSL was recently applied to all pages of the site instead of just the checkout. However, I can not sort or change the product layout view or select a product ...
0
votes
1answer
2k views

Calling a custom phtml file in another phtml file, cms block, cms page, and XML layout in Magento 2

There may be situation when you are developing a Project, you may need to call a custome phtml file in another phtml file cms page cms block (static block) xml layout How to do it ?
0
votes
1answer
258 views

Remove add and edit functionality in magento 1 grid

I want to remove the Add New button and edit functionality when row is clicked. I've followed this tutorial. I've got all the features as guided in the tutorial. But in my case this grid table must be ...
1
vote
2answers
1k views

How can I disable the View as grid/list buttons in Magento 2.1?

I am working on a Magento 2.1.7 shop. On my category pages, I need to have the grid view only, without giving the customer the possibility of switching to the list view. What is the easiest and/or ...
1
vote
1answer
136 views

magento2 data migration error Exception #0 (BadMethodCallException): Missing required argument $options

after migrating customer data when i click on view customer view data it was shown above error, please help me to resolve
0
votes
1answer
151 views

Tierprices in product view - wrong price calculation

I have a problem with the view of the tier prices. When customer group ID X have tier price for 6 pieces each 56,--. The view show this: The tierprices for all: 6 pieces each 64,-- 12 pieces each ...
0
votes
1answer
249 views

Unable to create Model tables on Magento2

I'm having a hard time making Magento2 create my model tables. This is my code so far: app\code\Werules\Chatbot\Model\IncomingMessages.php <?php namespace Werules\Chatbot\Model; use Magento\...
3
votes
1answer
283 views

M2.1.9 : How to override the magento default .phtml file under vendor\magento\module-sales\view\frontent\templates\email\items.phtml

There. After success migration work, i need to handle devlopment work,ugh. I'm a mad newbie about Magento2 so could you let me know how to overwrite the default phtml file under vendor/magento .. ...
2
votes
0answers
247 views

Getting all subcategories and their products

I tried to get on my parent categories all the subcategories and products for each subcategories. This is my products.phtml <?php $subcats = $this->getCategoryList(); ?> <div class="row"&...
1
vote
1answer
246 views

Magento 2 : Extending layout xml wont work

I'm struggling to extend some layout XML. I want to add a custom subs.phtml o=in catalog_category_view.xml. I created app/design/frontend/Template/Template/Magento_Catalog, modifications in ...
0
votes
0answers
18 views

My configurable products need to have view details button instead of Addto Cart button

How can I replace the add to cart button with a view details button for my configurable products? I searched everywhere but could only find solutions for Magento 1.9 not 2.1.8.
0
votes
1answer
2k views

Magento 2: How to add block inside admin view order (information tab)?

I'm trying to add a custom block inside the Order view information on admin. And it's being so weird. I can do it inside other tabs but on Information doesn't work. Looking at the original layout, ...
2
votes
2answers
3k views

Magento2: Update minicart view using ajax

Is there any way to update the minicart view? Now I'm using require([ 'Magento_Customer/js/customer-data' ], function (customerData) { alert("hola"); ...
1
vote
0answers
292 views

How to create a mysql view in Magento 2 programmatically

Is it possible to create a mysql view in Magento 2 just like we create table in InstallScheme.php. I want to create a view which will be a join of multiple table with selected columns.
0
votes
1answer
1k views

How to check which template /view file is used - rendered

I am trying to make changes to registration page and add the address info fields in registration / account creation page. my browser reads mysite/customer/account/create by following the instructions ...
0
votes
1answer
53 views

Magento 1.9.3 block repositioning

I want to move the product price on the right part. Screenshot: The catalog product view root template is 2 columns right. I tried to find the block name using path hints so I can manipulate it ...
1
vote
0answers
406 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
2answers
1k views

how to view record row from grid in magento

I have successfully created grid in magento admin panel. I can see all records from database successfully but now whenever I will click on any row I get error. I want to display that particular ...
4
votes
0answers
661 views

How to fix “Call to a member function setTitle() on boolean”? [closed]

I'm developing a module, which was working fine on my local environment, and today I was testing it on my online store and a certain view from my module is returning 500 from Nginx. Here is what shows ...
0
votes
2answers
7k views

Add custom block to order view information in admin Magento 2

I have overridden the core layout and template files using custom theme in Magento 2 And I have my block file at Netenrich\Oms\Block\Adminhtml\Order\View template file at serge.beraud@alphanova.com....
0
votes
2answers
130 views

Magento admin page not rendering anything

I'm learning how to create new pages for my custom extension in magento2 admin. However when i go to that admin page it's blank. I've got a controller: <?php namespace ZET3K\Tracker\Controller\...
1
vote
2answers
3k views

Magento 2, get order id in order view page in admin panel, if possible through session

I need to retrieve my custom column information from "sales_order_item" table. I'm having challenge to get the order id. How to get order id in order view page in admin panel? I need $orderId in ...
0
votes
1answer
1k views

HTML Head issue using Magento2

I've an issue with Magento 2: please Help! I've added some HTML code in Content > Design > Configuration > Theme Edit > HTML Head. The code doesn't work (it's ok, no worries for me, cause the ...
0
votes
3answers
312 views

I have recenlty create one module but view file not call. return 404

I have recently learn magento 2.1.2. so I have create one basic module. but view file not call. Its return 404 on frontend side. Above is my module directory structures. routes.xml <config ...
1
vote
1answer
679 views

How to add new block to view.php (Catalog/Product/view.php)

I am trying to add button to view.php but i can't do this. I need any step by step tutorial how to do this, can anyone help me? Thanks for reply i did something like this: i create my own template ...
0
votes
1answer
47 views

Magento2: How to create a page same as Product view page?

In my custom extension, I want to display product view page same to same in Popup. Can anyone help me how to display product view page or create a page same as product view page.
2
votes
1answer
585 views

Getting the error while viewing the order in admin Call to a member function getMethodInstance() on boolean

I am getting the below error while opening/viewing admin -> sales -> order -> view. Call to a member function getMethodInstance() on boolean in /var/www/magento/app/code/core/Mage/Payment/Model/...
0
votes
1answer
17 views

Problem during translations in return view of an order

I've a multilanguages site in Magento 1.9. In return section there's a table and code of its head is the following: <table class="data-table" id="my-returns-items-table"> &...
1
vote
2answers
493 views

Custom module, checking variable in observer

I'm new in making modules, considering below code wondering how would be possible to verify if the checkbox has been selected: my observer.php: public function execute(\Magento\Framework\Event\...
1
vote
1answer
39 views

No able to change English word “BAG” in the homepage menu

I've an e-commerce site in Magento 1.9 with two version: English and French. I've to change some words in both English version and in the French. For example, in the English version, I've to change ...
1
vote
0answers
25 views

getChildHtml function overwrites languages translations

I've a great problem with languages translations of many words of my multilanguages site in Magento 1.9. I noticed that getChildHtml function overwrites many languages transations contained in ...
1
vote
1answer
783 views

Force List view mode (exclude Grid Mode) if mobile detected

Can somebody advise how to exclude Grid Mode category view on mobile devices? Magento 1.9.1.0
1
vote
0answers
429 views

Can't get my ajax request to call controller

I'm trying to send information from the view (js) to the server. I'm trying this with the JS request: $.ajax({ type: 'POST', url: 'php_file_in_controller/Main_Class_Name', data: data, ...
2
votes
1answer
216 views

Help create a block to insert view.phtml

Help create a block to insert view.phtml. I have a layout file that outputs to buy in one click in the right column. I need to put this block alongside a buy button. <checkout_cart_index> &...
2
votes
1answer
3k views

Pass data from Controller into .phtml file

A page is submitted with the Voucher Number to check if it is valid, and if it is, then it the user moves forward in the process. How can I pass this value to the phtml to use again? Preferably I ...