View Single Post
  #2  
Old 10-19-2008, 12:59 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Recent order history on a different page other than orders.php

Since no one else has answered you I figured I would give it a go. The main problem with creating a central account page is that different php files are referenced. For example, I created a your_account.tpl that I cloned from menu_cart.tpl that "appears" in the menu column by enclosing it in an "if" statement when a customer is logged in...
Code:
{if $login ne "" } {include file="customer/your-account.tpl" } {/if}
in skin1/customer/home.tpl. It has "Modify Profile" "Delete Profile" and "Order History" as choices the customer can make. Each of these is nothing more than a link to the php file that does what the customer wants to do, but it works well for what we need. Modify and delete both use register.php, and order history uses orders.php. Adding newsletter subscriptions would be even more complex.

I'm not sure how you would go about calling each of these php files on the same page but I see no reason it could not be done. I am assuming that you want your "My account" page to be in the central area of the store, correct? As a start, you could put each in its own dialog box calling dialog.tpl instead of menu.tpl.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote