Hey there everyone! It's CHerbalist in need of more help. I'm running ZC 1.5.1. I've got backup zen cart v1.1, ceon manual card 4.0.1, ckeditor, css js loader, fast n easy checkout, email for 404 v1.2.2, fual slim box v2.1.0a, UPS v15, and the latest install of USPS. As for a template I'm using pure green free as a template. Found here.
The problem is that when you click on the my account tab, which leads to the log in page. The paypal box appears whether or not you have something in your cart. When there is nothing in your cart, then you get the EC box but not the EC button. With an item in your cart the EC box and EC button shows. I want to make the box only appear when you have an item in your check out. Make it nicer and cut back on confusion.
I checked my headers_php.php in includes/modules/pages/login and found this but have no idea how to manipulate it to do what I want.
Here's an image of the page with an empty cart.PHP Code:// Check for PayPal express checkout button suitability:
$paypalec_enabled = (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True');
// Check for express checkout button suitability:
$ec_button_enabled = ($paypalec_enabled && ($_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0));
// check if shipping address should be displayed
if (FEC_SHIPPING_ADDRESS == 'true') $shippingAddressCheck = true;
// check if the copybilling checkbox should be checked
Here's one of it with a cart that has a product.
The page in question is http://cherylsherbs.c o m/ shop /index.php?main_page=login
Please help guys! Thanks!




Reply With Quote

