*

adyfloat

  • ***
  • 42 posts
Can't update category icon using font awesome icon
« on: June 29, 2017, 10:18:35 AM »
Hello,

Not able to change category icons using font awesome icons

Category icons Type is on ->
https://gyazo.com/f7afe6fbd2dc05cdc107ef0803ae4de6

Font Awesome icon successfully saved message ->
https://gyazo.com/4620c5674bd6dfcf49a233df3792b727

Saved icon of Tablet is shown under Font-Awesome icon of Category ID=96
https://gyazo.com/6017cea2139aa756e93c6465a192f0a7

But no change in category icon in theme
https://gyazo.com/0872e93bdd0332858e924730b9ea3829

PhpMyAdmin table name changed from fstr_bs_theme_category_icon TO fstr_t_bs_theme_category_icon
first it was fstr_bs_theme_category_icon that time also it was not working so I changed it but still didn't work.
https://gyazo.com/e7c174feeb280cd5db55640d4fa0c883

Thanks for your time and support.

*

MB Themes

Re: Can't update category icon using font awesome icon
« Reply #1 on: June 29, 2017, 11:18:34 AM »
@adyflik
Sorry I am not sure what last point means.
Please reinstall theme if you have done modifications in theme core or database structure.
What is your URL?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

adyfloat

  • ***
  • 42 posts
Re: Can't update category icon using font awesome icon
« Reply #2 on: June 29, 2017, 11:59:39 AM »
@frosticek
Issue : can't update category icons using font awesome.

No i haven't changed anything in core or database.
Site Url : www.adyflik.com
I tried to reinstall themes but didn't work.

In my database table prefix is fstr_t_
And when i install veronika category icon table prefix is only fstr_ without _t_
So i am asking should i need to change table name
From  fstr_bs_theme_category_icon 
To       fstr_t_bs_theme_category_icon

I am just asking your suggestion.

Thanks


*

MB Themes

Re: Can't update category icon using font awesome icon
« Reply #3 on: June 29, 2017, 12:14:55 PM »
@adyflik
This is table name:
t_category_veronika

Please do not change it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

adyfloat

  • ***
  • 42 posts
Re: Can't update category icon using font awesome icon
« Reply #4 on: June 29, 2017, 01:46:49 PM »
@frosticek

Yes sir,

It's the only table name in my database : t_category_veronika
I didn't change it

But my issue is I am not able to change category icons using font-awesome.

Thanks for your time and support.

*

MB Themes

Re: Can't update category icon using font awesome icon
« Reply #5 on: June 29, 2017, 02:14:05 PM »
@adyflik
From what you said you are changing tables, structure or theme name. Please install it on pure installation of osclass and try again. I cannot reproduce such issue on demo site.
You already had same problem with table t_item_veronika that was missing on your site as well. That means your installation was not made correctly or has corrupted.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

adyfloat

  • ***
  • 42 posts
Re: Can't update category icon using font awesome icon
« Reply #6 on: June 29, 2017, 02:38:46 PM »
@frosticek,

Hello,

My site is old running site. If I do again fresh installation then will i get old ads back ? I am not sure whether it's possible or not so asking.
I tried to reinstall veronika theme. But didn't work. Other themes work well in current installation also. So I am wondering other themes work so installation is not corrupted.

My previous issue was related searching and filtering but it was solved as per your guideline.

For category icon i didn't change anything.
If it's solved by you then guide me otherwise we have to run it as it is or need to change the theme.

Thanks
 

*

MB Themes

Re: Can't update category icon using font awesome icon
« Reply #7 on: June 29, 2017, 02:39:51 PM »
@adyflik
Is the icon correctly saved in theme settings?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

adyfloat

  • ***
  • 42 posts
Re: Can't update category icon using font awesome icon
« Reply #8 on: June 29, 2017, 03:41:18 PM »
@frosticek,

Yes sir icons correctly saved in the theme settings but don't display.

Saved Message : https://gyazo.com/2c326a9a4c779e5ca50968e410132478

Saved Icons in Admin Panel : https://gyazo.com/c22ba79fbe4d060b57b2450816c13cc8

Yes back-end icons get saved but in front-end not displayed.

Thanks


*

MB Themes

Re: Can't update category icon using font awesome icon
« Reply #9 on: June 29, 2017, 04:19:38 PM »
@adyflik
That table is not created correctly, it contains 1 category only, even all categories are imported when theme is installed.
I am not able to support things you are doing. Install theme on fresh osclass installation and test it there.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

adyfloat

  • ***
  • 42 posts
Re: Can't update category icon using font awesome icon
« Reply #10 on: June 30, 2017, 10:39:16 AM »
@frosticek,

I didn't get this exactly, "That table is not created correctly, it contains 1 category only, even all categories are imported when theme is installed."

I think screenshot area is limited so it's displayed 1 category but in my theme I have more than 1 categories and sub categories.
We have just changed category names as per our requirements. Because we can't use exact categories and subcategories given at osclass installation.

We can't do fresh installation from scratch because it's old site and by doing so all previous ads will get lost.
We have to find solution from current status only.

Anyway thanks for your time and support.

*

MB Themes

Re: Can't update category icon using font awesome icon
« Reply #11 on: June 30, 2017, 11:09:34 AM »
@adyflik
In file /oc-content/themes/veronika/model/struct.sql you can find what happen during installation
1) CREATE TABLE /*TABLE_PREFIX*/t_category_veronika(
2) INSERT INTO /*TABLE_PREFIX*/t_category_veronika (fk_i_category_id) SELECT pk_i_id FROM /*TABLE_PREFIX*/t_category;

this did not happen on your site meaning installation was not correct or you somehow hardcoded that.

In same file next table is created:
CREATE TABLE /*TABLE_PREFIX*/t_item_veronika(

This table was obviously missing on your site as well.



Go to file:
oc-content/themes/veronika/functions.php

Find line:
Code: [Select]
check_install_veronika_theme();
Bellow this line add code:
Code: [Select]
veronika_theme_install();
- save
- go to homepage and 1 time refresh site
- go back to functions.php and remove line you have added

Installation should be refreshed.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

adyfloat

  • ***
  • 42 posts
Re: Can't update category icon using font awesome icon
« Reply #12 on: June 30, 2017, 01:41:58 PM »
@frosticek,

Yes I did the same, theme is reinstalled but issue is not solved.

check this screen shot, https://gyazo.com/ad44a2470a5ed041da2d51b37f8f48e6

I have all three tables in databse,
t_category_veronika
t_item_veronika
t_item_stat_veronika

If not solved then ok because I am able to use image icons for the categories so i will use png icons instead of font-awesome icons.
It's not a major issue.

Thanks for your valuable time and support.

*

MB Themes

Re: Can't update category icon using font awesome icon
« Reply #13 on: June 30, 2017, 01:43:43 PM »
@adyflik
Is t_category_veronika filled with categories already?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

adyfloat

  • ***
  • 42 posts
Re: Can't update category icon using font awesome icon
« Reply #14 on: June 30, 2017, 01:55:18 PM »
@frosticek,

Hello I am not sure whether it is filled or not but i can say t_category_veronika is present.

and by the way i have found the solution, not dynamic but we can fix the icon according to category id in functions.php

// DEFAULT ICONS ARRAY
function veronika_default_icons() {
  $icons = array(
    1 => 'fa-newspaper-o', .............  96 => 'fa-tablet', 97 => 'fa-television', 99 => 'fa-briefcase'
  );

  return $icons;
}

that's the solution to use font awesome icons.

Thanks