Forum Replies Created
-
AuthorPosts
-
skempenaar
Participantexample when somebody fills in (see example) the result with “uitverkocht” which means sold out should be on the bottom.
skempenaar
ParticipantHi Ernets,
Thx for your response. looks like this does not work. maybe a different solution could be more fitting.
atm im using the code below to hide out of stock products from the resultbox from ajax search pro.could it be possible that the out of stock items are not hidden but the do appear. but since they are out of stock their relevance is 0. Which results that the show on the bottom of the result box.
// —- Ajax SEARCH PRO – Hide out of stock—-
add_filter( ‘asp_pagepost_results’, ‘asp_stock_status_filter’, 1, 1 );
function asp_stock_status_filter( $pageposts ) {
foreach ($pageposts as $k=>$v) {// Get the stock status
$stock_status = get_post_meta( $v->id, ‘_stock_status’, true);if ( empty($stock_status) || $stock_status == “instock” )
continue;unset($pageposts[$k]);
}return $pageposts;
}skempenaar
Participantah crap an RTFM. so sorry for this. thx!
skempenaar
Participantlike in the example.
skempenaar
ParticipantHi Ernest,
thx ill disable grouping untill next release then.
skempenaar
Participantor show out of stock term in the results box?
skempenaar
Participantnevermind i found the solution
skempenaar
ParticipantHi ernst,
still thinks that aren’t working 100%. for example.
when a costumer filles in “boeken van bram kasse” the results islink: https://cl.ly/1320ea08d64c/Schermafbeelding%2525202019-11-29%252520om%25252018.28.05.png
i want them to see this;
https://cl.ly/d7fd17b3bd24/Schermafbeelding%2525202019-11-29%252520om%25252018.28.45.pngi’ve tried to ad stop words to the index but that did nog fix it.
skempenaar
Participantthx. this indeed fixed the problem. could i experience other problems, since this is not a recommend setting?
An other issue i came across is this. if i insert an author name of books the like “Willemijn de Weerd” the dropdown results are quite random after the first hit. i would like it to be based on newest title. can’t find the option to fix this.
fyi: the post date match the book release date.
yet again you amaze me with the great response time.
https://www.royaljongbloed.com/nl/
-
This reply was modified 6 years, 7 months ago by
skempenaar.
-
This reply was modified 6 years, 7 months ago by
skempenaar.
skempenaar
Participantallready rated it 5 stars and im totaly sticking to that. only thing i can do now is comment that renew support is really worth it.
skempenaar
Participantgreat! thx this indeed fixed it. Done it now on production 2
great support totally worth the money. -
This reply was modified 6 years, 7 months ago by
-
AuthorPosts