Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Shipping Estimator not selectable when logged

Shipping Estimator not selectable when logged

Views: 758

Results 1 to 2 of 2
30 Mar 2014, 3:32 PM
#1
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Shipping Estimator not selectable when logged

I've seen similar posts addressing the point that when logged in the 'estimate shipping costs' on the shopping cart page does not allow for selection of another address. I have tried this on a live site and a new v1.51 install so I think it is default Zen Cart behaviour, but need to confirm if there is a way to 'activate' it. So,

Add product to cart without logging in gives, on the shopping cart page, 'Estimate Shipping Costs' with Country dropdown, State dropdown and Post code field and Available Shipping Methods.

Create account, add product to cart and on the shopping cart page the 'Estimate Shipping Costs' shows the Ship to address as the create account address and the Available delivery methods - no option to select an alternative.

Ideally, what I think I would like to see when logged in is for the 'Estimate delivery costs, on the shopping cart page, to allow for an address other than the one entered at create account time. Is there any way of achieving this?

3 Apr 2014, 2:42 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping Estimator not selectable when logged

You could try this ...

Using your templates and overrides, add the code in **RED **to the file:
/includes/templates/your_templates_dir/templates/tpl_modules_shipping_estimator.php

<?php
  if($_SESSION['cart']->count_contents()) {
[B]//[/B]    if ($_SESSION['customer_id']) {
[B]    if ((false)) {
[/B]
?>
<h2><?php echo CART_SHIPPING_OPTIONS; ?></h2>
<table width="100%" border="1" cellpadding="2" cellspacing ="2">
<?php [B]//[/B] if ($_SESSION['customer_id'] < 1 ){ ?>
[B]<?php if (true){ ?>
[/B]    <tr>

and to the file:
/includes/modules/your_templates_dir/shipping_estimator.php

[B]//[/B]  if ($_SESSION['customer_id']) {
[B]  if ((false)) {
[/B]    // user is logged in

See if that does it for you ...