| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Hidden Categories | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#51
|
|||||||
|
|||||||
![]() 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 |
|||||||
#52
|
|||||||
|
|||||||
![]() 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.
__________________
Version 4.0.18 |
|||||||
#53
|
|||||||
|
|||||||
![]() 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 |
|||||||
#54
|
|||||||
|
|||||||
![]() 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 |
|||||||
#55
|
|||||||||
|
|||||||||
![]() can you hide category in v 4.1.6
__________________
Web Design Web Design and Custom X-Cart Projects http://www.dataviking.com Mention the forums for discounts! x-cart Version 4.1.8 |
|||||||||
#56
|
|||||||
|
|||||||
![]() 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... ![]() Any help would be very welcomed! ![]() 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 ![]()
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#57
|
|||||||||
|
|||||||||
![]() Just piping in to confirm that the "brackets" are the solution to the title issue.
|
|||||||||
#58
|
|||||||
|
|||||||
![]() 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:
__________________
xcart 4.1.6 unix server |
|||||||
#59
|
|||||||
|
|||||||
![]() 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).
__________________
----------------------- x-cart v4.7.6 [LIVE] x-cart v4.0.18 [retired 2004-2016] x-cart v3.5.13 [retired] x-cart v3.4.14 [retired] |
|||||||
#60
|
|||||||
|
|||||||
![]() 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
__________________
X-Cart Gold version 4.4.4 X-Cart directory /home/web/u/ugchweb/cart PHP 5 MySQL server 5 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|