Anton Qcl Posted October 18, 2013 Report Share Posted October 18, 2013 Version: 3.0.4URL: plugin/order/main/configure/services?q_item=0Last action: button "Continue" pressed.Problem: I'm trying to buy some product with plugin "Portal". I have few add-on packages - for example: "foo", "bar", "foobar". Package "foo" first in list. I'm trying to choose package "foobar" but function getClientAddField still receivng data in object "$package" from package "foo". Example: Code of getClientAddFields: public function getClientAddFields($package, $vars=null) { var_dump($package); } (I've chosen "foobar")Received data:object(stdClass)#242 (18) { ["id"]=> string(1) "3" ["id_format"]=> string(5) "{num}" ["id_value"]=> string(1) "3" ["module_id"]=> string(2) "12" ["name"]=> string(13) "foo" ["description"]=> string(0) "" ["description_html"]=> string(8) " " ["qty"]=> NULL ["module_row"]=> string(1) "3" ["module_group"]=> NULL ["taxable"]=> string(1) "1" ["status"]=> string(6) "active" ["company_id"]=> string(1) "1" ["id_code"]=> string(1) "3" ["email_content"]=> array(1) { [0]=> object(stdClass)#243 (3) { ["lang"]=> string(5) "en_us" ["html"]=> string(8) " " ["text"]=> string(0) "" } } ["pricing"]=> array(1) { [0]=> object(stdClass)#114 (7) { ["id"]=> string(1) "3" ["term"]=> string(1) "0" ["period"]=> string(7) "onetime" ["price"]=> string(7) "10.0000" ["setup_fee"]=> string(6) "0.0000" ["cancel_fee"]=> string(6) "0.0000" ["currency"]=> string(3) "CAD" } } ["meta"]=> object(stdClass)#240 (0) { } ["groups"]=> array(1) { [0]=> object(stdClass)#239 (3) { ["id"]=> string(1) "2" ["name"]=> string(4) "DIDs" ["type"]=> string(5) "addon" } } } Quote Link to comment Share on other sites More sharing options...
Anton Qcl Posted October 22, 2013 Author Report Share Posted October 22, 2013 That is cookie's bug. If I chosen Add-On and didn't buy it this then I can't change Add-On or buy any service (even service doesn't have Add-On) without chosen Add-On. For example: Package: Foo, Bar.Add-On's from package Foo: Fooaddon1, Fooaddon2. 1. I go to Portal and choose package Foo with Add-On Fooaddon1. 2. I close browser. 3. I open browser and go to Portal. 4. I choose package Bar and press "Continue". 5. I receive Add-On Fooaddon1. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.