E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2009, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Wed, 9 Sep 2009 23:19:03 GMT Sat, 21 Nov 2009 03:03:52 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #5 http://www.e-junkie.com/bb/topic/3685/pg/0#post11422 http://www.e-junkie.com/bb/topic/3685/pg/0#post11422 Wed, 9 Sep 2009 23:19:03 GMT frouboyI wish to disable a buy button when an item is added to the cart and re-enable the button if the item is removed from the cart. How can I interogate the carts contents to do this?

In your view cart button code, please add this -


function EJEJC_config() { EJEJC_POSTCALL=true; }
function EJEJC_shown() {

if (EJEJC_added('YOUR_ITEM_NUMBER')===true){
// write JS code to disable your button
}

}]]>
E-junkie Discussions; E-junkieChef
Post #4 http://www.e-junkie.com/bb/topic/3685/pg/0#post11422 http://www.e-junkie.com/bb/topic/3685/pg/0#post11422 Wed, 9 Sep 2009 20:16:25 GMT
What you can do is remove the option from the products to Let Buyer Edit Quantity in Cart and then buyers will not be able to add more then one of any specific product to their cart.]]>
E-junkie Discussions; E-junkieNinja
Post #3 http://www.e-junkie.com/bb/topic/3685/pg/0#post11422 http://www.e-junkie.com/bb/topic/3685/pg/0#post11422 Wed, 9 Sep 2009 05:37:57 GMT
I'm trying to determine if I can read the contents of the Cart after its been closed down so that I can decided, or not, to change the state of my buttons.
Do you store the carts contents in cookie (or in some similar state file) on the users PC?]]>
E-junkie Discussions; frouboy
Post #2 http://www.e-junkie.com/bb/topic/3685/pg/0#post11422 http://www.e-junkie.com/bb/topic/3685/pg/0#post11422 Wed, 9 Sep 2009 00:02:05 GMT E-junkie Discussions; E-junkieNinja Post #1 http://www.e-junkie.com/bb/topic/3685/pg/0#post11422 http://www.e-junkie.com/bb/topic/3685/pg/0#post11422 Mon, 7 Sep 2009 20:04:11 GMT E-junkie Discussions; frouboy