Find Jobs
Hire Freelancers

Custom Jquery code in Magento2 not working

₹100-400 INR / hour

已完成
已发布将近 6 年前

₹100-400 INR / hour

I have added a custom js file named [login to view URL] in the path /app/code/Ced/CsProduct/view/frontend/web/js/ The code is like: require([ "jquery" ], function($){ $(document).ready(function() { alert("Hello"); $("[data-index='painting_hieght']").hide(); $("[name='product[size]']").change(function(){ var status = [login to view URL]; alert(status); if(status=="103"){ $("[data-index='painting_hieght'],[data-index='painting_width']").show();// hide multiple sections }else { $("[data-index='painting_hieght'],[data-index='painting_width']").hide(); } }); }); }); and modified the file [login to view URL] in path app/code/Ced/CsProduct/view/frontend/layout/ the contents of the file look like this: <page xmlns:xsi="[login to view URL]" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/[login to view URL]"> <head> <link src="Ced_CsProduct::js/[login to view URL]"/> </head> <update handle="csproduct_vproducts_superconfig_config"/> </page> I find that I get the alert "Hello" only First time after clearing all cache. but subsequent reload doesn't show any alert. Besides the page source shows the [login to view URL] but in firebug debugger source the file is not there. Obviously I am making some silly error, which is skipping my attention.
项目 ID: 17183906

关于此项目

3提案
远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
₹277 INR 在40天之内
5.0 (18条评论)
4.5
4.5
3威客以平均价₹537 INR/小时来参与此工作竞价
用户头像
Hello, I can fix this issue, I have expertise in Jquery and javascript. also I have the excellent command over PHP, Mysql, Cakephp, Smarty, Jquery, AJAX. So i am interested to do this project and I can assure you that I will do this job very efficiently and with in the time. looking forward for your reply. Thanks Kush Rai
₹1,111 INR 在40天之内
4.4 (24条评论)
4.5
4.5
用户头像
Hello client. I have 4 year's experience in magento. I have expertise in theme and module development and customization. I have done more than 15 project's based on magento.
₹222 INR 在1天之内
5.0 (4条评论)
1.1
1.1

关于客户

INDIA的国旗
Sambalpur, India
5.0
5
会员自6月 1, 2018起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。