Skip to content

Commit

Permalink
Implements compliance for virtual quote (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdichaouch committed Jun 29, 2018
1 parent abac1b5 commit 959f03c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ private function getOneClickOrderParams()
{
$orderParams = new OneClickOrderParams();
$orderParams->setManageQuantity($this->getConfig('allow_quantity_change'));
$orderParams->setIsMaterialized(!$this->quote->isVirtual());

if ($delay = Mage::getStoreConfig('oyst/oneclick/order_delay')) {
$orderParams->setDelay($delay);
Expand Down
4 changes: 2 additions & 2 deletions app/code/community/Oyst/OneClick/Model/Catalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class Oyst_OneClick_Model_Catalog extends Mage_Core_Model_Abstract
Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE,
Mage_Catalog_Model_Product_Type::TYPE_GROUPED,
//Mage_Catalog_Model_Product_Type::TYPE_BUNDLE,
//Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL,
//Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE,
Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL,
Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE,
);

/**
Expand Down

0 comments on commit 959f03c

Please sign in to comment.