is it possible to limit payment methods (only credit card) on one category or a group of ten products?
now you can pay the items with credit card, cash or paypal.
How?
is it possible to limit payment methods (only credit card) on one category or a group of ten products?
now you can pay the items with credit card, cash or paypal.
How?
You can do this by controlling the $this->enabled in any of the modules ...
When set to false, the module will not show ... when set to true, the module will show ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
for example if i want paypal disabled for master category 103 , what have I do?
In PayPal IPN, paypal.php, you can change this function:
to read:Code:function update_status() { global $order, $db; if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_ZONE > 0) ) { $check_flag = false; $check_query = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_PAYPAL_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id"); while (!$check_query->EOF) { if ($check_query->fields['zone_id'] < 1) { $check_flag = true; break; } elseif ($check_query->fields['zone_id'] == $order->billing['zone_id']) { $check_flag = true; break; } $check_query->MoveNext(); } if ($check_flag == false) { $this->enabled = false; } } }
Code:function update_status() { global $order, $db; if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_ZONE > 0) ) { $check_flag = false; $check_query = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_PAYPAL_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id"); while (!$check_query->EOF) { if ($check_query->fields['zone_id'] < 1) { $check_flag = true; break; } elseif ($check_query->fields['zone_id'] == $order->billing['zone_id']) { $check_flag = true; break; } $check_query->MoveNext(); } if ($check_flag == false) { $this->enabled = false; } } global $cart; if ($_SESSION['cart']->in_cart_check('master_categories_id','103') > 0) { $this->enabled = false; } }
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
thank you very much! it works but '103' is a sub category! Now I would like that it works with category '100' that includes sub-categories 103 104 105. If I change '103' into '100' doesn't operate.
thank you for helping me!
You would need to include each specific master_categories_id for this method to work ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Hi,
I want to have 2 categori of product.
When customer order product in 1 categori hi get page for pay.
Byt when order product from 1 end 2 categori I want to forbit to get page for paying.
Becouse some product can't send to customer tugeder with anader product.
www.kavanali.com
I want to have 2 categori of product.
When customer order product in 1 categori hi get page for pay.
Byt when order product from 1 end 2 categori I want to forbit to get page for paying.
Becouse some product can't send to customer tugeder with anader product.
www.kavanali.com
You could change the code to read:
Where the categories_id for 103 and 105 are the master_categories_id for these products that cannot sell together ...Code:function update_status() { global $order, $db; if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_ZONE > 0) ) { $check_flag = false; $check_query = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_PAYPAL_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id"); while (!$check_query->EOF) { if ($check_query->fields['zone_id'] < 1) { $check_flag = true; break; } elseif ($check_query->fields['zone_id'] == $order->billing['zone_id']) { $check_flag = true; break; } $check_query->MoveNext(); } if ($check_flag == false) { $this->enabled = false; } } global $cart; if ($_SESSION['cart']->in_cart_check('master_categories_id','103') > 0 && $_SESSION['cart']->in_cart_check('master_categories_id','105') { $this->enabled = false; } }
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
What is the basic problem? Can the products just not be shipped together? Or is there another reason they can't be ordered together? If they are going to be shipped to the same location by different carriers or from different sources, you can set payment/shipping methods to account for the cost of two shipments.
We need more details to be able to give the best advice.