Thread: X-Cart 4
View Single Post
  #2  
Old 05-17-2015, 06:57 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: X-Cart 4

Blaine,
You are right! We no longer seem to have a forum for this, but it is just because of the new forums for X-Cart 5. Previously all the forums were dedicated to X-Cart classic (4 and below), so now that we have dedicated X-Cart 5 forums it is confusing. I think we need to rename the X-Cart Classic forums to reflect that.

The proper categories are these:
For X-Cart Classic logic questions: http://forum.x-cart.com/forumdisplay.php?f=20

For X-Cart Classic design questions: http://forum.x-cart.com/forumdisplay.php?f=51

Your question would fall into more of the logic category, but it really would be suitable in either. Lets let a mod with more power than I move the thread.

To answer your question, you can easily create a new page:
Create a new php file in the root of X-Cart named whatever you like, myregform.php. At a minimum it needs this code:

Code:
<?php require './auth.php'; include $xcart_dir.'/include/common.php'; $location[] = array(func_get_langvar_by_name('lbl_my_reg_form'), ''); $smarty->assign('main', 'my_reg_form'); // Assign the current location line $smarty->assign('location', $location); func_display('customer/home.tpl',$smarty); ?>

The last bit decides what template you want to display, and above it says "customer/home.tpl". You can build a new template, and put anything you want in there. Of course this is just the start of your project.

You may find that you can simply define "main" like above, and take action based on that in the necessary templates to not display the pieces that you want.
__________________
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