An extension I have installed on my Magento site overwrites the view.phtml file for the product pages, even on the mobile site. I would like to use the mobile template's view.phtml when viewing from a mobile device.
I've thought of some options to fix the problem, but don't know how to do it, or which method would work best..
Any ideas?
The module most likely uses it's own layout XML file within the default Magento theme to override the view.phtml.
Find the module's layout XML file inside of app/design/frontend/default/default/layout/MODULENAME.xml
(this is the common format)
Copy that XML file to your mobile theme's layout folder.
Open the XML file, and look for the view.phtml
template override. It will look something like: template="MODULENAME/path/to/view.phtml"
Change this back to the default, which is: catalog/product/view.phtml
Save the file, flush your Magento caches. The product page layout should revert back to your default view.phtml
file when viewing the mobile template.
If you want to remove all overrides occuring in the module's layout XML file, you can simply delete everything inside of the file, and save it like that in the mobile theme's layout directory.