| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Hidden Categories | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Hidden Categories
Just to tidy up John's beautiful mod
http://forum.x-cart.com/viewtopic.php?t=11326 I have successfully applied it to X-Cart 4.0.17 with X-Fancy-Category All that needed to be done is: /skin1/admin/category_modify.tpl Find: Code:
Replace with: Code:
and /include/categories.php Find: Code:
Replace with: Code:
Hope you find this helpful. HK
__________________
Hasse |
|||||||
#2
|
|||||||||
|
|||||||||
Unless I'm missing something, the products added to the hidden category would not appear while trying to view the hidden category. fablot had the right idea in the other thread about adding to the search_condition in include/search.php. Now the products appear for me. This is with 4.0.18. Can anyone verify this is the correct adjustment to not adversely affect other product searches?
|
|||||||||
#3
|
|||||||||
|
|||||||||
HK - hansmoen,
nice work, i am on a fairly fresh install of 4.0.17 and NOT using fancy cats, but the code posted earlier by tanabemike was not working for me. it seemed to work, but after more testing/browsing, some goofy things started to happen. sorry, not enough time to go into it. i was about to scrap the mod, but your code made it all better. many thanks!
__________________
X-Cart Gold 4.0.17 & 4.0.18 Linux Server Hands-On Hosting http://www.CoreCases.com - Ipod Cases http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need |
|||||||||
#4
|
|||||||
|
|||||||
Quote:
It works no problem on 4.0.17. Don't know about previous or later versions, but you can see it working on http://testsrv.pchealth.ie Take a look in "End of life" items under "Specials". You will also see this item if you do a search for "wow". And Thanks Thundernugs! Glad you found it useful! HK |
|||||||
#5
|
|||||||||
|
|||||||||
Great mod.... Would love to add this to my x-cart I'm currently updating but it doesn't seem to work with the newest X-cart 4.1.0 (RC3) version any ideas?
|
|||||||||
#6
|
|||||||
|
|||||||
(v4.0.17) --- Plus you will need to add
<OPTION value="H"{if $subcategories[cat_num].avail eq "H"} selected{/if}>Hidden</OPTION> below <OPTION value="Y"{if $subcategories[cat_num].avail eq "Y"} selected{/if}>{$lng.lbl_yes}</OPTION> <OPTION value="N"{if $subcategories[cat_num].avail eq "N"} selected{/if}>{$lng.lbl_no}</OPTION> in skin1/admin/main/categories.tpl
__________________
Version 4.0.18 |
|||||||
|
|||
X-Cart forums © 2001-2020
|