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)
-   -   Inserting php code into x-cart pages (https://forum.x-cart.com/showthread.php?t=42725)

crazyoval 10-02-2008 05:47 AM

Inserting php code into x-cart pages
 
Hi guys,

I have the amember subscription software for use with subscription services that I want to use along side my standard products.

Im wondering how to add the php from the amember php code into a new php file that sits on the speed bar.

For example, I could create a new php file called 'subscriptions' and add it there so that clients can login to their subscription service and access their secure folders.

the login for amember is:

if ($au=$_SESSION['_amember_user']){ // user is logged-in
print "Hello $au[name_f] $au[name_l]!<br>";
print "<a href='/amember/logout.php'>Logout</a>";
} else { // user is not logged-in
print "<form method=post action='/amember/login.php'>
Username: <input type=text name=amember_login size=10><br>
Password: <input type=password name=amember_pass size=10><br>
<input type=submit value='Login'>
</form>";
}

which I would like to appear in the middle of the x-cart page so that it retains the columns I have as part of my skin but Im not sure how to do this.

I looked at help.php and that looked pretty simple enough, but the login fields only pop up at the top left of the page and not integrated into the website look and feel.

So, how do I add a new php page that opens in the middle of my store's page?

Thanks

crazyoval 10-02-2008 11:06 PM

Re: Inserting php code into x-cart pages
 
no takers?


All times are GMT -8. The time now is 08:05 PM.

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