If Shipping Module A is the one that I want activated only under certain circumstances how can I de-activate it under normal circumstances?
I've been able to make the necessary changes so as to restrict all shipping modules except the one I would like - This is a good thing. There are two items I can't seem to get a handle on:
1) If Shipping Module A is the one that I want activated only under certain circumstances how can I de-activate it under normal circumstances so that it does not show at all?
2) Somehow the weights are not adhering to set maximum order weights/prices. Example, in grams: 350:7.00,1000:9.50,2000:13.00,3500:18.00,5000:25.00,8000:36.00
This is being followed by one product that is forcing a certain shipping module. However, if I add something to the cart from another category that is also set to force the same shipping module, the numbers are not being followed and I can't seem to ascertain what is throwing them off. It almost seems as if the quantity of the items is coming into play somehowalthough not in any discernable pattern.
Any thoughts? Thanks!!
FYI - To force a certain shipping module for multiple items I have don't the following which may or may not be correct and may or may not be creating my current issues:
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','155') > 0)) {
$this->enabled = false;
}
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','167') > 0)) {
$this->enabled = false;
}
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','168') > 0)) {
$this->enabled = false;
}
Last edited by MeltDown; 30 Jun 2008 at 02:08 PM.
I believe the problem is that only 2 of your disable master categories are working.
I was testing this out myself and unfortunately, i was not able to use more than 2 of these codes. 1 being $this->enabled = true and the other false.
if i used 2 that were false, it only seemed to work with the last category that had the false rather than both.
At the moment, my work around was using products_model rather than master categories. this way any products that is added into the cart regardless of their category, it will force the correct shipping module. You can specify any model code you'd like for the product, the downside is that most products will have duplicate model types but if you add the correct models in the description than you should be good to go. personally i dont mind double models as long as it brings up the correct shipping since i was not able to use more than 2 of the disable master categoryies code no matter how i put them together.
Actually multiple disable master categories seems to be working well for me. I've since added another, totaling 5, and have had no problems.
I've also been able to sort out my maximum order weights/prices issue, which wasn't an issue after all but me mis-reading my own settings.
I still have not been able to ascertain how I can de-activate the forced shipping module under normal circumstances so that it does not show at all.
Hmm.. interesting it does not work for me lol.
I guess i will have to really start troubleshooting better lol. I will give it another try and hope i am lucky on it.
Maybe we can help each other out.. send me an email cs@cellmonsters.com
I am trying to do as the user at the begining of this thread-
category 65, 66
65 I need PICK UP ONLY
66 I need FLAT RATE ONLY
I tried using the code provided and I just cant seem to get it to work- I do know to edit the
Storepickup.php & flat.php but am needing help on the exact code-
Thanks for any help!![]()
OMG! Thank you, cellmonsters. This is exactly what I've been trying to do for a week. It seemed like such a simple desire, but I've never felt so inept in my life. great tweak!
Now I'm going to get greedy. I want to charge a flat rate for certain product_models and a different flat rate for certain other product_models and still per item shipping on yet another product_model in the same cart.
for example, if there are > 4 of product_model '1' (that's one flat rate), 1 of product_model '2' (that has its own flat rate), and product_model '3' (that is always per item), I want to be able to charge flate rate for product_model '1' + flate rate product_model '2' + per item charge for product_model '3'.
what I've been able to do with your code is enforce ONLY per item as long as there is a product_model '3', but that means people are liable to drop product_model '3' from their order altogether. And there's a similar issue between product_models '1' and '2' but in that case, it's trying to get a different (more complex) flat rate total.![]()
forgot to mention that I tried what I thought was a simple procedure of cloning the 'flat rate' module but renaming it and replacing 'FLAT' in all areas with 'FLATTER' (just like the wiki had me do with 'STOREPICKUP') so I would in effect have two independent flat rate modules that I could configure with different product_model restrictions. I was able to follow the module creation guide successfully from the z-c wiki instructions based on the storepickup module, but for some reason, I couldn't repeat that success with the flat rate module.
Bookmarks