![]() |
Quote:
http://forum.x-cart.com/viewtopic.php?p=128691 If you did the modification in categories.php you are probably only missing a '(' and a ')' Where it used to say Quote:
it should now say Quote:
If not the SQL query will always return more than 1 row, including the hidden category, and if the hidden category was created before the category you're viewing, the title will reflect the hidden category. HK |
Quote:
I found I had to add an 'if' too. Without it if you mark a category as hidden, then products in this category can be searched for. Try changing FROM: if($current_area == 'C') { $search_condition .= " AND $sql_tbl[categories].membership IN ('','".addslashes(@$user_account['membership'])."') AND $sql_tbl[categories].avail = 'Y'"; } TO: if($current_area == 'C' and !empty($condition)) { $search_condition .= " AND $sql_tbl[categories].membership IN ('','".addslashes(@$user_account['membership'])."') AND ($sql_tbl[categories].avail = 'Y' )"; } else { $search_condition .= " AND $sql_tbl[categories].membership IN ('','".addslashes(@$user_account['membership'])."') AND ($sql_tbl[categories].avail = 'Y' OR $sql_tbl[categories].avail='H')"; } -- Basically, only show 'H'idden category products if the search string is empty... ie; not searched for. |
Hi,
i installed this mod for version 3.5.14 How can the Hidden categories be excluded out of the Drop down menu (Category) in the advance search? TIA Saskia |
Good questions and questions
Quote:
Hmmm... Thats a good question Saskia. As you see I'm a bit of a newbie, and I was introduced to xcart in version 4.0.17. In this version they do not show up (as you can see on http://www.pchealth.ie ). Hopefully some of the oldboys can help you out. Hasse |
Re: Hidden Categories
can you hide category in v 4.1.6
|
Re: Hidden Categories
Quote:
Anybody ever found a solution for that page title "bug"? I've got everything working with the exception of the category title & page title. All the hidden categories display the category & page title of the first hidden category... 8O Any help would be very welcomed! :D Thanks in advance! UPDATE: I fixed it by changing line 179 from include/categories.php from $search_condition = "AND avail='Y' OR $sql_tbl[categories].avail='H' AND (membership='".addslashes($user_account["membership"])."' OR membership='')"; to $search_condition = "AND (avail='Y' OR avail = 'H') AND (membership='".addslashes($user_account["membership"])."' OR membership='')"; Page and category title of hidden categories are now displaying correctly :D/ |
Re: Hidden Categories
Just piping in to confirm that the "brackets" are the solution to the title issue.
|
Re: Hidden Categories
I want to apply the 501 solution but cant find that code to replace in my categories.tpl (this is in "the customer directory correct?)
here is my code can someone explain what to change Quote:
|
Re: Hidden Categories
This works good. I'm using it for MAP pricing (one distributor complained that the only way to discount is with "entering an email address to see products"). MAP for other products are not displayed until the customer logs in.
So I modified my cart so that the customer can enter their email address, then an automated email is sent with the direct link to the hidden category (with hidden products in it). |
Re: Hidden Categories
Quote:
Has anyone used this for 4.1.17? I tried to follow the codes, but the codes are not there anymore in this latest version |
All times are GMT -8. The time now is 03:26 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.