ordering store item add

Adding new feature in store owner page.
*ordering item
This commit is contained in:
franknstayn
2019-11-06 20:23:57 +08:00
parent 1dd7578508
commit 460cf315a0
7 changed files with 192 additions and 18 deletions

View File

@@ -108,12 +108,9 @@ class PaypalController extends Controller {
$order_items = array();
$updated_items = $m->myCart($cartKey);
$updated_getSubtotal = $m->getSubtotal($cartKey);
var_dump($updated_items);
// $order_subtotal = $updated_getSubtotal[0]->Subtotal;
$order_grandtotal = $updated_getSubtotal[0]->Subtotal;
var_dump($order_grandtotal);
// $tax_value = 0.10;
if($grouped_item[0]->StoreId == 76 || $grouped_item[0]->StoreId == 78){
$tax_value = 0;
@@ -122,8 +119,6 @@ class PaypalController extends Controller {
}
$tax = $order_grandtotal * $tax_value;
var_dump($tax);
foreach($updated_items as $key => $item){
@@ -141,13 +136,9 @@ class PaypalController extends Controller {
$item_list = PayPal::ItemList();
$item_list->setItems($order_items);
var_dump($order_grandtotal);
$amount_details = PayPal::Details();
$amount_details->setSubtotal($order_grandtotal);
$amount_details->setTax($tax);
var_dump($item_list->items);
$amount = PayPal::Amount();
$amount->setCurrency($store_array[0]->StoreCurrency);