Lockout Checkout button
Is there a way to lockout the Checkout button/function until a specified item is placed in the shopping cart?
Thanks - Tim
Is there a way to lockout the Checkout button/function until a specified item is placed in the shopping cart?
Thanks - Tim
You can manually add an IF statement around the checkout button that checks to see if a particular item is in the cart. I couldn't give specific code without knowing the name of the cart and the item ID you want to check for.
Thank you Ray! eCart1 and only show the cart if any of the following button names selected:
eCart1_3_ATC
eCart1_8_ATC
eCart1_9_ATC
I don't see IDs in the code for these..Can I just manually add ID's. If where would I add them?
The add to cart buttons have the ID with the name and price when the item is added.
The IF statement would be something like:
<?php
if ($eCart1->InCart(1) || $eCart1->InCart(2) || $eCart1->InCart(3)) {
?>
button code here
<?php
}
?>
OK so if the ids ate DeliverMyOwn, SendBottles and pickupCost the code would look like:
<?php
if ($eCart1->InCart(DeliverMyOwn) || $eCart1->InCart(SendBottles) || $eCart1->InCart(pickupCost)) {
?>
button code here
<?php
}
?>
Is that correct?
Thanks again for the help Ray!!!
No you have to get the ID number from the add to cart... it should be a number not text.
Ok I just defined them with text to keep them straight but I can change them back to numbers. Can I use text or do they have to be numbers?
It has to be numbers by default. It would take a few changes to the cart and code to use text, so it is easiest if you just change it to a number.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.