Welcome, Guest. Please login or register.
Login with username, password and session length


It's a release candidate! VirtueMart 2.0 RC - the next generation VirtueMart - is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: [1]   Go Down
Print
Author Topic: Advanced Search According to Parameters - MULTI-PAGE RESULTS  (Read 9428 times)
Gideon Newell
Newbie
*
Posts: 32



« on: September 26, 2007, 19:04:39 PM »

Hello- I've got a Product Type applied to all of my Products, and I've enabled the "Advanced Search According to Parameters" (ASATP) in the module. It seems to work fine, and lets me filter searches based on the Product Type Parameters nicely. However, if the results for a given search (all BLUE products for instance) spill over to multiple pages of search results, only the first page displays accurately filtered results. In this example, it would display "Results 1 - 50 of 72" BLUE products. As soon as I click on the next page of results, it ignores the BLUE filter and instead shows me "Results 51 - 100 of 1177" (my entire inventory). When I click back to the previous results page, I'll now see "Results 1 - 50 of 1177".

Does anyone know why subsequent pages in multi-page ASATP searches aren't working for me? Thanks! (I'm running VM 1.0.12 in Joomla 1.0.12).
Logged
Kaddy
Newbie
*
Posts: 13


« Reply #1 on: September 27, 2007, 12:43:44 PM »

I have the same problem. Any suggestions?
Thanks in advance
Logged
radim
Newbie
*
Posts: 2


« Reply #2 on: September 28, 2007, 15:46:43 PM »

This seems to be a bug in VirtueMart. You can fix it, by placing following code in show.browse.php at line 153, right after line with "$search_string .=...":

      // Following provides support for advanced search by product type parameters
      if (!empty($product_type_id)){
        foreach($_REQUEST as $key => $value){
          if (substr($key, 0,13) == "product_type_"){
            $search_string .="&".$key."=".$value;
          }
        }
      }
      // --- bugfix end

It is working for me with this fix and I hope this will help you as well.
Logged
Kaddy
Newbie
*
Posts: 13


« Reply #3 on: September 29, 2007, 02:09:50 AM »

Thanks.
Is working! but no JoomSEF 2.1.0
« Last Edit: September 29, 2007, 02:29:53 AM by Kaddy » Logged
Gideon Newell
Newbie
*
Posts: 32



« Reply #4 on: September 29, 2007, 21:25:38 PM »

Thanks for the help, Rvachtl. Unfortunately, the behavior is unchanged for me.   Sad
Logged
Gideon Newell
Newbie
*
Posts: 32



« Reply #5 on: September 30, 2007, 13:19:24 PM »

Ah - I spoke too quickly. In fact, it IS fixed, thanks again Radim.

One remaining oddity that had initially confused me into thinking it hadn't worked: when you do a filtered ASATP search and get a large results set (say 800 products), then you browse to the 11th page of results (which now works!!), then you start a NEW filtered ASATP search directly from that 11th results page, only this search yields a much smaller results set (say 20 results) it will bring me to a blank page which says: "Results 551-20 of 20" (a clear impossibility). Of course all you need to do is click the 'Start' nav link to properly see the smaller results set, but it's a bit disorienting.

I don't suppose this one looks familiar to you as well? Thanks again!
Logged
radim
Newbie
*
Posts: 2


« Reply #6 on: October 01, 2007, 14:12:39 PM »

Add following into shop.browse.php at line 97, right before line with "if( $limitstart > 0 &&...":

$limitstart = mosgetparam( $_REQUEST, 'limitstart', 0 );

This seems to fix the issue.

Gideon, are you already using this e-shop for real - what is your experience with Virtuemart ?

I am now considering using the Virtuemart as our e-shop solution, but there seems to be quite a bit of bugs there.  Undecided
Logged
Gideon Newell
Newbie
*
Posts: 32



« Reply #7 on: October 01, 2007, 15:27:12 PM »

Thanks again Radim. This code change was only partially successful for me: it indeed snaps the second ASATP search to page 1 of the results, however that page appears blank (no results). Once I click on the 2, 3, next>, end >> navigation links, it behaves properly.

My application of Virtuemart is actually a little unique: My client wants a hybrid of the 'Catalog only' mode and normal checkout mode. Our site allows visitors to add $0 products to their cart, checkout (without the credit card processing step), and the resulting email message to the shopowner facilitates the scheduling of an in-home sales visit concerning the 'ordered' products. Since our products are high-end (price) this encourages transaction completions.

I haven't got a lot of alternate e-shop product experience to compare Virtuemart to (I tend to avoid e-commerce projects because of the data security concerns/responsibility) but I can wholeheartedly endorse Joomla. And I noticed that VM is the premiere e-commerce solution for the Joomla community, so I hope that recommends it for you. If it's any consolation, I understand the upcoming VM release for Joomla 1.5 addresses quite a bit of the current shortcomings.
Logged
Gideon Newell
Newbie
*
Posts: 32



« Reply #8 on: October 02, 2007, 11:50:01 AM »

I've discovered another quirky bit of behavior with ASATP search results: If I click on a product in the results pages and then add that product to my cart, I'll see the familiar << Continue Shopping and Checkout >> options. However, clicking Continue Shopping brings you to the category for the recently added product, not back to the search results page as I would expect. This might warrant its own forum topic, but I thought I'd also post it here in case it was related to the eariler codefix Radim offered. Thanks!
Logged
substral
Newbie
*
Posts: 2


« Reply #9 on: October 05, 2007, 10:14:25 AM »

Thanks Radim. It works great for me.
Logged
esedic
Jr. Member
**
Posts: 60



WWW
« Reply #10 on: September 29, 2009, 02:46:34 AM »

This is exactly what I'm looking for, only I'm using Joomla 1.5 and VM 1.1.3.

I tried this:

This seems to be a bug in VirtueMart. You can fix it, by placing following code in show.browse.php at line 153, right after line with "$search_string .=...":

      // Following provides support for advanced search by product type parameters
      if (!empty($product_type_id)){
        foreach($_REQUEST as $key => $value){
          if (substr($key, 0,13) == "product_type_"){
            $search_string .="&".$key."=".$value;
          }
        }
      }
      // --- bugfix end

It is working for me with this fix and I hope this will help you as well.

but no success.

Should this be working also on J1.5 & VM1.1.3?
Logged

Pages: [1]   Go Up
Print
Jump to: