Käynnissä

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>

Taidot: HTML, Javascript, MySQL, PHP, tietojärjestelmäarkkitehtuuri

Näytä lisää: 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

Tietoa työnantajasta:
( 1 arvostelu ) London, United Kingdom

Projektin tunnus: #15398775

Myönnetty käyttäjälle:

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 0 päivässä
(18 arvostelua)
3.8

9 freelanceria on tarjonnut keskimäärin 52 £ tähän työhön

A2Design

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

350 £ GBP 3 päivässä
(109 arvostelua)
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 Lisää

14 £ GBP 1 päivässä
(46 arvostelua)
5.1
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 Lisää

18 £ GBP 1 päivässä
(5 arvostelua)
3.9
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 Lisää

12 £ GBP 0 päivässä
(15 arvostelua)
4.0
18 £ GBP 1 päivässä
(8 arvostelua)
3.7
18 £ GBP 1 päivässä
(9 arvostelua)
3.7
13 £ GBP 1 päivässä
(10 arvostelua)
3.1
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 1 päivässä
(0 arvostelua)
0.0