Find Jobs
Hire Freelancers

Phpprobid hide add to card button when stock level is 0

£10-20 GBP

已完成
已发布超过 6 年前

£10-20 GBP

货到付款
I want to hide 'Add to card'/'Buy' button when stock item is 0, i found the way how to disable (below I add code 'disabled' => ($listing['quantity'] > 0 || $listing->getData('stock_levels')) ?false : 'disabled',) but I need to hide that button. I need help to write html code and hide that button. Code is: <?php $purchaseBtnValue =($listing->canAddToCart() === true) ? $this->_('Add to Card'): $this->_('Buy Out'); echo $this->formElement('button', 'buy') ->setType('submit') ->setAttributes(array( 'class' => 'btn btn-success', 'formaction' => $this->url($listing->purchaseLink()), 'disabled' => ($listing->isActiveAndOpen() && !$seller->isVacation()) ? false : 'disabled', 'disabled' => ($listing['quantity'] > 0 || $listing->getData('stock_levels')) ?false : 'disabled', )) ->setValue($purchaseBtnValue) ->render(); ?> </dd>
项目 ID: 15398775

关于此项目

7提案
远程项目
活跃7 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Adjusting PHPProBid for your needs / hide add to cart if stock is zero Relevante Fähigkeiten und Erfahrungen PHP Vorgeschlagene Milestones £12 GBP - .
£12 GBP 在0天之内
5.0 (23条评论)
4.2
4.2
7威客以平均价£61 GBP来参与此工作竞价
用户头像
Hi, I read the job details and we are really interested in working on this project for you. We are able to accomplish tasks carefully & effectively according to current business standards. Relevant Skills and Experience PHP,CAKEPHP,CI,YII,WORDPRESS,HTML,BOOTSTRAP, CSS,LOGO DESING ALL DEVELOPEMNT Proposed Milestones £15 GBP - ONE Can you discuss in detail on chat ? we will do ASAP
£12 GBP 在0天之内
4.9 (150条评论)
6.7
6.7
用户头像
I want to hide 'Add to card'/'Buy' button when stock item is 0, i found the way how to disable (below I add code 'disabled' => ($listing['quantity'] > 0 || $listing->getData('stock_levels')) ?false : 'disabled',) but I need to hide that button. I need help to write html code and hide that button.
£14 GBP 在1天之内
4.9 (79条评论)
5.6
5.6
用户头像
would like to help you to hide add to cart Button Relevant Skills and Experience PHP, HTML, CSS, Jquery, Javascript, MYSQL Proposed Milestones £10 GBP - on completion
£10 GBP 在1天之内
5.0 (18条评论)
4.8
4.8

关于客户

UNITED KINGDOM的国旗
London, United Kingdom
5.0
1
会员自5月 4, 2016起

客户认证

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