After some digging, I came up with this:
In module/shipping/storepickup.php,
i added at line 92 the following:
Code:
// other status checks?
if ($this->enabled) {
// enable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','166') > 0)) {
$this->enabled = true;
} else {
$this->enabled = false;
}
// other checks here
Not sure if that s correct way to do it though?
So far it turns on "store pickup" for product with master category 166 and off for all other master categories.
However, it getting complicated for mixed cart. How do i deal with these?
Thank you
Bookmarks