Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / developer changed classic template instead of using override system

developer changed classic template instead of using override system

Locked

Views: 1,469

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
10 Mar 2010, 9:58 AM
#1
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

developer changed classic template instead of using override system

Hi

I'm using v1.3.8a on http://store.mmw.ie/

I paid a company to program/install a detailed product search facility in a side box as i have zero knowledge of php etc.

The module works fine when the classic template is selected but gets messed up if i change to another template - it displays the side box but the search doesnt work so i'm assuming they changed some core files.

the question is where do i go from here?

I'm assuming i can just compare the classic template files (includes/templates/classic) on my server with a standard set to see what was changed but what do i do with the changes to allow me to use the override system - where should they have been put? template_default folder?

I'm happy enough to use the css files to customise the classic template if its too involved to correct this mess.

if i leave things as they are, when i want to install a module myself, do i just change the YOUR_CUSTOM_TEMPLATE folders to "classic" and install to the core classic folder?

BTW I asked the company to fix this but they want to charge me the full original price again.

Thanks for your help

10 Mar 2010, 10:16 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: developer changed classic template instead of using override system

The first thing I am getting when clicking your site link is this

Warning: I am able to write to the configuration file: /home/mmw/public_html/store/includes/configure.php. This is a potential security risk - please set the right user permissions on this file (read-only, CHMOD 644 or 444 are typical). You may need to use your webhost control panel/file-manager to change the permissions effectively.

You need to address this asap

Do you know if the module required the installation of an sql patch? If you don't, can you ask the people who installed that detailed product search facility in a side box if that was the case?

10 Mar 2010, 11:22 AM
#3
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: developer changed classic template instead of using override system

Thanks. i've sorted the permission now. I have been messing about with this for the last two week and this morning i had to restore the backup taken when the module was originally installed.

I've just loaded another templates now to let you see what happens - the drop down under "product" should be under "make" and "Exac model" is "Exact model" on classic template

I'm waiting on a response from the company about the sql patch but they previously gave me this list of files that where part of the install.

\removeve.php
.htaccess
\getmodel.php
\getmake.php
\getexac_model.php
\add_search.php
\includes\application_top.php
\includes\extra_datafiles\search_engine_database_names.php
\includes\extra_datafiles\search_results_filenames.php
\includes\languages\english\classicsearch_results.php
\languages\english\extra_definitions\classicsearch_results.php
\includes\languages\english\html_includes\classicdefine_search_results.php
\includes\modules\pages\search_results\header_php.php
\includes\modules\sideboxes\search_vehicle_sidebox.php
\includes\templates\classic\commonhtml_header.php
\includes\templates\classic\imagesloading2.gif
\includes\templates\classic\sideboxestpl_search_vehicle_sidebox.php
\includes\templates\classic\templatestpl_search_results_default.php
\admin\extra_datafilessearch_engine_database_names.php
\admin\modules\product\collect_info.php

Database Table: zen_search_engine_make

10 Mar 2010, 11:47 AM
#4
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: developer changed classic template instead of using override system

iddy:

\includes\languages\english\classicsearch_results.php
\languages\english\extra_definitions\classicsearch_results.php
\includes\languages\english\html_includes\classicdefine_search_results.php
\includes\templates\classic\commonhtml_header.php
\includes\templates\classic\imagesloading2.gif
\includes\templates\classic\sideboxestpl_search_vehicle_sidebox.php
\includes\templates\classic\templatestpl_search_results_default.php

Just looking at these files again i can see that the above is missing "" in a few places but would it work if i copied these files (changing "classic" to MY_INSTALED_TEMPLATE) for a new template?

Is there somewhere i can copy these files to so it will automatically be picked up no matter what template i use?

10 Mar 2010, 12:09 PM
#5
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: developer changed classic template instead of using override system

Looks very much that the override system has not been used - that's without a question.

Still worth waiting for their response about the sql patch. If there is an uninstall patch you could reverse the current situation.

Honestly if I was in your shoes I would simply start from scratch and then look for a Zen Cart savvy developer on this forum for the implementation of your specialized search facility (I am not one of them btw - not trying to drum up business ...)

I would love to give you some easier advice but I am afraid that's beyond my capabilities and knowledge.

Sorry mate

10 Mar 2010, 12:10 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: developer changed classic template instead of using override system

You should be able to move those files from the classic folders to the corresponding pink_boutique folders.

Use Admin - Tools - Developers Tool Kit to search for 'exac model' to see the file that contains that error.

There's nowhere you can put edited files such that they'll be used regardless of template selection. When Zencart goes to create a page, it looks first in the override folders for the currently selected template for the files it needs, and if they aren't there, it goes to the core folders or template_default.

10 Mar 2010, 12:12 PM
#7
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: developer changed classic template instead of using override system

Just looking at these files again i can see that the above is missing "" in a few places

that could just be a typo on their end when giving you the details

10 Mar 2010, 12:20 PM
#8
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: developer changed classic template instead of using override system

stevesh:

There's nowhere you can put edited files such that they'll be used regardless of template selection.

you will actually need to copy (not move) the edited files to the corresponding pink_boutique folders and replace the (edited) files with originals.

10 Mar 2010, 12:21 PM
#9
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: developer changed classic template instead of using override system

I copied files from the "classic" template folder to the new one and the search works now :clap:

Thanks for all the help :bigups:

10 Mar 2010, 1:09 PM
#10
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: developer changed classic template instead of using override system

iddy:

BTW I asked the company to fix this but they want to charge me the full original price again.

Just want to set the record straight even though I didnt mention the company name. I just remembered that i didnt ask the company to fix this issue. I contacted them about getting a copy of the module and they offered to sell me a hosting plan or charge me for the work again. Bad customer service clouds my memory. Sorry! :blush: