VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: patrik60 on October 13, 2012, 12:17:10 PM

Title: Probelm in DB table of VirtueMart Search Product module
Post by: patrik60 on October 13, 2012, 12:17:10 PM
When selectin "No" in the option "Search Button" a 0 is written into the params field:

{"width":"16","text":"Search product","button":"0","button_pos":"right","button_text":"","moduleclass_sfx":"","cache":"1","cache_time":"900"}

This 0 is then also shown in the module in the FE. See atttached pic. "button":"0" should be empty : "button":""

Or it should be possible to uncheck "No".

[attachment cleanup by admin]
Title: Re: Probelm in DB table of VirtueMart Search Product module
Post by: bytelord on October 14, 2012, 01:58:09 AM
Hello,

This one has been already fixed and will be added to the next release (probably 2.0.12c).

Regards
Title: Re: Probelm in DB table of VirtueMart Search Product module
Post by: patrik60 on October 18, 2012, 17:12:45 PM
Unfortunately it is not fixed: Now one of both options (yes or no) is always selected in the module. This means, when you had nothing selected before VM 2.0.12c it is now after updating set to "No" and the 0 is shown in the FE. No chance to prevent this now even when deleting the 0 in the DB table.

{"width":"16","text":"Search product","button":"","button_pos":"right","button_text":"","moduleclass_sfx":"","cache":"1","cache_time":"900"}
Title: Re: Probelm in DB table of VirtueMart Search Product module
Post by: bytelord on October 18, 2012, 17:24:18 PM
Hello,

Is working great for me. I did that fix before a week and i test it again now with the new release. The new code have been implemented. As you can see in your example button="", so there is no way to display it.
Please clean your browser cache and retry.
Test it with both default template and custom seach template ... both are working...
btw, did you update AIO? Do you have any template overrides for seach module?
Regards
Title: Re: Probelm in DB table of VirtueMart Search Product module
Post by: patrik60 on October 18, 2012, 17:26:46 PM
Sorry, this was my fault. I did test it with an override file instead of the new original file. Yes, it works fine! Thank you.
Title: Re: Probelm in DB table of VirtueMart Search Product module
Post by: bytelord on October 18, 2012, 17:28:38 PM
Great, it have changes in module, template file and xml file also.

Regards