If this is your first visit, check our documentation. To post, register or login.

Hiding Shipping Rate

Locked

Started by ebaobao on 5 Aug 2008, 1:16 AM · Views: 1,806

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
5 Aug 2008, 1:16 AM
#1
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Hiding Shipping Rate

Hello,
Does anyone know how to hide the shipping rate? Instead of it saying $0.00 I want to hide it or say TBD (To be determine). I don't mind using any shipping module. I'm thinking the best one to use is the table flat rate module, but I'm not sure how to hide the rate. I've read on several posts where other people were asking about this, but they never got an answer. Does anyone know? Thanks.

5 Aug 2008, 4:44 PM
#2
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Hiding Shipping Rate

Anyone have any idea or workaround? I want to implement shipping methods where the $0.00 rate is replaced with (TBD) To Be Determine or Just completely blank. This blank charge should go throughout the entire checkout process. The tried the static list shipping module, but still cannot get the rate of $0.00 to disappear.

5 Aug 2008, 4:49 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Hiding Shipping Rate

Let's say I was using the Item Rate item shipping module ...

You would see the code:

      $this->quotes = array('id' => $this->code,
                            'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                            'methods' => array(array('id' => $this->code,
                                                     'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                     'cost' => (MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING)));

That builds the output for this ...

You can alter that based on certain conditions to display something else ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Aug 2008, 5:02 PM
#4
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Hiding Shipping Rate

Hi Ajeh,
Thanks for the reply. I'm very new to PHP right now so I don't want to dig too deep into changing codes. Where can I find this file in case I would like to dig in? I'm going to keep it simple and leave the $0.00 in the rate but have additional text to tell the customer that the shipping is not free. Thanks for your help.

5 Aug 2008, 5:07 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Hiding Shipping Rate

I am not sure what shipping module(s) you are really using as you reference the table flat rate ... and we have a Table Rate table and a Flat Rate flat ...

All shipping modules are located in:
/includes/modules/shipping

all associated language files are located in:
/includes/languages/english/modules/shipping

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Aug 2008, 4:01 PM
#6
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Hiding Shipping Rate

Hi Ajeh,
I'm open to any shipping module that will provide this resolution. Currently I'm using table rate to support people who want Ground shipping. The cost of shipping will be based on the order's subtotal.

I want to also offer Express shipping for Next Day, 2nd Day, and 3 Day, but I don't want the $0.00 to show up. Because even though I put a message in there stating TBD (To Be Determine), customers just don't pay attention and they still look at the price.

I was thinking of using the static shipping list module addon, but that still shows the $0.00.

So what module do you think I should use and how can I modify it so that it hides the rate for the express shipping methods.

Thanks!

13 Aug 2008, 10:16 PM
#7
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Hiding Shipping Rate

Anybody have any ideas or suggestions to implement this?

14 Aug 2008, 5:00 AM
#8
joseph_m avatar

joseph_m

Zen Follower

Join Date:
Apr 2008
Posts:
150
Plugin Contributions:
0

Re: Hiding Shipping Rate

Similar problems here.
Currently we are using the zone shipping option only, since none of our items have a weight associated with them yet.

I used the stylesheet to take the shipping value off of the site pages. That takes care of the $0.00 shipping value being displayed between the subtotal and total.
But the $0.00 is still quoted in the emailed order confirmation to the customer.

This mod looks close to what we may need.
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=480
But it still displays a $0.00 default shipping price.

14 Aug 2008, 4:52 PM
#9
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Hiding Shipping Rate

Joseph,
Where did you make the change in the stylesheet? Thanks.

14 Aug 2008, 11:03 PM
#10
joseph_m avatar

joseph_m

Zen Follower

Join Date:
Apr 2008
Posts:
150
Plugin Contributions:
0

Re: Hiding Shipping Rate

This may help you until a better solution comes about.

#otshipping {
display: none;
}

15 Aug 2008, 12:41 AM
#11
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Hiding Shipping Rate

thanks joseph,
unfortunately the $0.00 rate still shows in shipping estimator and where the customer selects their shipping method. It works on the payment page and confirm order page though :smile:

1 Jan 2009, 12:08 AM
#12
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Hiding Shipping Rate

Ajeh:

Let's say I was using the Item Rate item shipping module ...

You would see the code:

  $this->quotes = array('id' => $this->code,
                        'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                        'methods' => array(array('id' => $this->code,
                                                 'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                 'cost' => (MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING)));
> 
> That builds the output for this ...
> 
> You can alter that based on certain conditions to display something else ...

Linda I found the part that I'm going to change, but I'm not sure how to change it. Here is the part for the table I'm using:

$this->quotes['methods'][0] = array( 'id' => $method,
'title' => zen_get_configuration_key_value('MODULE_SHIPPING_STATICLIST_OPT_' . $method),
'cost' => zen_get_configuration_key_value('MODULE_SHIPPING_STATICLIST_COST_' . $method) + $fee );


can I just replace:
'cost'  => zen_get_configuration_key_value('MODULE_SHIPPING_STATICLIST_COST_' . $method) + $fee );

with :
'cost' => 'TBD');

I'm not sure if cost is a string or an integer type and I'm not sure how to do assigning with PHP code. Is this doable?
1 Jan 2009, 3:01 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Hiding Shipping Rate

You'd really need to try that ... I think that is going to be grabbed and converted but I am not positive as I don't have this module to fool with ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!