Remove Item Type Selection from Add Item View

hello,
how can i remove Item Type Selection from add item view and show it in Edit Item View ?
i want the user to ONLY be able to choose or change item type from edit view not from add new product view !

Comments

  • Hello

    Please in file components/com_djclassifieds/views/additem/tmpl/default.php change line 338 from
    if($par->get('show_types','0') && $types){?>
    to
    if($par->get('show_types','0') && $types && $this->item->id>0){?>

    then types will be available only for edition.

    Best Regards,
    Lukasz
  • Thanks and one more thing:
    how can i echo product type in backend items listing as a column just like name or image or id ?
  • Hello

    >>how can i echo product type in backend items listing as a column just like name or image or id ?
    -- If you want also to have possibility to order by this column it would need changes in few files , please contact us on help desk and give admin and ftp credentials I will do it for you.

    Best Regards,
    Lukasz
  • no i don't need the sorting, for now, i just want to echo the price and product type in item listing on admin panel !
  • Hello
    >>no i don't need the sorting, for now, i just want to echo the price and product type in item listing on admin panel !
    -- In that case please in file administrator/components/com_djclassifieds/models/items.php change lines 161-163 from
    $query = "SELECT i.*, c.name as cat_name, u.name as user_name,a.c_abuse, i.date_start <= '".$date_now."' AND i.date_exp >= '".$date_now."' AS s_active "
    ."FROM #__djcf_items i "
    ."LEFT JOIN #__djcf_categories c ON i.cat_id=c.id "
    to

    $query = "SELECT i.*, c.name as cat_name, t.name as t_name, u.name as user_name,a.c_abuse, i.date_start <= '".$date_now."' AND i.date_exp >= '".$date_now."' AS s_active "
    ."FROM #__djcf_items i "
    ."LEFT JOIN #__djcf_types t ON i.type_id=t.id "
    ."LEFT JOIN #__djcf_categories c ON i.cat_id=c.id "

    and then in file
    /administrator/components/com_djclassifieds/views/items/tmpl/default.php
    before lines 164-166
    if(strlen($item->intro_desc) > 75){
    echo mb_substr($item->intro_desc, 0, 75,'utf-8').' ...';
    }else{

    please add

    if($item->t_name){
    echo '['.$item->t_name.'] ';
    }
    so then intro description will be started with type like this https://www.screencast.com/t/zNEgRCsPW7r .

    Best Regards,
    Lukasz
  • Thanks its working how about the price ?
  • i want the price to be shown just like item type.
  • Hello

    Please in the same file as before after this code you previously added

    if($item->t_name){
    echo '['.$item->t_name.'] ';
    }

    please add code
    if($item->price){
    echo DJClassifiedsTheme::priceFormat($item->price,$item->currency).'
    ';
    }

    then you will get also price after type.

    Best Regards,
    Lukasz
  • Thanks man,
    one more thing,
    i have a customefield name moderator price.
    that i want to vi visible by everyone and editable only by joomla admins.
    i dont' want users or even the ad owner be able to change or edit the custom field value.

    but i want every one to see the value!
    how can i do that ?

    Thanks !
  • this is very critical for me.
    can i get a faster response ?

    Thanks
  • Hello

    >>that i want to vi visible by everyone and editable only by joomla admins.
    i dont' want users or even the ad owner be able to change or edit the custom field value.

    but i want every one to see the value!
    how can i do that ?
    -- Please just in custom fields edition enable parameter "Blocked for edition" so then only administrator will be able to edit content of custom field. Depending on parameters field can be visible on front for every user.

    Best Regards,
    Lukasz
  • isaisa
    edited September 6
    how much?
    Please give some informations of price


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    You can visit me here:
    My website for download Hidden chat for whatsapp Apps apk
    My facebook: https://www.facebook.com/allison.hadid.12
  • Hello

    >>how much?
    Please give some informations of price
    -- This is core solution available in DJ-Classifieds , there is no need to make customizations, please just set it in custom field edition

    Best Regards,
    Lukasz
Sign In or Register to comment.