Latest News: (loading..)
Jack_mcs

Category Images

14 posts in this topic

This addon is a bootstrap module that displays the category images on the home page. The category description can also be displayed via a setting.

Share this post


Link to post
Share on other sites

A new version has been uploaded. It just changes the code to use the stock categories description field.

Share this post


Link to post
Share on other sites

Jack

 

Just installed the latest version of this addon and have the following error when selecting the sort by name option.

1054 - Unknown column 'c.name' in 'order clause'

select c.categories_id, c.categories_image, cd.categories_name, SUBSTRING(cd.categories_description, 1, 1000) as categories_description from categories_description cd left join categories c on c.categories_id = cd.categories_id where c.parent_id = '0' and cd.language_id = '1' order by c.name limit 12

[TEP STOP]


 

Share this post


Link to post
Share on other sites

Glad to be of help. Seems to be working fine now. I did compare the files but dont understand code so I dont really know why I did it.

Share this post


Link to post
Share on other sites

A new version has been uploaded with these changes:

  • Added an option to choose which category description to use.
  • Added a see more link to the category description.
  • Added css for total control of the appearance.
  • Changed the category name into a link.
  • Moved the css changes from the install instructions file to the user.css file.

NOTE: If you already have this installed, be sure to uninstall it before doing anything else.

Share this post


Link to post
Share on other sites

@Jack_mcs

Is there a way to apply some type of 'equal height' code to the display? Or, is that already in the CSS (which I have not yet applied)?

TIA

Malcolm

Share this post


Link to post
Share on other sites

It uses the equal height module. You may need to install that in admin->Modules->Header Tags. Depending upon your version of oscommerce, you may need to upgrade the module in your shop to this one or this one

Share this post


Link to post
Share on other sites

@Jack_mcs

Thank you. I'm using the latest version of Edge. I do not see any Equal Height header tag available. I *think* @burt replaced it with a CSS solution instead.

With that in mind, do you have a preference of which of the two add-ons you suggested to use? Or, is there a CSS solution instead?

TIA

Malcolm

Share this post


Link to post
Share on other sites

If you are using the latest version with Gary's change to it then that is the same as the second addon I mentioned. I don't know if that still requires the equal height module to be installed or not so you may want to try enabling the one already in your admin. If it doesn't work, try the first one I mentioned.

Share this post


Link to post
Share on other sites

@ArtcoInc 

Jack has coded in row list-group at

<div class="row list-group" itemtype="http://schema.org/ItemList">

so that should be enough to invoke the inbuilt .css solution (edge)...and it should equalise the output...

If a "group" of boxes is inside a "row list-group", they should be good.

Share this post


Link to post
Share on other sites

Gary: Thanks for checking.

ArtcoInc: You may need to adjust the width and/or column count in the settings of this module. 

Share this post


Link to post
Share on other sites

@Jack_mcs @burt

On 10/2/2017 at 5:51 PM, Jack_mcs said:

It uses the equal height module. You may need to install that in admin->Modules->Header Tags. Depending upon your version of oscommerce, you may need to upgrade the module in your shop to this one or this one

I did need to install one of the add-ons you suggested (it did not display properly without one). The first one you suggested worked. The second one didn't.

You *might* want to include this info in the installation instructions. :cool:

Thank you both for your help!

Malcolm

Share this post


Link to post
Share on other sites

Thanks for letting me know. I will add a note to the installation instructions.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now