X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Checkout middle of page blank (https://forum.x-cart.com/showthread.php?t=9963)

macker123 10-22-2004 10:44 AM

Checkout middle of page blank
 
I have been doing some editing of my templates but I have yet to touch any of the checkout templates. Well in any case people can add to thier shopping basket fine, but once they click the checkout button it displays everything but a blank middle so I assume the checkout template is not being called.

I went in and tried to restore checkout.tpl, cart.tpl and a few other related templates but it hasn't made a difference.

What file is responsible for this?

Jon 10-22-2004 10:55 AM

Maybe a problem in your cart.php and/or home_main.tpl

macker123 10-22-2004 10:59 AM

I haven't edited my cart.php file. So home_main is used by the checkout process as I have modified it heavily.

macker123 10-22-2004 11:01 AM

Quote:

Originally Posted by macker123
I haven't edited my cart.php file. So home_main is used by the checkout process as I have modified it heavily.


I just restored the home_main file. It made no difference. Any other ideas?

Jon 10-22-2004 01:06 PM

What x-cart version?

It's possible that the main variable is incorrect.

Open your home_main.tpl and find where the cart is called. Put text after the if statement, before the include, and see if that part is being read correctly. If the page shows the text you put there, then you know that the problem is in the actual template file being called, and nothing prior to that.

macker123 10-22-2004 01:18 PM

Using version 4

I put text in the following and neither show up:

{elseif $main eq "anonymous_checkout"}
checkout anony?
{include file="customer/main/anonymous_checkout.tpl"}

{elseif $main eq "checkout"}
checkout logged in?
{include file="customer/main/checkout.tpl"}

Jon 10-22-2004 01:26 PM

Is it when you go to cart.php or cart.php?mode=checkout

The two files there only occur when mode=checkout, otherwise your opening up the cart itself.

macker123 10-22-2004 01:28 PM

Quote:

Originally Posted by Jon
Is it when you go to cart.php or cart.php?mode=checkout

The two files there only occur when mode=checkout, otherwise your opening up the cart itself.


When I goto:
cart.php?mode=checkout

I get the blank page.

Jon 10-22-2004 01:33 PM

Ok, in the very, very top of your home_main.tpl put:

MAIN: {$main}

If it doesn't return anything, the problem is that your cart.php is not assigning the main variable.

macker123 10-22-2004 02:12 PM

I just found out I get the same issue when I try:
search.php?mode=search

macker123 10-22-2004 02:14 PM

Quote:

Originally Posted by Jon
Ok, in the very, very top of your home_main.tpl put:

MAIN: {$main}

If it doesn't return anything, the problem is that your cart.php is not assigning the main variable.


I inserted it at very top and I get same issue exactly. Here is my code at tp to show I did it:


MAIN: {$main}
{if $smarty.get.mode eq "subscribed"}
{include file="main/subscribe_confirmation.tpl"}

{elseif $smarty.get.mode eq "unsubscribed"}
{include file="main/unsubscribe_confirmation.tpl"}
.........
..........
......etc etc

Jon 10-22-2004 02:36 PM

When you load the page can you see the MAIN: text on it?

What about other pages? Can you see the MAIN: text on it?

macker123 10-22-2004 02:55 PM

Quote:

Originally Posted by Jon
When you load the page can you see the MAIN: text on it?

What about other pages? Can you see the MAIN: text on it?


I see it fine on other pages, but NOT the pages in question.

Jon 10-23-2004 06:12 PM

Probably indicates problems in your php scripts. Open them up and check to see that main is being assigned to smarty.

macker123 10-23-2004 08:57 PM

Quote:

Originally Posted by Jon
Probably indicates problems in your php scripts. Open them up and check to see that main is being assigned to smarty.


I restored all of my PHP files from the originals it hasn't made a difference.

Either there is something wrong with the PHP files by default or something is wrong with a template somewhere.

I have made ALOT of changes to templates so if you guys can give me some ideas on what templates to try and restore I can see if that helps.

macker123 10-24-2004 01:51 PM

I got it working. It turns out in the home.tpl there was an if else statement that I thought was right, but I guess not. It was never getting to the else statement. All fixed.

Thanks for your help.

Jon 10-24-2004 08:09 PM

What a nightmare eh. Glad you got it working.


All times are GMT -8. The time now is 03:20 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.