0; $referrer = yak_get_referrer(); // hide quantity input if required if (yak_get_option(HIDE_QUANTITY, 'off') == 'on') { $quantity_input_type = 'hidden'; } else { $quantity_input_type = 'text'; } ?>
price, $totals->quantity); } foreach ($_SESSION[ITEMS_NAME] as $key => $item) { $item->price = yak_calc_price($item->id, $item->cat_id, $item->price); $item->discount = yak_calc_price_discount($item->id, $item->quantity, $item->price, $totals->quantity, $totals->price, $promo); $total_discount += ($item->discount * $item->quantity); $total_price += $item->get_discount_total(); $total_quantity += $item->quantity; $qtyid = 'item_' . $item->id . '_' . $item->cat_id; if (isset($item->selected_options)) { $qtyid .= '_' . rawurlencode(str_replace(' ', '_', implode('_', $item->selected_options))); } ?> selected_options)) { ?> meta) > 0) { ?> 0) { ?>
name ?> price); ?> get_total()) ?>
selected_options as $mitem) { echo "  " . __($mitem, 'yak') . "
"; } ?>
meta as $key=>$val) { if (!empty($val)) { echo "  " . __($key, 'yak') . ":" . __($val, 'yak') . "
"; } } ?>
description, 'yak')) ?> -
 
" onkeydown="if (event.keyCode == 13) {return false;}" />
1) { _e('How would you like to pay?', 'yak'); } ?> 1) { $sel = ''; if (isset($_COOKIE['selected_payment_type'])) { $i = 0; foreach ($payment_types as $key=>$val) { if ($i == $_COOKIE['selected_payment_type']) { $sel = $key; } $i++; } } echo yak_html_select(array('name'=>PAYMENT_TYPE, 'selected'=>$sel, 'values'=>array_keys($payment_types), 'nokey'=>true)); } else { foreach ($payment_types as $key=>$value) { ?>