Is it possible ...

  • Posts: 107
  • Thank you received: 0
13 years 2 months ago #6140

When a user decides to order something, he is straight away moved to the billing adress ... in my case .. I'd prefer the user to be still shopping around .. so what I'd like to achieve is to get a div showing : "keep shopping" or "checkout" ... is that possible ? and in which files should I be looking for to implement such thing ?

Please Log in or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
13 years 2 months ago #6147

You can go in the config under the display tab and change the option "After a product is added to the cart" to "stay and display a popup notice"

Please Log in or Create an account to join the conversation.

  • Posts: 107
  • Thank you received: 0
13 years 2 months ago #6154

thanks for that ... is it possible to change the time the popup is displaying somewhere ?

Please Log in or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
13 years 2 months ago #6155

You can edit the notice popup following this post instructions:
www.hikashop.com/fr/support/forum/4-how-...ng-address.html#4578

Please Log in or Create an account to join the conversation.

  • Posts: 107
  • Thank you received: 0
13 years 1 month ago #6838

About the search plugin ?

Which fields are included in the site search, I thought variations would be taken but it doesn't seem to ... though meta keywords would be ? but it doesn't seem to be taken neither ...
Is it planned to be ?

Please Log in or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
13 years 1 month ago #6840

Indeed, only the product name and product description are used for the search plugin.

If you want to add the keywords in the search, you should edit the file plugins/search/hikashop_products.php and
after the line:
$filters[] = "a.product_description LIKE ".$text;
add a line:
$filters[] = "a.product_keywords LIKE ".$text;

and change the code:
$wordFilters = array();
$subWordFilters1 = array();
$subWordFilters2 = array();
$wordFilters2 = array();
foreach ($words as $word) {
$word = $db->Quote( '%'.$db->getEscaped( $word, true ).'%', false );
$subWordFilters1[] = "a.product_name LIKE ".$word;
$subWordFilters2[] = "a.product_description LIKE ".$word;
if($multi){
$wordFilters2[] = "b.value LIKE ".$word;
}
}
$wordFilters[0]= '(' .implode( ($phrase == 'all' ? ') AND (' : ')
OR ('),$subWordFilters1). ')';
$wordFilters[1]= '(' .implode( ($phrase == 'all' ? ') AND (' : ')
OR ('),$subWordFilters2). ')';
$filters[] = '(' . implode( ') OR (', $wordFilters ) . ')';
if($multi){
$filters2[] = '(' . implode( ($phrase == 'all' ? ') AND (' : ')
OR ('), $wordFilters2 ) . ')';
}

to:
$wordFilters = array();
$subWordFilters1 = array();
$subWordFilters2 = array();
$subWordFilters3 = array();
$wordFilters2 = array();
foreach ($words as $word) {
$word = $db->Quote( '%'.$db->getEscaped( $word, true ).'%', false );
$subWordFilters1[] = "a.product_name LIKE ".$word;
$subWordFilters2[] = "a.product_description LIKE ".$word;
$subWordFilters3[] = "a.product_keywords LIKE ".$word;
if($multi){
$wordFilters2[] = "b.value LIKE ".$word;
}
}
$wordFilters[0]= '(' .implode( ($phrase == 'all' ? ') AND (' : ')
OR ('),$subWordFilters1). ')';
$wordFilters[1]= '(' .implode( ($phrase == 'all' ? ') AND (' : ')
OR ('),$subWordFilters2). ')';
$wordFilters[2]= '(' .implode( ($phrase == 'all' ? ') AND (' : ')
OR ('),$subWordFilters3). ')';
$filters[] = '(' . implode( ') OR (', $wordFilters ) . ')';
if($multi){
$filters2[] = '(' . implode( ($phrase == 'all' ? ') AND (' : ')
OR ('), $wordFilters2 ) . ')';
}


The problem is that the more fields we add in the search and the longer the queries will take. We need to look at a better solution in the future...

Please Log in or Create an account to join the conversation.

  • Posts: 107
  • Thank you received: 0
13 years 1 month ago #6870

That's great .. exactly what I was looking for .. sometimes users may not look for the right product name, and you need to be more general for them to find the product, keywords are the way to do it !

thank you :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum