cool, so no other purpose other than styling?
Also I got my edit to work by editing the includes/classes/order.php
Code:
function cart() {
...
$this->products[$index] = array('...
'price' => (isset($_SESSION['new_price'][$products[$i]['id']]) ? $_SESSION['new_price'][$products[$i]['id']] : $products[$i]['price']),
and
'final_price' => zen_round((isset($_SESSION['new_price'][$products[$i]['id']]) ? $_SESSION['new_price'][$products[$i]['id']] : $products[$i]['price'] + $_SESSION['cart']->attributes_price($products[$i]['id'])), 4), // changed to 4 decimals for rounding calcs -- frank18
}
and I put the data there in includes/classes/shopping_cart.php
Code:
function actionUpdateProduct($goto, $parameters) {...
...
if ( in_array($_POST['products_id'][$i], ... else {
...
$_SESSION['new_price'][$_POST['products_id'][$i]] = $_POST['cart_price'][$i];
}
within the last else
is it bad to have the double square bracket for $_SESSION['new_price']
[$_POST['products_id'][$i]
] ?
Also is there a way to tell which php pages have been used to load a page? and/or the order of the object's methods? I think that was the most confusing part of figuring this out. The superglobals add-on for me really revealed how much goes into even just one page loading.
Bookmarks