Checkout Problem

Hello



I’ve discovered a problem with my checkout page on IE7 whereby the browser closes the page down for security reasons.



What I need to do is remove bottom.tpl from all secure pages. Does anyone know how I can do this?

what code in the bottom.tpl is causing the crash?

I’ve actually got links on the bottom of the page that aren’t secure, so other than removing bottom.tpl, the only thing I can do is remove the links.



Is there any way I can put code in so the links only show up on http pages?

I’m also having problems with my global options on the Incense Sticks pages: [url]http://www.moonrust.co.uk/moonrust-incense-sticks-dewberry.html[/url].



When you select 20 Sticks, the price should change to £1.75.



I’ve just changed server hosts, and it worked before, so I’m not sure what’s going on…?

well, i think there are more problems than just a code

I tried navigating your site, and 3 times I had to reboot my computer. It froze up on 3 different tries (got to the checkout once, and there were 5 errors indicated by firebug on that page alone)



i try to help, but if I can’t open pages and navigate, it gets pretty hard.



BTW, it froze up on both Firefox, and IE6

Here is the code to remove unwanted stuff on the secure pages


{if $current_location == $https_location}
WHAT YOU WANT TO SHOW ON SECURE PAGES
{else}
WHAT SHOWS ON ALL THE OTHER PAGES
{/if}




I will elaborate a bit for you.

Save your existing bottom.tpl as is.

Make another template and name it something like “bottom-secure.tpl” (removing the offending code from it) and place it in the same directory as bottom.tpl



Go to your index.tpl and locate the includes file line for bottom.tpl

(this is the line on 1.3.4 sp3 NOT on 1.3.5 but it should be similiar)


```php



{include file=“bottom.tpl”}

```

Alter the code something like this:
```php

{if $current_location == $https_location}
{include file="bottom-secure.tpl"}
{else}
{include file="bottom.tpl"}
{/if}

```

I have not tested this, but it should work.

[B][COLOR="Red"]PLEASE MAKE SURE YOU BACKUP YOUR ORIGINALS!!!![/COLOR][/B]

That’s really worrying…



Were they database errors?

Thanks, I’ll try that for starters

I don’t feel like crashing again, but I did catch 3 errors regarding “tax” not being passed or something like that. and a .js error

I kept my existing bottom.tpl and just added your code to specific languages I had added:



{if $current_location == $https_location}

{$lang.contact_us_text}

{$lang.shop_access}

{else}

{$lang.contact_us_text}

{$lang.google_search}

{$lang.moonrust_top_100}

{$lang.quantcast_tag}

{$lang.shop_access}

{/if}



This seems to work the same as if I had done what you described above :smiley:



Still having problems with Global Options not working now though.



Are you still having problems accessing my site at all?? I don’t know what has caused all my problems (apart from me not being a web designer!) but my last server host was absolutely useless to say the least.

Do you know what settings I should and shouldn’t have checked in Dynamic HTML?

[quote name=‘doddles’]I kept my existing bottom.tpl and just added your code to specific languages I had added:



{if $current_location == $https_location}

{$lang.contact_us_text}

{$lang.shop_access}

{else}

{$lang.contact_us_text}

{$lang.google_search}

{$lang.moonrust_top_100}

{$lang.quantcast_tag}

{$lang.shop_access}

{/if}



This seems to work the same as if I had done what you described above :smiley:



Still having problems with Global Options not working now though.



Are you still having problems accessing my site at all?? I don’t know what has caused all my problems (apart from me not being a web designer!) but my last server host was absolutely useless to say the least.[/QUOTE]



? hmmm

changing the language variables should not matter at all if that is the problem.

I have to scoot, but maybe i can look later (if i remember)

:stuck_out_tongue:

Thanks for your help Mike and apologies for crashing your system.



This is quite serious, so I’ve actually bought some CS Cart support to see if they can help with these problems.

CS-Cart will fix the problems on your site. I’ve had a lot of issues fixed from them free of charge.They are quick too :slight_smile:

Thanks Gpro



That gives me confidence… I know it’ll be worth paying the money for support now.



The last thing I want is a cart that doesn’t work. I’m trying to grow my business, not go bust!! :frowning: