Modification: Zen Cart cc.php
Project ID: 1230802107
Project Details
- Status: Closed (Cancelled)
- Posted: 1/1/2009 at 4:28 EST
- Cancelled: 1/23/2009 at 0:42 EST
- Project Creator:
- Budget: N/A
- Description: This project is for a small modification to a Zen Cart.
I want to disable the cc module on all download products (paypal only for payment on those) so I want to specify say product IDs 2, 7, 10, 11, 19, etc as ones that the cc module won't show up for if they are included in the order.
If a specified item is in the cart either by itself or with other items, the cc module should not show up at all (only paypal module we have activated).
For example, if it were this product:
/index.php?main_page=product_info&cPath=65&products_id=200
We don't want to accept cc.php payments on. So I'd like the code in cc.php to allow me to put in product ID 200 as one not to show the cc module if that item is in the cart.
There are other items also so I'd like to be able to edit the code you'd be programming for the cc.php to note other items as we add them that we don't want cc module to show for.
I need a programmer who is able to add a flag into the attached cc.php file so that if specified product IDs are found in the cart, the module won't show up. We want to disallow credit card payment only on specific items by product ID, not all items and not by category (as the specified items may be in different categories).
I've got this code which flags based on order total and it's supposed to make the module not show up if the order is under $15, which is similar but not exactly what we want. And it doesn't work so I don't know if it's helpful, but thought I'd include it in case it is:
// control by order total
$chk_order_total = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
if ($this->enabled == true && $chk_order_total <= 15) {
$this->enabled = true;
} else {
$this->enabled = false;
}
The module itself has a section that checks for flags based on shipping zones and if certain zones are disabled it won't show up but I don't have that activated. That also might be helpful to base the code on.
/**
* calculate zone matches and flag settings to determine whether this module should display to customers or not
*
*/
function update_status() {
global $order, $db;
if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_CC_ZONE > 0) ) {
$check_flag = false;
$check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_CC_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");
while (!$check->EOF) {
if ($check->fields['zone_id'] < 1) {
$check_flag = true;
break;
} elseif ($check->fields['zone_id'] == $order->billing['zone_id']) {
$check_flag = true;
break;
}
$check->MoveNext();
}
if ($check_flag == false) {
$this->enabled = false;
}
}
}
All I need is a bit of code added there that I can specify which products the cc module should *not* show up for. I can directly modify the cc.php file to add these product IDs so no admin interface needs programmed.
Please message with any questions. Thanks! - Tags:
| Project Bids |
| Programmer | Bid |
Delivery Time | Time of Bid | Rating | |
| damiannki | $45 | 3 hours | 1/1/2009 at 8:47 EST | (31 reviews) |
|
| I can start right now | |||||
| vnphpexpert | $45 | 1 day | 1/1/2009 at 8:35 EST | (98 reviews) |
|
| Ready to do, thanks | |||||
| coderxo |
$50 | Immediately | 1/5/2009 at 3:12 EST | (370 reviews) |
|
| pls chk pmb | |||||
| thamaraileel1 | $50 | 4 days | 1/2/2009 at 6:22 EST | (50 reviews) |
|
| Please Check PMB | |||||
| infysecdotcom |
$53 | 4 hours | 1/1/2009 at 5:27 EST | (224 reviews) |
|
| Ready to get this done for you | |||||
| meld1 | $70 | 1 day | 1/5/2009 at 0:54 EST | (5 reviews) |
|
| Hi, I have studied the Project description and have addressed your requirements in PMB. Please review PMB for more details. Thanks, Mario | |||||
| allupaku | $75 | 1 day | 1/1/2009 at 6:37 EST | (36 reviews) |
|
| Thanks | |||||
| sonline | $75 | 4 days | 1/9/2009 at 6:10 EST | (3 reviews) |
|
| Hello, we have an Expert team of 70 Webdesigners and developers, who will do very impressive designing for you .They will start working on your Project Modification: Zen Cart cc.php ASAP.There will be constant communication online and on phone. Please visit PMB for the work examples...Looking forward to hear from you and discuss further on the project, Thanks, Shivani | |||||
| gampeshsahu | $100 | Immediately | 1/7/2009 at 12:15 EST | (10 reviews) |
|
| Hello friend, i have the script ready for you. to see the demo, please look at PMB. site link, admin link, username and password are provided there. payment through escrow. | |||||






