S
S
Sergey2016-03-13 00:42:36
Joomla
Sergey, 2016-03-13 00:42:36

JoomShoping Why doesn't advanced feature search work?

Put the search module (standard), it works. There is a button to go to advanced search.
This page has all sorts of things like price ranges, dates, sections, and features.
The choice of characteristics does not affect the search in any way, it shows all products. the required values ​​are passed to $_POST.
Nobody faced it?
UPD
File components/com_jshopping/models/searchrequest.php $post['extra_fields'] is not passed to the code

public function getExtraFields(){
    $jshopConfig = JSFactory::getConfig();
    if ($jshopConfig->admin_show_product_extra_field){
            if (isset($post['extra_fields'])) 
                $extra_fields = $post['extra_fields'];
            else
                $extra_fields = array();
            $extra_fields = filterAllowValue($extra_fields, "array_int_k_v+");
        }else{
      $extra_fields = array();
    }
    return $extra_fields;
  }

In Joomla, the $post variable somewhere does not properly handle getting $_POST

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-03-13
@gangstarcj

In general, it was necessary to replace $post['extra_fields'] with $this->request['extra_fields']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question