Add support for multi-pack items.

This commit is contained in:
jekkos
2018-06-12 14:06:39 +02:00
committed by Steve Ireland
parent 1026ebb0eb
commit a4e135eb92
29 changed files with 431 additions and 149 deletions

View File

@@ -827,7 +827,14 @@ class Sale_lib
$total = $this->get_item_total($quantity, $price, $discount);
$discounted_total = $this->get_item_total($quantity, $price, $discount, TRUE);
//Item already exists and is not serialized, add to quantity
if($this->CI->config->item('multi_pack_enabled') == '1')
{
$item_info->name .= NAME_SEPARATOR . $item_info->pack_name;
}
//Item already exists and is not serialized, add to quantity
if(!$itemalreadyinsale || $item_info->is_serialized)
{
$item = array($insertkey => array(