Not sure where to stick this post. I need some easy code help. I have hacked the order_total module ot_loworderfee. The change works how I want, but it makes the admin side of all order_total modules page unuseable.
The change that is causing a problem is at the top of the file. I replaced
Code:
$this->title = MODULE_ORDER_TOTAL_LOWORDERFEE_TITLE
with the following
Code:
if ( ($_SESSION['cart']->in_cart_check('products_model','variableA') > 0) ) {
$this->title = MODULE_ORDER_TOTAL_LOWORDERFEE_TITLE2;
}
if ( ($_SESSION['cart']->in_cart_check('products_model','variableB') > 0) ) {
$this->title = MODULE_ORDER_TOTAL_LOWORDERFEE_TITLE2;
}
if ( ($_SESSION['cart']->in_cart_check('products_model','variableC') > 0) ) {
$this->title = MODULE_ORDER_TOTAL_LOWORDERFEE_TITLE;
}
The change makes it so that the Module Title text on the checkout page changes based on whether certain product models are in the cart.
Anything in the changed code that could be causing the blooper on the Admin side?
-lindasdd
Bookmarks