Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

General Modifications


cyandi_man

Recommended Posts

Hi I am a designer currently working on a project for a client ...however I am not that familiar with PHP.

or this type of template.

 

I am currently trying to make pages that can be shown from clicking on the navbarbuttons. I noticed that the navbar link coding are as follows: <?=tep_href_link('index.php')?> or services or whatever page the utton links to.

 

in the begining of the particular pages in question i noticed the following:

 

define('NAVBAR_TITLE', 'services');

define('HEADING_TITLE', 'Our Services');

 

define('TEXT_INFORMATION', 'text info goes here');

 

 

 

My question is what is 'NAVBAR_TITLE' refering to? I know the heading title shows up in the heading of the page - i also have changed the tep_href_link to link to the services page - however the page does not show.

 

is there other information in the navbar and includes that i must change? please help as this is the first time im working on a template such as this. Thanks in advance!

 

also - i have noticed that the navbar (header.php) is in my modules folder and my pages are in the folder languages/english. The original pages were in this folder as well and worked fine. however now that im pointing to the newer pages that i wish to use instead they dont show? i get a "cannot find page" error.

Link to comment
Share on other sites

The NAVBAR title is what is added to the breadcrumb trail and doesn't effect your page linking. You have to use the tep_href_link function to create links or you will lose the session ID's that oscommerce uses to track cusomters movements. A typical page will have a file in the root and a file in the english directory with the same name. The one in the root contains the formatting code. The one in english contains text. Hope this helps clarify what is going on.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

okay - i did as you suggested....however the new pages that i created are not showing up...i get the old page that i used as a template to creat the newer pages!

 

i saw that there was a Filename.php file in the admin section that contained the TEP HREF info ...

 

eg. define(FILENAME_CHECK_OUT, checkout.php)

 

however i don't see the declarations for the main pages like contact, about, privacy etc...

 

where do i find this info? is that why the pages are not linking?

Link to comment
Share on other sites

If you created your pages the way oscommerce does them, then you will need an entry in the filenames.php file. You have to add that yourself.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

If you created your pages the way oscommerce does them, then you will need an entry in the filenames.php file. You have to add that yourself.

 

Jack

thanks jack,

i figured that out, only it will only accept one file name. when duplicating the line of code then adding a new file name for a diff product. it does not work. it only allows the download of one entry.

How do i add multiple entries?

 

can you help?

bad kitty

Link to comment
Share on other sites

Hi I am a designer currently working on a project for a client ...however I am not that familiar with PHP.

or this type of template.

 

I am currently trying to make pages that can be shown from clicking on the navbarbuttons. I noticed that the navbar link coding are as follows: <?=tep_href_link('index.php')?> or services or whatever page the utton links to.

 

in the begining of the particular pages in question i noticed the following:

 

define('NAVBAR_TITLE', 'services');

define('HEADING_TITLE', 'Our Services');

 

define('TEXT_INFORMATION', 'text info goes here');

 

My question is what is 'NAVBAR_TITLE' refering to? I know the heading title shows up in the heading of the page - i also have changed the tep_href_link to link to the services page - however the page does not show.

 

is there other information in the navbar and includes that i must change? please help as this is the first time im working on a template such as this. Thanks in advance!

 

also - i have noticed that the navbar (header.php) is in my modules folder and my pages are in the folder languages/english. The original pages were in this folder as well and worked fine. however now that im pointing to the newer pages that i wish to use instead they dont show? i get a "cannot find page" error.

 

Hey cinadiman, I know how overwhelming php and better OSC can be after working with it for almost four years now. Recently I found this site that will help in understanding it all and explain how OCS works. View the tutorials it's the best site I've found yet.

 

http://www.oscommerce-template-easy.com/

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...