Hello AJeh,
I am not sure when or why, but someone ordered 10 items in our store today, and each item was charged 200 yen!
In the last couple of weeks I upgraded to 1.3.5 so perhaps something needs to be adjusted or perhaps I never noticed it before... I re-read your instructions carefully just now and realized you said... ‘use this IF in place of the normal method ..’
I didn’t actually replace, I added the code to what was already there...
Here is the section of code as it currently is written. Is this correct or must I eliminate some of it? Or is there something else I must do?
Thanks in advance...
// adjusted count for free shipping
// $total_count = $total_count - $_SESSION['cart']->in_cart_check('product_is_free','1');
// $total_count = $total_count - $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
$total_count = $total_count - $_SESSION['cart']->free_shipping_items();
// if total item count >= 3 charge 600 otherwise, charge regular item charge
if ($total_count >= 3) {
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
'cost' => 600)));
} else {
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
'cost' => (MODULE_SHIPPING_ITEM_COST * $total_count) + MODULE_SHIPPING_ITEM_HANDLING)));
if ($this->tax_class > 0) {
$this->quotes['tax'] = zen_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
}






Bookmarks