Sorry Linda, we lost our internet connection yesterday and the signal is pretty low today. I will give this a try and repost as soon as I can.
Thanks, talk to you soon!
Lisa
Printable View
Sorry Linda, we lost our internet connection yesterday and the signal is pretty low today. I will give this a try and repost as soon as I can.
Thanks, talk to you soon!
Lisa
Hi Linda
I pm'd you this morning
Lisa
The code goes above:
and then the cost in that code needs to have the new value $chk_gowns_shipping to the cost in that code ...Code:$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_WAY,
'cost' => MODULE_SHIPPING_PERWEIGHTUNIT_COST * ($total_weight_units * $shipping_num_boxes) +
(MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING) ) ));
Mine seems a bit different. Is that because I haven't upgraded to 1.3.9 yet? This is what I have....
$total_weight_units = $shipping_weight;
if (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units < 15.00) {
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_WAY,
'cost' => (15.00)
+ MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING)));
} else {
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_WAY,
'cost' => (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units)
+ MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING)));
}
Should I still put the code above this even though it is slightly different?
Your Per Unit perweightunit looks like it was customized before to behave one way for when:
MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units < 15.00
and another way when:
MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units >= 15.00
Are you also trying to do something else with the Per Unit perweightunit for your other Products based on 15.00?
Hi Linda
The only thing that I can think of that that might be is that I set up the shipping to be a minimum of $15.00 when the total weight of all the products in the cart result in a low shipping rate that won't cover the actual shipping. Customers can purchase things such as stickers for their wedding reception and if they choose a quantity of say 20 stickers the shipping may only come to $.40 which still doesn't cover even a postage stamp. Things like small hair accessories etc end up weighing too little so I made a minimum shipping fee.
Lisa
This is really going to need more customization as you have 2 situations where if the weight is < 15 you want to charge $15.00 but there is no weight on the gowns so that will be true on gown orders but you don't want to add another $15.00 to the cost of the shipping for them ...
Change the IF to be:
Add the code above that line to calculate the charges for the gowns ... then add the:Code:if ( (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units < 15.00) && $total_weight_units != 0) {
$chk_gowns_shipping
to the cost line in the second part of the IF changing the part:
to read:Code:'cost' => (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units)
NOTE: don't remove any code just add the new code ...Code:'cost' => $chk_gowns_shipping + (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units)
Well thank you very much Linda I put everything in the right place and it works great! I really appreciate the time you took on this!
Obviously I can't help you in the same way but let me know if you ever need anything from our site and my mum and I will certainly make sure that you get what you need.
Cheers
Lisa (o:
Glad to hear that things are now working properly for you ... remember us when you are rich and famous ... :cool:
Hi Linda, I just realized that there is something wrong with the way the shipping is working....
For some reason if there is a gown in the cart (shipping $48.75) and then another product that isn't a gown is added, the shipping only comes to the second product's shipping rate and the $48.75 is voided from the total.
Lisa