Advertisement:

Author Topic: Category and Subcategory problem on sidebar-search  (Read 1301 times)

Rhoda

  • Jr. Member
  • **
  • Posts: 92
Category and Subcategory problem on sidebar-search
« on: March 07, 2017, 04:27:14 pm »
Hi guys i have a problem with the category and subcategory!

This code i have in the item-post.php
Code: [Select]
<?php ItemForm::category_multiple_selects(nullnull__('Select a property type''ctg_housing')); ?>
The subcategory appears after you select the category, see image 1 and 2

what i try is that both appears both with a label, see image 3
How to do this?

Thanks
« Last Edit: March 08, 2017, 11:19:32 am by Rhoda »

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Category and Subcategory problem on item post
« Reply #1 on: March 07, 2017, 05:48:01 pm »
I think you can change

ItemForm::category_multiple_selects

with

Code: [Select]
ItemForm::category_two_selects
should work

Rhoda

  • Jr. Member
  • **
  • Posts: 92
Re: Category and Subcategory problem on item post
« Reply #2 on: March 07, 2017, 06:07:28 pm »
Great thanks

Rhoda

  • Jr. Member
  • **
  • Posts: 92
Re: SOLVED Category and Subcategory problem on sidebar-search
« Reply #3 on: March 08, 2017, 11:18:52 am »
Hi guys how to change this code: See image 1
(sidebar-search.php)
Code: [Select]
     
        <?php  if ( osc_count_categories() ) { ?>
        <?php 
        
if(isset($sCategory)) {
        
$category = array("pk_i_id" => $sCategory);
        } else {
        if(
osc_is_home_page() && osc_is_search_page()){
        
$category 'null';
        } else {
$category = array("pk_i_id" => '0');}
        }
        
osc_categories_select('sCategory'$category __('Select a category''ctg_housing')) ; ?>


To receive this kind from style: See image 2
(item-post.php)
Code: [Select]
        <?php ItemForm::category_select(nullnull__ ('Select a property type''ctg_housing')); ?>

Thanks

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Category and Subcategory problem on sidebar-search
« Reply #4 on: March 08, 2017, 04:10:47 pm »
you can open a ticket in osclass market to get help from developper. Thank you.

Rhoda

  • Jr. Member
  • **
  • Posts: 92
Re: Category and Subcategory problem on sidebar-search
« Reply #5 on: March 09, 2017, 05:25:56 pm »
I'am a student Sir and i make this for my end work.
I live in a 3th world country and can't pay a developer!

Hope you understand.

Thanks

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Category and Subcategory problem on sidebar-search
« Reply #6 on: March 09, 2017, 05:28:38 pm »
May i ask you where you get the theme ctg_housing ?

Rhoda

  • Jr. Member
  • **
  • Posts: 92
Re: Category and Subcategory problem on sidebar-search
« Reply #7 on: March 09, 2017, 05:37:17 pm »
That one i buy online on Osclass

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Category and Subcategory problem on sidebar-search
« Reply #8 on: March 09, 2017, 05:40:56 pm »
so you can go here https://market.osclass.org/themes/real-estate/ctg-housing_405 and click on "open a support ticket"
Is not a paid service, its free support.

Rhoda

  • Jr. Member
  • **
  • Posts: 92
Re: Category and Subcategory problem on sidebar-search
« Reply #9 on: March 09, 2017, 05:46:38 pm »
Thanks Dear,

I see that you use also the ctg-housing theme,
If ever you have some tricks or good codes please share them.

I need to learn this!

Thanks

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Category and Subcategory problem on sidebar-search
« Reply #10 on: March 09, 2017, 05:49:42 pm »
Actually i create the ctg-housing theme, not only using it.

Rhoda

  • Jr. Member
  • **
  • Posts: 92
Re: Category and Subcategory problem on sidebar-search
« Reply #11 on: March 09, 2017, 05:51:49 pm »
wow this is a great theme!

Rhoda

  • Jr. Member
  • **
  • Posts: 92
Re: Category and Subcategory problem on sidebar-search
« Reply #12 on: March 09, 2017, 05:54:18 pm »
I send the question already on the link you give me!

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Category and Subcategory problem on sidebar-search
« Reply #13 on: March 09, 2017, 05:57:48 pm »
you need to click on Open a support ticket in the right sidebar, not in the question tab

Rhoda

  • Jr. Member
  • **
  • Posts: 92
Re: Category and Subcategory problem on sidebar-search
« Reply #14 on: March 09, 2017, 06:04:04 pm »
I click this one and hope i i'am right