Questions tagged [view]
The view tag has no usage guidance.
101
questions
0
votes
0
answers
17
views
Checkbox "Use Website" doesn't work after adding new website
I am learning "Set up multiple views in the Admin"
I added a new website+store+view
then opened store > system > configuration > general > web and tried to change store url. But ...
0
votes
0
answers
29
views
How to display image in gmail that send from Mageplaza_SMTP in magenot 2.4?
I am trying to add image in Gmail.
I had inserted image url in my email template and had set it.
The sent gmail has included images, but is not displayed.
Ofcourse email sending is success and the ...
0
votes
2
answers
101
views
How to add image in email template?
I am trying to add image in my custom email template.
I want to know how to define image section in email template and how to set image PARAMS of email sending action using TransportBuilder.
Images ...
0
votes
0
answers
17
views
How to add product specification information in admin product view page?
I am trying to add product specification section in admin product view page.
This section has to include three images upload function that display its specification, and then title input field, ...
0
votes
2
answers
144
views
Magento 2 - Get location of view model of knockoutjs .html template
For example, how can I find out where the model / view model for this template is located at?
vendor/magento/module-checkout/view/frontend/web/template/minicart/item/default.html
0
votes
1
answer
46
views
How to override view/base file in magento 2 like as we can override frontend file in design folder
I want to override view/base
If we override view/frontend folder then we follow this pattern
app/design/frontend/
here we create registration.php file
theme.xml
and ...
0
votes
1
answer
16
views
How to modify core product block
I have a problem with having any impact on how the site render a block. I want to pass data about shipping price to a product page, and I want it done by creating module, I've made standard: app/code/...
0
votes
3
answers
636
views
How to add block for Specific category's products in Magento 2 by layout/catalog_product_view_attribute_set_id_[id]?
I am trying to the make block visible only in Category 3. The block renders fine in catalog_product_view.xml. However when I change the file to catalog_product_view_attribute_set_id_3.xml, it doesn't ...
1
vote
2
answers
409
views
How to Get Most Viewed Product Collection in Magento 2?
how to get the most viewed product collection in your Magento 2 store?
I try with multiple codes but unfortunately, I am not getting any solution.
I try to create a MostViewedProducts.php file in the /...
0
votes
1
answer
26
views
Is it possible to check how an item will display on the website before saving it to be uploaded?
I Want to make sure my item will be uploaded, viewed and interacted with correctly, can I check what it would look like prior to putting it live on the site available to customers?
1
vote
2
answers
2k
views
How to add Custom Step on Checkout and move Shipping methods in that step In Magento 2.3.5
In this i want one custom checkout step can having only shipping methods inside the step means shipping address and Shipping methods are on different steps on checkout page.
So, Please can anyone have ...
0
votes
1
answer
35
views
How can I view customer account actions?
I am trying to find a way that lets me see what customers have logged in from a set period time is that possible? I checked my advanced reporting but I always get a message that says "Some pieces ...
0
votes
1
answer
253
views
ViewModel modification makes existing list.phtml break
I recently made a modification to catalog-category-view.xml and overrode category.products.list.
It seemed to work at the time, I had badges displaying on a rendered page.
Now the template file errors ...
0
votes
1
answer
196
views
How to add a custom block in the sales_order_shipment_view page in backend M2?
How to add a custom block in the sales_order_shipment_view page in backend M2?
I have to override the sales_order_shipment_view.xml file in my module then I have added the below code for the override ...
0
votes
2
answers
512
views
using customer session in block
I want to get customer id in block but the customer session returns null.
from controller, i could get customer id.
logger in block works well so the customer id is executed.
vendor/Block/Config.php
...
2
votes
1
answer
282
views
How to create a Grid View Slider. Magento 2
I'm trying to create View Slider in my custom grid like
for that I've followed This and This but in the both cases when I click on my custom link or button it gives me an error in console
Now I dont ...
0
votes
0
answers
169
views
Warning: simplexml_load_string(): Entity: line 29: parser error
May I have Help please
Warning: simplexml_load_string(): Entity: line 29: parser error : StartTag: invalid element name in /var/www/magento2/vendor/magento/framework/View/Model/Layout/Merge.php on ...
0
votes
1
answer
120
views
Link Custom Block to custom page
I created a custom block and was able to link to it on the home page or display it there. Unfortunately I don't get the block displayed on another page I created via the backend.
If I understand the ...
0
votes
2
answers
635
views
No element found with ID 'reviews.tab'
I'm facing this issue.
Exception #0 (OutOfBoundsException): No element found with ID 'reviews.tab'.
Anyone have an idea about this one?
1 exception(s):
Exception #0 (OutOfBoundsException): No ...
1
vote
1
answer
701
views
Magento 2 Error 500 when viewing all products in a certain category
As soon as I select "limit all", i get a server error.
All other pages are working fine. I increased my memory limit to 4 GB, checked file permissions, etc.
My error log just says Error 500.
My ...
1
vote
3
answers
414
views
Product view page not open when customer log out in magento 2.3?
I have a site in Magento 2.3!
My requirement is when the customer does not log in to my site so he can not see product view page.
they see only the product listing page.
and when he click product ...
0
votes
2
answers
456
views
Display "only X left threshold" and stock status on category view
I'm new to Magento(2) and I'm trying to display Stock Status, stock count, and quantity field in category view like in product view.
I don't know where to get theses values and where to put it...
I'm ...
1
vote
1
answer
697
views
How to get the store code in a phtml file of Magento2?
In a custom phtml file I have to get the code associated to the store view (not the Id), any idea how to get this?
1
vote
0
answers
154
views
Magento 1.9: How to get the appropriate products attributes details?
I just display my attributes on the PLP page, but the attributes duplicates or mismatch, actually I am using $attributes = $_product->getAttributes(); for getting appropriate attributes, but my ...
1
vote
1
answer
266
views
Magento 1.9: Change Grid/List View Based on Category
My default view is List view, how can I change based on category.
0
votes
1
answer
54
views
Showing back order message on Product View Page
Using checkout_cart_product_add_after event I am trying to show the Back Order Message on the Product View Page but I am not getting the product id from the Observer(Id of Configurable Product ...
0
votes
1
answer
1k
views
Magento2 How to get current compare product collection on product list and product detail page?
I am using Magento2.3.1 and I need to list and detail page current product if add compare product than getting list and count on list and detail page. So I try to detail and list page checkbox with ...
1
vote
1
answer
184
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
3
answers
852
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 ...
1
vote
0
answers
33
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
3
answers
2k
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
...
1
vote
1
answer
4k
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
1
answer
155
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 ...
3
votes
3
answers
2k
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
1
answer
4k
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/...
1
vote
1
answer
472
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
3
answers
134
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
1
answer
243
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
1
answer
233
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
1
answer
264
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
1
answer
9k
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
1
answer
736
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 ...
5
votes
2
answers
4k
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
1
answer
857
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
1
answer
266
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
1
answer
512
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
1
answer
566
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
0
answers
420
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
1
answer
452
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
0
answers
19
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.