Find Jobs
Hire Freelancers

Phpprobid hide add to card button when stock level is 0

£10-20 GBP

I përfunduar
Postuar over 6 years ago

£10-20 GBP

Paguhet në dorëzim
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 e Projektit: 15398775

Rreth projektit

7 propozime
Projekt në distancë
Aktive 7 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
I dhënë për:
Avatari i Përdoruesit
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 në 0 ditë
5,0 (23 përshtypje)
4,2
4,2
7 freelancers are bidding on average £61 GBP for this job
Avatari i Përdoruesit
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 në 0 ditë
4,9 (150 përshtypje)
6,7
6,7
Avatari i Përdoruesit
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 në 1 ditë
4,9 (79 përshtypje)
5,6
5,6
Avatari i Përdoruesit
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 në 1 ditë
5,0 (18 përshtypje)
4,8
4,8

Rreth klientit

Flamuri i UNITED KINGDOM
London, United Kingdom
5,0
1
Anëtar që nga maj 4, 2016

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.