Skip to content

Commit

Permalink
Add OneClick button to virtual product (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
rus-daniel authored and mehdichaouch committed Feb 15, 2018
1 parent 7664a4e commit 7983efd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/community/Oyst/OneClick/Model/Catalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ 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_Catalog_Model_Product_Type::TYPE_VIRTUAL,
//Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE,
);

Expand Down
1 change: 1 addition & 0 deletions skin/frontend/base/default/js/oyst/oneclick.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function oystOneClick(productTypeId, oneClickUrl, isProductAddtocartFormValidate
var productId, quantity, configurableProductChildId, superGroupEl, productsEl;
switch (productTypeId) {
case "simple":
case "virtual":
// [Hook] Custom function allow anyone to use custom function to retrieve product id
productId = "function" === typeof customGetProductId ?
customGetProductId() :
Expand Down

0 comments on commit 7983efd

Please sign in to comment.