Forums / Templates, Stylesheets, Page Layout / Remove Shipping Title from Check Out "Your Total" module?

Remove Shipping Title from Check Out "Your Total" module?

Locked

Views: 2,123

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
23 Jan 2009, 5:18 PM
#1
glw35 avatar

glw35

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

Remove Shipping Title from Check Out "Your Total" module?

In one of the shipping modules, I took the title (MODULE_SHIPPING_FREEOPTIONS_TEXT_TITLE,) made it rather lengthy and changed it to a link to a popup window (a nightmare in itself.)

When I'm on Step 1 of the checkout - Delivery Information, this particular module now has a link for the title - exactly how I want it.

However, when moving to Step 2 - Payment, in the "Your Total" section, both the Title and description show up as a line item in that module. This is long and doesn't look good to the customer.

I would like to remove the title (MODULE_SHIPPING_FREEOPTIONS_TEXT_TITLE) but keep the description (MODULE_SHIPPING_FREEOPTIONS_TEXT_DESCRIPTION) in the "Your Total" line item section.

I have gone through the Dev tool kit and have tried to backtrack to find how this is displayed in this module, but I have found it impossible so far.

It appears that somewhere, these two items are being combined into one variable that is then displayed in that section. I just can't find where that is happening.

Anyone have any ideas how to remove the title of the shipping option from the line item in "Your total" of the "Payment Information" page while keeping it in the Delivery Information Page?

In addition, I don't want the title showing up in the order history, invoices, etc... Though I believe that correcting this issue will automatically correct those as well.

I just can't find where those two are being combined into one to display together in other modules.

23 Jan 2009, 10:12 PM
#2
glw35 avatar

glw35

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

Re: Remove Shipping Title from Check Out "Your Total" module?

I am convinced that I cannot do this without major surgery, if at all. This is defined in one place and is used for both its own module and all of the others. I even tried adding a second title just for this, but it ends up showing up everywhere.

Below is where these two get defined. It's in the /modules/shipping/freeoptions.php file.

      if ($this->enabled) {
        $this->quotes = array('id' => $this->code,
                              'module' => MODULE_SHIPPING_FREEOPTIONS_TEXT_TITLE,
                              'methods' => array(array('id' => $this->code,
                                                       'title' => MODULE_SHIPPING_FREEOPTIONS_TEXT_WAY,
                                                       'cost'  => MODULE_SHIPPING_FREEOPTIONS_COST + MODULE_SHIPPING_FREEOPTIONS_HANDLING)));

If I change the "TEXT_TITLE" to something else in the above code, that change is displayed everywhere - Delivery Options, Payment Information, Invoice, Order History, etc...

Does anyone know how to break this up or to not define this until the title has already displayed on the Shipping Options page?

27 Dec 2010, 8:52 AM
#3
teppiz avatar

teppiz

New Zenner

Join Date:
Dec 2010
Posts:
6
Plugin Contributions:
0

Re: Remove Shipping Title from Check Out "Your Total" module?

Hi, I have similar situation.

I would like to remove the title (MODULE_SHIPPING_FREEOPTIONS_TEXT_TITLE) but keep the description (MODULE_SHIPPING_FREEOPTIONS_TEXT_DESCRIPTION) in the "Your Total" line item section.

Can anyone help me please :cry:

27 Dec 2010, 9:11 AM
#4
teppiz avatar

teppiz

New Zenner

Join Date:
Dec 2010
Posts:
6
Plugin Contributions:
0

Re: Remove Shipping Title from Check Out "Your Total" module?

I found help in this thread

http://www.zen-cart.com/forum/showthread.php?t=120163

by changing the file includes/modules/pages/checkout_shipping/header_php.php