Questions tagged [conditional-loading]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
128 views

When Select France Language in Google Translate Price Formatting Different in cart page in Magento 1.9

I set the google translate to translate language in magento 1.9, but in the cart page for some products, the currency symbol was not changed. Select Language France Select Language English any one ...
Jay Parmar's user avatar
3 votes
2 answers
3k views

Magento2 admin grid ui component form hide multiple fields based on php condition

I have so many fields in my admin grid form which made using UI component. I want to hide some of the fields using php condition. I know that it can done using DataProvider file and I also followed ...
Pratik Navapara's user avatar
0 votes
1 answer
3k views

Images and products are not loading

My website is on Magento 2.1.11 version I uploaded all the products and setting up everything but after that, I noticed that my website images (Banner as well as products) not loading in the first ...
Aayush's user avatar
  • 15
0 votes
1 answer
264 views

Conditionally enable event observers in Magento 1.9

I am using multiple event observers in Magento 1.9 From there, I want to conditionally execute other observers. For example, defining the configuration in system.xml to enable or disable execution ...
HungryDB's user avatar
  • 896
0 votes
2 answers
2k views

Magento 2 change logic in layout if logged in

I have a block in a layout xml but I only want it to be displayed if the customer is not logged in. Is this possible?
Goose84's user avatar
  • 2,581
2 votes
2 answers
1k views

how do I call function(Helper) from xml in magento

i see this post I want to do the same but with a condition. I want to call an helper function which return a boolean. And in my xml do like : <?xml version="1.0" encoding="UTF-8"?> <...
Kpone's user avatar
  • 371
4 votes
1 answer
770 views

How to load my javascript file before other javascript file from addJs

I am facing some javascript issues by loading order of custom module Javascript files, so i want to change the loading order of my Javascript files located at magento root root/js/. But the ...
Krishna ijjada's user avatar
2 votes
2 answers
2k views

How to display best seller products category wise?

I'm using MageBees bestseller products extension. And want to customize it in order to get best selling products category wise. Like For Category A, Best Seller Products For Category B, Best ...
Kazim Noorani's user avatar
1 vote
1 answer
610 views

Magento 2 - Conditional Static Block

Is there any way for you to conditionally display a static block? For example, I want a block on the homepage that will only display if there is content in the block. If it is empty, the block ...
Paul's user avatar
  • 1,501
3 votes
2 answers
2k views

Magento2 check in template if page is homepage

How would I check directly in a .phtml template if the requested page is homepage? I would like to add conditionally a class to a given container
deroccha's user avatar
  • 677
6 votes
3 answers
21k views

How to load a phtml file only for homepage? (Magento 2)

I am trying to load a phtml file like this: File /app/design/frontend/name/themename/Magento_Theme/layout/default.xml <referenceContainer name="page.top"> <block class="Magento\...
Oliver Schmid's user avatar
1 vote
1 answer
173 views

Load the cms content based on theme in cms editor

I have two different themes one for desktop and one for mobile. I added about-us page content in cms pages. Its working fine in desktop. Now, the html is different for mobile theme. So, how can I ...
lakshmi's user avatar
  • 61
7 votes
1 answer
2k views

Magento 1.9.1 - Shopping cart price rules - Condition subselection issue

After upgrade from Magento 1.8.1 to 1.9.1 I got not working add to cart button for configurable products, fatal error: Fatal error: Maximum function nesting level of '1000' reached, aborting! in /...
Ihor Sviziev's user avatar
3 votes
1 answer
470 views

Magento hide flat rate on orders over x.xx

I have set a Flat rate shipping of R100.00 (South African Rands) for all items less than R500.00. At the moment it is working. It loads if the orders are less than R500. However the moment the order ...
user avatar
1 vote
1 answer
2k views

Conditional Custom Option

I have a configurable product that has a few custom options.(i.e. custom text, font color) The product can be ordered with custom text on it and custom font color. What I am trying to achieve is, if ...
iPetey's user avatar
  • 49
0 votes
1 answer
2k views

conditions for displaying static blocks

I am working on delivering a customized series of messages via static blocks based on certain conditions a customer possesses. For example, I might like to display one customized offer message vs. an ...
Dave G's user avatar
  • 672
0 votes
1 answer
884 views

Conditional loading headline based on category id magento for product page

For SEO reason I would like to display both the name of the parent category and the sub-category in the headline of a catalog page, but only in some cases. I don't want to use it in the original ...
McKeene's user avatar
  • 501
4 votes
2 answers
499 views

Call to Magento load() to load a model is slow the first time, fast in subsequent calls?

We have a program where we are trying to import Customers and Orders using php into Magento from a non-Magento system via csv files. In a loop we call this function to get a customer model of ...
drichter's user avatar
2 votes
0 answers
127 views

Conditionally loading content for adaptive design server-side with WURFL [closed]

Trying to figure out the best way to only serve content that is needed in a responsive design (as opposed to just hiding hundreds of elements in CSS). I notice at /lib/Zend/Http/UserAgent/Features/...
zigojacko's user avatar
  • 1,754