View Single Post
  #146  
Old 11-12-2012, 05:36 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: common if/then modifications I make to x-cart...

Have you tried my suggestion above?

I'll explain it again.

Create a static page containing:
Code:
{if $login eq ''} Yes you have to register. Go here: <a href="register.php?custom=yes">Register</a> {else} You are registered and logged in! Congratulations! {/if}
Make sure you have "parse smarty tags" enabled. Take note of the pageid of the custom page.

Now look in include/register.php
Find this line:
Code:
$script = 'address_book.php';
Change it to:
Code:
if ($custom == 'yes') { $script = 'pages.php?pageid=7'; }else{ $script = 'address_book.php'; }
Change the pageid to your custom page's id.

Works on my test site here: http://trainingpen.com/Special.html
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote