Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Inserting php code into x-cart pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-02-2008, 05:47 AM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

Default 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
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
Reply With Quote
  #2  
Old 10-02-2008, 11:06 PM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

Default Re: Inserting php code into x-cart pages

no takers?
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020