Skip to content

Commit

Permalink
Merge pull request #57 from wirecard/basketQuantityCheck
Browse files Browse the repository at this point in the history
Add basket quantity check
  • Loading branch information
jpy authored Sep 19, 2017
2 parents d8970d9 + 57d59c3 commit bcfa727
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Frontend/WirecardCheckoutPage/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function getCapabilities()
*/
public function getVersion()
{
return '1.5.6';
return '1.5.7';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ public function init()
*/
public function indexAction()
{
$basket = Shopware()->Modules()->Basket();
$basketQuantities = $basket->sCheckBasketQuantities();
if (!empty($basketQuantities['hideBasket'])) {
return $this->redirect(array('controller' => 'checkout'));
}

/** @var Shopware_Plugins_Frontend_WirecardCheckoutPage_Models_Page $oPageModel */
$oPageModel = Shopware()->WirecardCheckoutPage()->getPage();

Expand Down

0 comments on commit bcfa727

Please sign in to comment.