Hot answers tagged

15

There are two different versions which we have used. The first is the same one which @Marius made mention of minus the specific "Fennec" mention (which is no longer in the UA string of FF Mobile). I got it from similar sources: iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini The second is the ...


11

REST API Reasons: it is much easier to implement than SOAP as PHP notoriously does not always follow the same standards as - for instance - Microsoft products do. Also, dealing with SOAP implies dealing with XML, namespaces and WSDL. Of course it will work, if done properly, but the cost of developing this for iOS would be greater; SOAP is based on XML, ...


9

In order to create a rest api there are some certain requirements you need to create an interface in your modules Api folder. then you need to define all the api methods that you want to expose to the web in the interface. All the methods should have a doc-block. in the doc-block @api must be defined if your method expects parameters than all the ...


8

Try to create multiple exceptions for each device


7

I have added 2 design exceptions, one for tablets, for which I serve my desktop theme and one for phones, for which I serve my mobile theme. I add the exception targeting the tablets first, and then the exception targeting the mobile phones Tablets iPad|Silk|Kindle|Xoom|SCH-I800|Tablet|GT-P10|SC-01C|SHW-M180S|SGH-T849|SCH-I800|SHW-M180L|SPH-P100|SGH-I987|...


7

Add this code in you active theme's default.xml <referenceContainer name="page.top"> <referenceBlock name="store.links" remove="true" /> </referenceContainer> And run command - php bin/magento cache:clean


5

The short answer here is no, though, you could drop a javascript cookie called forcedesktop and set it to true. This would be set onclick for the switcher link. Then rewrite the design exception method to sniff for existence of the cookie: app/code/local/YourCompany/YourModule/etc/config.xml <?xml version="1.0"?> <config> <modules> ...


4

The Magento 2 REST Apis are a lot more extensive than out of the box in Magento 1, and it is easy to add new Apis of your own to fill gaps. If you want to learn more, have a look at http://devdocs.magento.com/ and navigate to the "web service developer" menu. (The documentation is still under development, but to get a feel of the new REST API coverage have ...


4

Open your styles.css and apply the following style @media (max-width: 770px) { .product-collateral > dl > dd { display: block !important; } }


4

Answer:-SOAP API SOAP (Simple Object Access Protocol) brings it’s own protocol and focuses on exposing pieces of application logic (not data) as services. It exposes operations and focuses on accessing named operations, each implement some business logic through different interfaces. That’s why SOAP is considered as successor of XML-RPC and also uses XML to ...


4

You can use below condition . It's work for me for detect mobile device. $isMobile = Zend_Http_UserAgent_Mobile::match( Mage::helper('core/http')->getHttpUserAgent(), $_SERVER ); Note: If you are testing in desktop or laptop by Responsive design view. It will not work. Its only work in mobile.


4

Okay, I came up with a solution. It may not be ideal, but it works for me. Hopefully somebody will find it useful. It will depend on the base theme you're using, but first of all I had to comment out this line in styles-m.css: .navigation .submenu:not(:first-child).expanded { // display: block !important; ... } In my own mobile stylesheet, that's set ...


4

for the HTML, JS and CSS changes you can enable the merging and bundling the JS and CSS files, and then it will merge it to the client's browser too and reflect the changes, https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/themes/js-bundling.html https://devdocs.magento.com/guides/v2.3/performance-best-practices/advanced-js-bundling.html Another ...


3

edit: Should point out this was written with v1.9.1.0 in mind. There were various modifications to the RWD theme since 1.9.0.1 so the solution may need adapting. The accepted solution will end up opening all the tabs in the mobile view. OP mentioned only the description. To make the first tab start open the answer lies within in skin/frontend/rwd/default/...


3

Magento's REST API, as you pointed out, is not feature complete. It does not support something as simple as retrieving a list of all product categories. Magento's SOAP API is exhaustive and feature complete but working with a SOAP server with an iOS app as the client is not a pleasant experience. I personally faced a lot of performance issues. Other than ...


3

You can't use the rest api for a mobile app. Like you said it misses a lot of features. It only allows you to list products. And there is no pagination on the REST API calls. So if you have like 30K products the API is unusable. But I think you can use the SOAP API, although that might be incomplete also if you need complex features. For listing products ...


3

Magento has this built-in already: http://www.molotovbliss.com/iphone-magento-theme-compatible-with-android/ UPDATE: Apologizes for missing the redirecting portion of your question, most likely you'll want to take a look at something like a lightweight php class to use in your index.php to determine such. If you can avoid the headaches of regular ...


3

Magento has a functionality to configure which templates, layout, css and js to use for device. You even do not need to change url. Go to System -> Configuration -> Design -> Themes Add exceptions for Templates, Skin (Images / CSS), Layout. Exception has two fields: Matched Expression - possible values are "iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|...


3

I think there are two options. Navigate to Stores> Configuration > Services > Magento Web API. Then select Yes from the Allow Anonymous Guest Access menu. I have tested, it works. Use OAuth-based authentication. But the official document seems incorrect. After integration registration, I active it and got consumer key, consumer secret, access token ...


3

There no default way in admin to do so. But you can create a Helper with this function which will return true if it's mobile device otherwise will return false function isMobile() { $useragent=$_SERVER['HTTP_USER_AGENT']; if(preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|...


3

Sure, you can do this by Magento admin. Go to System > Configuration > General > Design -> Package and Theme sections. Click Matched Expression and this: iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini This settings will be use for detecting Mobile devices. You can create New ...


3

I can confirm that this is an issue that is commented, I don't know if it is connected to the original reported issue, but I happens for all of our staging/development/production sites we have. It doesn't seem to only be product images, but also images that are coming from third-party modules to in the pub/media folder. Edit: OK just noticed this page as ...


3

You can create function in helper by enter all dial number with country code. I have created function like below: public function getphonecode($code) { $countrycode = array( 'AD'=>'376', 'AE'=>'971', 'AF'=>'93', 'AG'=>'1268', 'AI'=>'1264', 'AL'=>'355', 'AM'=>'374', 'AN'=...


2

Here is a list of possible values. I'm almost sure that these are not all the possible values, but it covers most cases: iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini|Fennec Sources: http://magebase.com/magento-tutorials/magento-design-exceptions-explained/ http://inchoo.net/ecommerce/...


2

It's gonna be complicated to give you a ready to go answer since this is quite a large feature you are requesting. But here goes. One easy (and perhaps a but dirty) way to do it is create a PHP script in the Magento root directory. Below is an untested script pieced together from another import I made. It basically gives you a form that accepts the product ...


2

@tecjam Basically gives the right answer in your scenario, but I wanted to add some more detail for a better understanding. Unfortunately this would be a theme-specific feature. You'll have to consult that manual for any clues, but its unlikely that it will have this ability with the flip of a switch. Most themes these days are built on RWD -- responsive ...


2

The only way I can see this happening is to edit your css and remove all the media queries. eg: @media (min-width: 768px) { ....} But exactly why one would want to do this is beyond me. Generally I would not visit any site on my mobile / tablet that only displays in full page view and isn't responsive. So make sure you backup your css file(s) first, so ...


2

The value represents this array serialized. array ( '_1380154833505_505' => array ( 'regexp' => 'iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini', 'value' => 'mobile', ), ) I assume that what throws you off is this key. _1380154833505_505. This can be about anything, ...


2

Earlier this year we put together a quick module to implement this functionality complete with support for use behind the Enterprise Edition FPC. Since then it's been used on a number of sites we've built. When I saw this question posted I decided to polish it up and publish it on GitHub. @philwinkle beat me to posting an answer though... ;) And it does ...


2

You are forgetting: And what has been made for this: the XMLConnect API. It's issue has always been documentation and promotion. But not anymore: Magecast Episode on API's by Fabricio Branca


Only top voted, non community-wiki answers of a minimum length are eligible