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個の提案
リモートプロジェクト
アクティブ 6年前

お金を稼ぎたいですか?

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)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。