Forums / Built-in Shipping and Payment Modules / checkout_shipping showing a blank page...

checkout_shipping showing a blank page...

Locked

Started by smarmyclothes on 4 Apr 2009, 4:57 AM · Views: 1,329

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
4 Apr 2009, 4:57 AM
#1
smarmyclothes avatar

smarmyclothes

New Zenner

Join Date:
Feb 2009
Posts:
36
Plugin Contributions:
0

checkout_shipping showing a blank page...

I've figured out what the problem is, but not the solution.

I have edited the includes/languages/english/modules/shipping/flat.php file from this:

define('MODULE_SHIPPING_FLAT_TEXT_TITLE', 'Flat Rate');

define('MODULE_SHIPPING_FLAT_TEXT_DESCRIPTION', 'Flat Rate');

define('MODULE_SHIPPING_FLAT_TEXT_WAY', 'Best Way');

To this:

define('MODULE_SHIPPING_FLAT_TEXT_TITLE', 'United States Postal Service');

define('MODULE_SHIPPING_FLAT_TEXT_DESCRIPTION', 'Flat Rate');

define('MODULE_SHIPPING_FLAT_TEXT_WAY', 'Flat Rate Priority Mail (2 - 3 days)');

And uploaded the edited flat.php to my overrides folder here: includes/languages/english/modules/shipping/smarmy/flat.php

This shows up all fine and dandy on the shipping estimator and on the shopping cart page, but when I try to proceed to checkout_shipping, I get a blank page.

If I get rid of the flat.php override, checkout works fine.

I found this thread, so I tried making an override in the modules to match the override in the languages like so:

/includes/modules/shipping/smarmy/flat.php

I didn't make any edits to that file, because I wasn't sure if I needed to. I'm still having the same problem of the blank checkout_shipping page.

Is there something I need to change in the
/includes/modules/shipping/smarmy/flat.php override to get it to match up with the language override?

Any help would be much appreciated!

4 Apr 2009, 5:22 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: checkout_shipping showing a blank page...

Sm
Take the brackets off and see what happens..

(2 - 3 days)

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

4 Apr 2009, 5:48 AM
#3
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: checkout_shipping showing a blank page...

Sm,
The brackets (2 - 3 days) between the quotes are ok, I tested this procedure on a demo site and she works..

Does your flat.php file look like this??

<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |   
// | http://www.zen-cart.com/index.php                                    |   
// |                                                                      |   
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id: flat.php 1969 2005-09-13 06:57:21Z drbyte $
//

define('MODULE_SHIPPING_FLAT_TEXT_TITLE', 'United States Postal Service');
define('MODULE_SHIPPING_FLAT_TEXT_DESCRIPTION', 'Flat Rate');
define('MODULE_SHIPPING_FLAT_TEXT_WAY', 'Flat Rate Priority Mail (2 - 3 days)');
?>
```I am thinking you deleted the ?> at the end

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

4 Apr 2009, 6:02 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: checkout_shipping showing a blank page...

haredo:

I am thinking you deleted the ?> at the endIt's often a good idea to delete the ?> at the end of the file if there's nothing else coming after it ... that way blank lines don't accidentally cause unexpected problems.

Related FAQ articles:
Regarding ?> https://www.zen-cart.com/tutorials/index.php?article=313
Regarding blank lines: https://www.zen-cart.com/tutorials/index.php?article=87

Troubleshooting blank pages: https://www.zen-cart.com/tutorials/index.php?article=82

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Apr 2009, 2:15 PM
#5
smarmyclothes avatar

smarmyclothes

New Zenner

Join Date:
Feb 2009
Posts:
36
Plugin Contributions:
0

Re: checkout_shipping showing a blank page...

Woo Hoo!

I did indeed have the ?> at the end of the file, so I deleted that and the blank lines after it, and it seems to be working now!

Thanks so much for the help. I never would have been able to set up my new store if this forum (and all of the knowledgeable, helpful people in it) didn't exist.

Thanks again!

4 Apr 2009, 2:18 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: checkout_shipping showing a blank page...

Sm,
You are most welcome, DrByte threads gave us the knowledge to find the problem learn and understand the structure of Zen Cart and how she works.

Glad up are up and running...

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.