Zen Cart Logo
Forums / Contribution-Writing Guidelines / Where to put new file

Where to put new file

Locked

Views: 3,632

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
11 Jul 2007, 7:25 AM
#1
dwijadas avatar

dwijadas

New Zenner

Join Date:
May 2007
Posts:
20
Plugin Contributions:
0

Where to put new file

Hi,

I am trying to convert OSC POINTS AND REWARDS MODULE V2.00 into Zen-Cart.

As per the existing module there are many files need to change as well as need to add. ZC file structure and naming convention is lot different compared to OSC. I can figure out which file need to change but I am having difficulty in adding new file.

I have modified customer account page to include rewards module related link (variables value will be corrected once everything else is settled)
check the attached screen shot.

The real problem is when I click on the link it I get page not found. Let us take only one file at this moment thats my_points_help.

Now what I have done.

Added the file name into filenames.php
define('FILENAME_MY_POINTS', 'my_points'); // Points/Rewards Module
define('FILENAME_MY_POINTS_HELP', 'my_points_help'); // Points/Rewards Module

created a file named "tpl_my_points_help.php" and placed in "C:\xampplite\htdocs\cart\includes\templates\silverfish\templates"
created another file with name "tpl_my_points_help_default.php" and placed in "C:\xampplite\htdocs\cart\includes\templates\silverfish\templates"

copied both of these files into C:\xampplite\htdocs\cart\includes\templates\template_default\templates - still same.

What I am missing ? file name or file type or the location ?

Thanks,
Sena:smartalec:

11 Jul 2007, 8:53 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Where to put new file

Zen Cart pages need a header_php.php file and sometimes other files also. These can be found in the includes/modules/pages/PAGE_NAME folder and are called first to prepare the data that will be displayed on the template file.

If Zen Cart can't find a folder for a page with these preparatory scripts in, then it will return a page not found message.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

11 Jul 2007, 8:54 AM
#3
dwijadas avatar

dwijadas

New Zenner

Join Date:
May 2007
Posts:
20
Plugin Contributions:
0

Re: Where to put new file

Some pls help me. I am stuck. :huh:

11 Jul 2007, 9:22 AM
#4
dwijadas avatar

dwijadas

New Zenner

Join Date:
May 2007
Posts:
20
Plugin Contributions:
0

Re: Where to put new file

Thanks for your help Kuroi.

Let me resume

20 Sep 2007, 5:30 PM
#5
drumminlogan avatar

drumminlogan

New Zenner

Join Date:
Sep 2007
Posts:
12
Plugin Contributions:
0

Re: Where to put new file

Hi,

Did you ever get this module working in ZenCart. I am looking for the same module.

Thanks.

28 Nov 2007, 1:48 AM
#6
bx1 avatar

bx1

New Zenner

Join Date:
Aug 2007
Location:
Australia
Posts:
67
Plugin Contributions:
0

Re: Where to put new file

I am also extremely interested in this module. Does anyone know if anyone has created something like it? I have a lot of customers who order once so I would love to have a rewards program so they keep coming back.

Online skin care and cosmetics
http://www.beautyxpress.com.au

6 Jan 2008, 2:11 AM
#7
einstin avatar

einstin

New Zenner

Join Date:
Feb 2005
Location:
Atlanta, GA
Posts:
71
Plugin Contributions:
0

Re: Where to put new file

Bumped.....

Anyone?