Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do i remove product sorting options?


Guest

Recommended Posts

Hi everyone,

Does anybody know how to completley remove the Product Name, Price and Buy Now sorting options from the product listing page? (Untitled.jpg, circled in red)

Iv tried removing the following peices of code however the titles change to simply a + sign:

 

case 'PRODUCT_LIST_NAME':

$lc_text = TABLE_HEADING_PRODUCTS;

$lc_align = '';

break;

 

case 'PRODUCT_LIST_PRICE':

$lc_text = TABLE_HEADING_PRICE;

$lc_align = 'right';

break;

 

case 'PRODUCT_LIST_BUY_NOW':

$lc_text = TABLE_HEADING_BUY_NOW;

$lc_align = 'center';

break;

 

Many thanks.

Link to comment
Share on other sites

Personally I'd use the admin page and set the "value" to 0.

 

Much easier than messing around with the code.

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Personally I'd use the admin page and set the "value" to 0.

 

Much easier than messing around with the code.

 

G

 

Hi, iv just been throught the admin, is there a way i can just turn the headings off? The headings are circled in red in the picture, i want to keep the actual titles, prices and buy now buttons, i just want to remove the headings.

Many thanks

Link to comment
Share on other sites

Have you thought about blanking out the titles in the translation tables?

 

/includes/language/english/.....php

 

will still leave a + there to indicate the sort order.

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Have you thought about blanking out the titles in the translation tables?

 

/includes/language/english/.....php

 

will still leave a + there to indicate the sort order.

 

G

 

Hi, i did do that, but then the + sign looked just as ugly :(

Link to comment
Share on other sites

in includes/modules/product_listing.php

 

find(68)

 

	$list_box_contents[0][] = array('align' => $lc_align,
								'params' => 'class="productListing-heading"',
								'text' => ' ' . $lc_text . ' ');

replace with

 

	/* $list_box_contents[0][] = array('align' => $lc_align,
								'params' => 'class="productListing-heading"',
								'text' => ' ' . $lc_text . ' ');  */

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

in includes/modules/product_listing.php

 

find(68)

 

	$list_box_contents[0][] = array('align' => $lc_align,
								'params' => 'class="productListing-heading"',
								'text' => ' ' . $lc_text . ' ');

replace with

 

	/* $list_box_contents[0][] = array('align' => $lc_align,
								'params' => 'class="productListing-heading"',
								'text' => ' ' . $lc_text . ' ');  */

 

 

That is absolutley fantastic, thanks so much!

Thank you all for your help. I really apperciate it!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...