Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing the "+" and "-" from product listing


lc0

Recommended Posts

Posted

I wanted to answer to this topic, but it's closed, so I post here hoping it's useful.

 

To change the unaesthetic + and the - from the product listing with a little arrow up or down open

/catalog/includes/functions/general.php

and change this line

 


$sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '+' : '-') : '') . '</a>';

 

with this

 

$sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '▲' : '▼') : '') . '</a>';

 

That's all.

Posted

Thanks for posting that luca!

 

The code can be found around line 897.

 

You can also add extra space between the words (Product Name and Price) in the header and the arrows by simply adding -  

 

Example:

$sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '  ▼' : '  ▲') : '') . '</a>';

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Archived

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

×
×
  • Create New...