![]() |
How to Get current Category? |
Post Reply
|
| Author | |
hasnut
Newbie
Joined: 19-June-2012 Location: Dhaka Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Topic: How to Get current Category?Posted: 27-October-2012 at 5:09am |
|
Hi,
Here is the issue, I am doing design integration, and I need to know current category from header.php as left nevigation code are called inside header.php Also I need for the left category menu which category is selected so I can highlight the selected category. or is there any wiki where I can know those thing or more advance techniques working with php file directly. Thanks in advance. |
|
![]() |
|
Hamish
Admin Group
Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
Quote Reply
Posted: 27-October-2012 at 10:34am |
|
php? You mean asp! Our wiki page on integrating your design with ProductCart is here :- http://wiki.earlyimpact.com/productcart/storefront-integrate From the admin pages there are quite a few options for generating and styling the menu.
|
|
![]() |
|
hasnut
Newbie
Joined: 19-June-2012 Location: Dhaka Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 27-October-2012 at 11:13am |
|
Ops Yes, ASP.
I want to highlight, which category is being displayed in Browse by Category. In other words, I want to echo current category name before Browse by Category. I am not familiar with ProductCart, is there something that I can get the required things by API call. is something out there that I can get the current Category in product Cart? Thanks |
|
![]() |
|
hasnut
Newbie
Joined: 19-June-2012 Location: Dhaka Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 27-October-2012 at 11:14am |
|
I just cant use your generation tools, as my design includes lots of other elements or blocks that normally productcart dont offer.
|
|
![]() |
|
Hamish
Admin Group
Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
Quote Reply
Posted: 27-October-2012 at 1:03pm |
|
Hi Hasnut, ProductCart does not work that way - at all! You need to set aside the whole API mindset for creating web pages otherwise your set for a world of confusion and dead ends. It's actually (in my opinion anyway) a lot simpler than that. If you look at the ASP code you will see the asp code for a page creates the html for that page, often "including" other asp files for elements of the page.
I found when I first worked with ProductCart that a useful analogy was a sandwich - The header & footer files which are included in each page via an "Include" and these in turn handle the menus. The filling of the sandwich is the code specific to that page and to control the look of that, to start with, look at the settings in the admin panels, for example, selecting page layouts and then work on the CSS files. After that you are into custom coding of the ASP files. If you do that please (A) keep backups of the unmodified files. (B) keep notes of what you have changed/where & why. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |