Completed

Phpprobid hide add to card button when stock level is 0

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>

Skills: HTML, Javascript, MySQL, PHP, Software Architecture

See more: hide add cart button opencart, hide add cart button magento customer group, flash add cart button client side, find operating stock level retail marketing, virtuemart quick add cart button, add cart button site yahoo store, api google maps add photo button, add add cart button virtuemart, zen cart add cart button, find add cart button zen cart, virtuemart change add cart button product description, add cart button virtuemart, zen cart add cart button login, virtuemart add cart button, create paypal add cart button quantity

About the Employer:
( 1 review ) London, United Kingdom

Project ID: #15398775

Awarded to:

baldoius

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 in 0 days
(20 Reviews)
4.0

8 freelancers are bidding on average £56 for this job

A2Design

Hello! We are A2 Design, a Russian-Canadian web development company. Check out this video about us : [login to view URL] View our recent projects: [login to view URL] https://ww More

£350 GBP in 3 days
(109 Reviews)
8.6
testotorko

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 More

£14 GBP in 1 day
(50 Reviews)
5.2
ghanshyamsain

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 Expe More

£12 GBP in 0 days
(25 Reviews)
4.7
JinYongbin

I have reviewed your job description as well & very confident to handle this project perfectly. I'm confident you will be happy with my job.I always have a clear focus on delivering results. Relevant Skills and Experi More

£18 GBP in 1 day
(5 Reviews)
4.0
£13 GBP in 1 day
(19 Reviews)
4.4
£18 GBP in 1 day
(10 Reviews)
3.8
sudesharora0111

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 in 1 day
(2 Reviews)
2.0