magento - Recurring Profile and Bundled Item -
i have subscription service people pay monthly for, i’ve setup “virtual product” recurring profile. @ same time, want have can add different 1 time products. accomplish i’ve tried creating “bundled product” different 1 time products , adding “virtual product” “bundled product”.
however, when go checkout says “nominal item can purchased standalone only. proceed please remove other items quote.” how allow people subscribe service , purchase products @ same time?
note: using paypal website payment pro merchant account.
unfortunately hardcoded restriction in mage_paypal code.
you can see in mage_sales_model_service_quote::submitall()
executes submitnominalitems()
contains:
$this->_validate(); $this->_submitrecurringpaymentprofiles(); $this->_inactivatequote(); $this->_deletenominalitems();
so, kills cart after submitting nominal items. i'm not sure why that, assume it's due way subscriptions created @ paypal.
here code prevents adding items cart contains nominals in mage_sales_model_quote::additem()
:
if ($item->isnominal() && $this->hasitems() || $this->hasnominalitems()) { mage::throwexception(mage::helper('sales')->__('nominal item can purchased standalone only. proceed please remove other items quote.')); }
i'm working on using magento's recurring profiles other payment providers @ moment (its background task: magento recurring profiles non-paypal payment method) , possible checkout both nominal (aka subscription) , real products @ same time, make quite bit more complex.
if big deal, should possible refactor mage_paypal code this, it's complicated task can't answered in single post.
Comments
Post a Comment