Magento产品缩放扩展在我的自定义主题中不起作用 [英] Magento product zoom extension not working in my custom theme

查看:84
本文介绍了Magento产品缩放扩展在我的自定义主题中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用custom theme in magento.,现在我安装a pluging for product zoom functionality.但是该插件无法正常工作.最终,我发现在安装插件时,文件保存在默认主题目录中,但是我使用的是自定义主题(themeheros).

I am using a custom theme in magento. Now I install a pluging for product zoom functionality. But the plugin is not working. Finally I found that the while installing the plugin, the files are saved in default theme directory, but I am using a custom theme(themeheros).

要使插件正常工作,请剪切并粘贴

To make the plugin working I cut and paste the

app/design/frontend/default/default/layout/[extension_name].xml
app/design/frontend/default/default/template/[extension_name]/*

文件到

app/design/frontend/[your_interface]/[your_theme]/layout/[extension_name].xml
app/design/frontend/[your_interface]/[your_theme]/template/[extension_name]/*

但是没有运气.该插件仍无法正常工作.

But no luck. The plugin is still not working.

对于产品缩放,我使用了许多插件,但是在自定义主题中没有人使用

For product zoom I use number of plugins but no one was worked in custom theme.

但是在我的本地计算机上,这些插件可以正常工作,因为我使用的是默认主题.

But in my local machine these plugins are working because there I am using the default theme.

如何使该插件在Magento的自定义"主题中工作.我的 magento版本是1.9.0.1 .

How can I make the plugin working in Custom theme in Magento. My magento version is 1.9.0.1.

推荐答案

  • 该模块使用哪个javascript库? jQuery的?原型?如果 jQuery检查现有的noConflict()方法.
  • 尝试放置布局和 基本/默认目录中的模板文件.
  • 在大多数情况下,由于自定义主题,任何javascript库都不起作用.例如,默认情况下,magento图像包装器块为<div class="product-image">,任何模块都尝试选择该块$('.product-image').但是,在您的自定义主题中,此块可以具有另一个类,并且模块初始化将不起作用.因此,我建议切换到默认主题.
  • 在您的产品视图页面上打开view:源代码,并找到jQuery(如果该模块使用jQuery)连接了多少时间
  • 根据您的评论检查此页面上当前的句柄是否使用.无论如何,请在第一篇文章中将您的布局xml上传到这里.
    • Which javascript library does this module use? jQuery? Prototype? If jQuery check existing noConflict() method.
    • Try to put layout and template files in base/default directory.
    • In most situations any javascript lib doesn't work because of custom theme. For example in default magento image wrapper block is <div class="product-image"> and any module try to select this block $('.product-image'). But in your custom theme this block can have another class and module initialization will not work. So I recommend to switch to default theme.
    • Open on your product view page view:source code and find how much time jQuery (if it module use jQuery) attached
    • According your comment check if current handle use on this page. Anyway upload here your layout xml in your first post.
    • 这篇关于Magento产品缩放扩展在我的自定义主题中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆