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


Need help or want to talk to other developers? Join the VirtueMart Chat! Read more...

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: 1 2 [3] 4 5   Go Down
Print
Author Topic: Parameter search (dropdown)  (Read 35732 times)
korb
Quality&Testing Team
Hero Member
*
Posts: 691



WWW
« Reply #30 on: February 01, 2009, 21:37:58 PM »

It seems our main coder for this is away, maybe final examinations...
Logged

cosg2004
Newbie
*
Posts: 4


« Reply #31 on: February 02, 2009, 11:30:09 AM »

Hi Danny
But why don't like a filter like parameter search? It is very popular for IT shops... I just thought that is a possible roadmap..
The reason is that each time you select a parameter you have to wait for the page to reload even though you know beforehand you need refine the search based on more parameters.
This can be avoided with a regular search button (aka you select all params and then hit search). Again this is a minor detail so I don't insist on it.

The module works fine once the types / params have been determined for each product. I managed to do that through CSVI (the free -older edition). I got around the category / product issue (see previous posts) by assigning a "category" like parameter to each product. Again, just a walk in the park with CSVI.

Cheers, Constantine
Logged
korb
Quality&Testing Team
Hero Member
*
Posts: 691



WWW
« Reply #32 on: February 02, 2009, 17:42:40 PM »

No news about this?
Logged

korb
Quality&Testing Team
Hero Member
*
Posts: 691



WWW
« Reply #33 on: February 04, 2009, 06:24:59 AM »

I think the array error is not because of the ps_product_type.

Look at the form:
Code:
<form action="<?php echo URL ?>index.php" method="post" name="attr_search">
 <input type="hidden" name="option" value="com_virtuemart" />
 <input type="hidden" name="page" value="shop.browse" />
 <input type="hidden" name="product_type_id" value="1" />
 <input type="hidden" name="Itemid" value="<?php echo $sess->getShopItemid() ?>" />

This is not good
Code:
<input type="hidden" name="product_type_id" value="1" />
The value should be echoed and not put a default there. You cannot search a product type with other's parameters right?

And scrolling down file we have same thing
Code:
<input type='hidden' name='product_type_1_<?php echo $db->f("parameter_name"); ?>_comp' value='find_in_set' />
   <select class='inputbox' name='product_type_1_<?php echo $db->f("parameter_name"); ?>' style='width:150px'>

that
Code:
name='product_type_1_<?php echo $db->f("parameter_name"); ?>_comp'
should be
Code:
product_type_<?php echo $product_type_id?>_parameters...
That is the reason I think is not searching correctly in my install.
Danny
Logged

korb
Quality&Testing Team
Hero Member
*
Posts: 691



WWW
« Reply #34 on: February 04, 2009, 22:02:41 PM »

Next best implementation I think is much more important: remember last parameter values used in search.
Logged

VMone
Guest
« Reply #35 on: February 10, 2009, 12:41:34 PM »


In any case, can someone compile the codes in this thread that grew over the time to some latest version of codes in a new post. Actually do not really know no more where to start to pick codes.

Would be very great! Thanks!
« Last Edit: February 23, 2009, 13:54:58 PM by VMone » Logged
korb
Quality&Testing Team
Hero Member
*
Posts: 691



WWW
« Reply #36 on: February 10, 2009, 14:52:31 PM »

Good idea
Logged

VMone
Guest
« Reply #37 on: February 10, 2009, 15:02:14 PM »

................
« Last Edit: February 23, 2009, 13:55:18 PM by VMone » Logged
korb
Quality&Testing Team
Hero Member
*
Posts: 691



WWW
« Reply #38 on: February 10, 2009, 15:06:19 PM »

well, ok, I have seen that module, but if you read one of my first posts this topic, you will see a better price range idea, as a part of a filter. This module from TPlazza is nice and slick, but out of date as functionality.
Logged

VMone
Guest
« Reply #39 on: February 10, 2009, 15:13:54 PM »

Okay, just a thought...more important would be to have the current code version, as I really do not know where you are right now? I know where you are by what your last posts say, but can someone who has worked on this since some time or you compile all the enhancement done since the first post to the latest version I can test? 

Thanks!
« Last Edit: February 10, 2009, 15:18:30 PM by VMone » Logged
korb
Quality&Testing Team
Hero Member
*
Posts: 691



WWW
« Reply #40 on: February 10, 2009, 15:35:36 PM »

Ok I've seen what this module+component combo can do. Well, it is hard to predict that the code from module would work or not within our parameter search module.
First of all, as a component, it uses his own pages to display results.
I don't say it's impossible, but time is limited.
Logged

VMone
Guest
« Reply #41 on: February 10, 2009, 21:16:34 PM »

Time is limited, I know, that is why the hacks I desperately need for my store to open it, have to be done by some professionals for cash, I also would have liked to get it done with some hacks from the forum, but as my knowledge about coding is limited is some way, I will have to give it up to seek a cost free solution.

So, what I like to know is, put the tp component away again, this module what you work on here is working as it should by now or did you still tweak anything on it? The problem may be, it works with product attributes, I can't add those manually to my inventory, too many products, that is why I need some extra sort out field or a module that works without needing attributes, same with any search functions.

Still I like the idea and the example I have seen on the Yacht Homepage, that is why I asked if there is some latest version or if the one attached somewhere on the 1st page of this thread is the latest version?
Logged
szekelyz
Newbie
*
Posts: 4


« Reply #42 on: February 22, 2009, 11:10:22 AM »


Thank you for notifying me!
« Last Edit: February 24, 2009, 02:29:27 AM by szekelyz » Logged
Alt148
Newbie
*
Posts: 6


« Reply #43 on: February 23, 2009, 08:48:11 AM »

Hi Everybody,

I have modified the Search Dropdown from Cajetan Oberhaus a little. Now the module will first ask which Product Type group you want to search. And also it will remember which selections you have made.

However, I am not a professional programmer, and also not everything is working as it should be.

1. When you use a type with multiple values, there are no results.
2. I also blocking line 33 in browse_orderbyform.tpl.php in components/com_virtuemart/themes/(Your theme)/browse/includes/
"echo $ps_product_type->get_parameter_form($product_type_id);"
So the error lines are gone. (However I am not sure if it is the correct way)
3. I am also pretty sure, some code can be written better, easier!

I hope to get a good result when you select a type from the multiple values, however I am afraid that files in VM has to be altered, which I do not prefer to do.

Please I am interested in comments.

And thanks to Cajetan Oberhaus for the main part!

* mod_virtuemart_search_dropdown.zip (4.26 KB - downloaded 439 times.)
Logged
szekelyz
Newbie
*
Posts: 4


« Reply #44 on: February 23, 2009, 09:17:50 AM »

Hi Catejan!

Nice work! Congra!

 But I am interesting if you can add for the first pos. row a category drop down select option....

And Multiselect option to product type parameters.

Is it managable?!

Zsolt

Logged
Pages: 1 2 [3] 4 5   Go Up
Print
Jump to: