Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can someone help me with the "All Products"


Guest

Recommended Posts

I am trying to add the Contribution "All Products 2.8". The read me file is shown below. Can someone tell me what steps 2 and 3 mean.

 

Not sure what lines it is asking me to add in the relevant files for part 2.

 

In part 3, what new pages?

 

 

 

 

***************************************************************

MOdified by Schizo Binky on May 23, 2004 to work with BTS V1.3

if you have other templates directory other than osC or OneTable-fluid,

just make a copy of osC directory from catalog\templates and rename it to template directory you need it for

***************************************************************

 

Contribution: http://www.oscommerce.com/community/contributions,137

 

All Products for osCommerce 2.2 Milestone 1 & 2

version 3.0 by Ingo Malchow, [email protected]

 

released under the GNU General Public License

for the community of osCommerce

===============================================

 

Back to the roots.

Remember! The job of the page all_products was to show links by all products in offer for the searchengines.

I mean there must show links to FILENAME_DEFAULT with cPath and FILENAME_PRODUCT_INFO with products_id on one page.

All_products 3.0 make correctly this and fast! Every product and every category with full pathlinks. And this with

only 2 Queries by the database.

 

I have killed the "/name=xxxx" from the URL. Why? Every Link to FILENAME_PRODUCT_INFO in the whole shop must

look at unique. Show the products_name in the URL must be realized by a central function and use this in every

Link to FILENAME_PRODUCT_INFO!

 

================================================

 

Install

 

1. copy /catalog/all_products.php to your catalog/all_products.php

and /catalog/includes/languages/(language)/all_products.php to your /catalog/includes/(language)/all_products.php

 

2. add the lines in:

 

/catalog/includes/filenames.php

/catalog/includes/languages/english.php

/catalog/includes/languages/german.php

 

into your files with the same path and name.

Attention! Don't replace!!! Add only lines beginning with "define".

 

3. Place Links to the new page as you want. Look this:

 

<?php

echo '<a href="' . tep_href_link(FILENAME_ALL_PRODUCTS) . '">' . ALL_PRODUCTS_LINK . '</a>';

?>

3.1 Make a link in the categoriesbox:

open catalog/includes/boxes/categories.php:

 

find around line 66:

 

$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);

 

change to:

 

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ALL_PRODUCTS) . '" class="headerNavigation">' . BOX_HEADING_CATEGORIES . '</a><br>' );

Link to comment
Share on other sites

For part 2 it means:

 

open filenames.php and add this line

define('FILENAME_ALL_PRODUCTS', 'all_products.php');

 

copy the language files provided (meaning the all_products.php) to the equivalent lanugage dirs.

 

in catalog\includes\languages\english.php open the file add these lines in it

// All products
define ('ALL_PRODUCTS_LINK', 'Products Map');

repeat for the other languages

 

Finally implement step 3.1 exactly as stated

 

New page meant if you want to add the "all products" as a link to other pages in general.

Link to comment
Share on other sites

anyeone know how i can make a link for this in the categories box?

 

thanks

 

I have this at the bottom of my categories.php box, where I'm adding a sep line and calling two links:

 

  tep_show_category($first_element);

 $info_box_contents = array();
 $info_box_contents[] = array('text' => $categories_string);
 $info_box_contents[] = array('text' => tep_draw_separator());

 $text2 = '';

 $text2 .= '<a href="' . tep_href_link(FILENAME_CUSTOM_WORK, BOX_HEADING_CUSTOM_WORK, 'NONSSL') . '">' . BOX_HEADING_CUSTOM_WORK . '</a><br>';

$text2 .= '<a href="' . tep_href_link(FILENAME_COLORS_PATTERNS, BOX_INFORMATION_COLORS, 'NONSSL') . '">' . BOX_INFORMATION_COLORS . '</a>';

$info_box_contents[] = array('align' => 'left',
                              'text' => $text2);

 new infoBox($info_box_contents);

 

see in action on the painted 4 kids page in my profile ...

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

lets say you want to add it in the information box. Open includes\boxes\information.php then add in the info_box_contents[] array

'<a href="' . tep_href_link(FILENAME_ALL_PRODUCTS) . '">' . ALL_PRODUCTS_LINK . '</a><br>' .

make sure it goes before the last entry so it will not break the array contents.

Link to comment
Share on other sites

enigma/monika

 

thanks alot for the very quick response! brilliant stuff!

 

(just wish all by problems could be answered this quick!)

 

one more question though:

 

in the contibution instructions it says add this to as many pages as you like. i want to know if this is necessary, if i do will it help me in the search engines, or is just adding it in the categories box good enough?

 

ta

Link to comment
Share on other sites

enigma/monika

 

thanks alot for the very quick response! brilliant stuff!

 

(just wish all by problems could be answered this quick!)

 

one more question though:

 

in the contibution instructions it says add this to as many pages as you like. i want to know if this is necessary, if i do will it help me in the search engines, or is just adding it in the categories box good enough?

 

ta

 

 

I'm calling it in all cases when there is a continue and normally the index.php (filename_default) is called ... like at the end of the info pages etc ... you cna check that out on the site I mentioned

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

so does that give an advantage in the search engines monika (calling it up so many times?

 

or would i achieve the same with just one link? in the categories box?

Link to comment
Share on other sites

so does that give an advantage in the search engines monika (calling it up so many times?

 

or would i achieve the same with just one link? in the categories box?

Asif, I'm not 100% sure as I'mnnot an SEO guru, but I know showing the customers the products is better for sales than just showing them the index page, where this customer has text only!

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

somethings messed up!

 

i have addded the contribution, but when i go to my all_products page the categories box contents disapear, although the box stays!

 

can someone help?

Link to comment
Share on other sites

somethings gone wrong!

 

i have added the contribution.

 

now when i go to the all_products page, my menu in the categories box dissapears!

 

help please anyone!!

Link to comment
Share on other sites

somethings gone wrong!

 

i have added the contribution.

 

now when i go to the all_products page, my menu in the categories box dissapears!

 

help please anyone!!

 

 

please post a link!

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

I think you need to speak to your host, all I get is this

 

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/www/deviltro/includes/functions/database.php on line 19

Unable to connect to database server!

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

yes this has something to do with the coolmenu contribution. I checked with active scripting off and shows the categories no problem.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...