Find Jobs
Hire Freelancers

Phpprobid hide add to card button when stock level is 0

£10-20 GBP

Đã hoàn thành
Đã đăng vào hơn 6 năm trước

£10-20 GBP

Thanh toán khi bàn giao
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>
Mã dự án: 15398775

Về dự án

7 đề xuất
Dự án từ xa
Hoạt động 7 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
Đã trao cho:
Avatar người dùng
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 trong 0 ngày
5,0 (23 nhận xét)
4,2
4,2
7 freelancer chào giá trung bình £61 GBP cho công việc này
Avatar người dùng
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 trong 0 ngày
4,9 (150 nhận xét)
6,7
6,7
Avatar người dùng
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 trong 1 ngày
4,9 (79 nhận xét)
5,6
5,6
Avatar người dùng
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 trong 1 ngày
5,0 (18 nhận xét)
4,8
4,8

Về khách hàng

Cờ của UNITED KINGDOM
London, United Kingdom
5,0
1
Thành viên từ thg 5 4, 2016

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.