I am currently at the early stages of creating an online store through Google Checkout. As of this writing, my current couch implementation plan is as follows:
store.php:

This is the storefront where all the products(picture, name, and price) are displayed. It is not clonable. It has sidebar links for viewing the products by category and manufacturer. These filters are only meant to be used separately, not together. The list tag of the currently selected category or manufacturer is bolded and has a different background color. "All Products" is the default selection for this page.
products.php:
This page is clonable and has dynamic folders enabled. It has both folder views and page views within it. The list view of this page however redirects to store.php.
An example of how a cloned page currently is being placed using the folders is as follows:
"http://www.example.com/products/category-1/company-1/item-name.html"
In the folder view I have been listing the categories as so:
How could I specify a class or id for the currently selected category? I have not managed to come up with functioning code for the manufacturers list either. I'm starting to think my implementation is fundamentally flawed. At the moment I can only show the manufacturer's products within the context of a category(http://www.example.com/category-1/company-1/), not excluding the category(http://www.example.com/company-1/). I also can't account for the scenario whereby there is a manufacturer with products in more than one category. This would seemingly generate duplicate manufacturer listings.
Apologies if my explanation has been somewhat haphazard, I have been racking my brain for many hours trying to come up with solutions for some of the problems mentioned and unmentioned that I have encountered. I am probably over-complicating this and missing a simpler method. I would greatly appreciate it if KK or anybody with a fresh perspective could give me some suggestions. Either way I will restart my efforts tomorrow, I'm sure sleep will help.
store.php:

This is the storefront where all the products(picture, name, and price) are displayed. It is not clonable. It has sidebar links for viewing the products by category and manufacturer. These filters are only meant to be used separately, not together. The list tag of the currently selected category or manufacturer is bolded and has a different background color. "All Products" is the default selection for this page.
products.php:
This page is clonable and has dynamic folders enabled. It has both folder views and page views within it. The list view of this page however redirects to store.php.
- Code: Select all
<cms:template title='Products' clonable='1' dynamic_folders='1'></cms:template><cms:if k_is_page >
Page View Here
<cms:else /><cms:if k_is_folder >
Folder View Here
<cms:else /><cms:redirect url="<cms:link 'store.php' />" permanently='1' /></cms:if></cms:if>
An example of how a cloned page currently is being placed using the folders is as follows:
"http://www.example.com/products/category-1/company-1/item-name.html"
In the folder view I have been listing the categories as so:
- Code: Select all
<cms:folders depth='1'><li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a></li></cms:folders>
How could I specify a class or id for the currently selected category? I have not managed to come up with functioning code for the manufacturers list either. I'm starting to think my implementation is fundamentally flawed. At the moment I can only show the manufacturer's products within the context of a category(http://www.example.com/category-1/company-1/), not excluding the category(http://www.example.com/company-1/). I also can't account for the scenario whereby there is a manufacturer with products in more than one category. This would seemingly generate duplicate manufacturer listings.
Apologies if my explanation has been somewhat haphazard, I have been racking my brain for many hours trying to come up with solutions for some of the problems mentioned and unmentioned that I have encountered. I am probably over-complicating this and missing a simpler method. I would greatly appreciate it if KK or anybody with a fresh perspective could give me some suggestions. Either way I will restart my efforts tomorrow, I'm sure sleep will help.
