View Single Post
  #1  
Old 07-25-2005, 09:17 AM
 
Jazzer Jazzer is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 48
 

Default Create New Cancel Subscriptions Page

I have a problem creating a copy of the "Current Subscriptions" page to a "Cancel Subscriptions Page" These pages are identical except the Headers and Top text ie: headers changed from "Current Subscriptions" to "Cancel Subsciptions"

Please follow these URL's to the Problem (the store is down so you need to click the first URL to gain access then keep the same browser open for the other links)

Go Here: http://www.inspiringheart.com/store/home.php?shopkey=george

Then go here: http://www.inspiringheart.com/store/orders.php?mode=cancel_subscriptions

I created a copy of the file /modules/Subscriptions/subscriptions.php
and made the file /modules/Subscriptions/cancel_subscriptions.php

Then modified the code in store/orders.php from:

Code:
if(@$mode=="subscriptions" && $active_modules["Subscriptions"]) include $xcart_dir."/modules/Subscriptions/subscriptions.php"; else include $xcart_dir."/include/orders.php";

to:

Code:
if(@$mode=="subscriptions" && $active_modules["Subscriptions"]) include $xcart_dir."/modules/Subscriptions/subscriptions.php"; elseif(@$mode=="cancel_subscriptions" && $active_modules["Subscriptions"]) include $xcart_dir."/modules/Subscriptions/cancel_subscriptions.php"; else include $xcart_dir."/include/orders.php";

The orders.php file calls the new file
/modules/Subscriptions/cancel_subscriptions.php

but then I'm not sure what to do next. I need to create a new page for cancel_subscriptions which is the same as current_subscriptions, but the headers are different.

Any help would be much appreciated.

Thanks
__________________
Jazzer
CloserToTheDream.com

X-Cart 4.0.12
Reply With Quote