I'm having to edit someone else's code. He's used $current_category_id to create if statements but what I also need is a function to use in case all subcategories fall under the same top category - ie the parent category.
So instead of this:
it would something like thisCode:elseif($current_category_id == 104 || $current_category_id == 29 || $current_category_id == 41 || $current_category_id == 43 || $current_category_id == 47 || $current_category_id == 49)
I don't think any of the category functions can be used for this (but could be wrong) so writing a new function would be in order.Code:elseif($parent_category_id == 1 )
Wanted to make sure there wasn't something already usable in zen cart before I do something new.


Reply With Quote

