In simplest terms I am setting up a shop where some products [A] are small (shipping easy to calculate) AND other products [B] are large/heavy (where automated shipping calculation is impossible - believe me). So what I need is when a customer adds ANY [B] product in their cart, the automatic shipping module (in my case Auspost) DOES NOT show and an option to "Contact for Price" is displayed. The way I have done the "contact for price" function is to use the maximum weight flag in the FREEOPTIONS module to 1000 and then set each [B] product to 1000 (modified the text of course). My dilemma is that this works perfectly for mixed orders [A + B] UNTIL you start modifying and deleting/adding products from the cart - even though the "new" total weight is now below or above the threshold (and is calculating and displaying properly) the shipping module filtering is no longer correct. I tried adding some if statements to the php code (I'm knowledgeable enough to do this) ie in freeoptions module
if (MODULE_SHIPPING_AUSTPOST_STATUS == 'True') { $this->enabled = false; }
and vice-versa, but I can't get a consistent shipping display under these "modified" shopping cart examples. It is almost like these module true/falsevariables are being cached/set at the first checkout display therefore corrupting subsequent returns to the code.........so does anyone:
1. have a different working solution for this shipping problem?
2. have any thoughts as to where I should start digging?
Ta.
Bookmarks