2

I have a requirement where my client gives me different design for I-Pad portrait mode And tell me that no need to change design for landscape mode.

So I need to know what is the user agent matched expression for I-Pad portrait mode

1

Sorry to say that,Magento does not have feature to Track current view is portrait or landscape.

So it not possible from design exception setting.

  • Only possible , detect iPhone View mode landscape or portrait using orientationchanged event in JavaScript.
  • and then using Ajax Change set a Session variable which carry current view is portrait at current session.

Then using event controller_action_layout_load_before change theme

Follow below to How change theme using event

Is there any way to set different theme depends on customer group?

  • Though your answer not help me completely but it help me to find a way – Murtuza Zabuawala Jun 13 '16 at 6:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.