Jump to content

 

rcaubin

Member Since 11 Jul 2008
Offline Last Active Nov 19 2008 08:08 PM
-----

Posts I've Made

In Topic: Categorys Image

01 October 2008 - 01:20 AM

... to get it on the top I run into a problem....


Are you attempting to move the category image from the bottom of the description so that it is displayed directly to the left of the description?

I would also like help with this. The image appears lost down there

In Topic: 1.35sp3 Mod: How to turn off category products from showing.

30 July 2008 - 04:07 AM

Sorry about that guys :)

My site is still under development, but let's see if I can clarify it a little further.

The default behavior of any category's landing page is to show it's products below the full description.

Look at this website for example when you click on the diamonds category:
http://www.mondera.com/

Diamonds having loose diamonds as the primary category's product also has MANY subcategories (diamonds pendants, diamond earrings, engagement rings)

Because there's no point in showing a visitor all loose diamonds when more than likely they are interested in a very select group of them, turning off default product showing for this category is required.

The diamonds category is pretty much used as a place holder for within the category system. Displaying diamonds as products on this category's page would defeat the purpose of the website visitor's purchasing path that the company chooses (custom subcategory layout, predefined search results, etc...)

And setting up an option with Yes or No (default Yes) to show products maintains the original functionality of the CS-cart category system that will still be used by other categories not needing a custom layout.

Simple insert the custom landing page html in the Full Description and voila...

This option serves its purpose for now... However ideally what I'm going to code once our skin is done is a custom landing page admin addon for categories instead of using the built in behavior...

custom product details pages addon idea (I like brainstorming)
Each category can have it's own product details page that will be applied to all products in the category, otherwise use product, otherwise use default
Each product can have it's own product details page, otherwise use category, otherwise use default.

In Topic: Help with custom Addon (maybe community project)

24 July 2008 - 07:15 PM

I'd like to know how to properly build an addon using the cs-cart/addons folder structure

What's required to make an addon "live" once the files are in place

In Topic: Add a Tab to the top of your menu!

14 July 2008 - 05:02 AM

The first block of code was taken out of customer/top_menu.tpl and inserted into buttons/top_menu_tab.tpl with a few new $variables: $title, $target, $mode

Then adding a new tab to the top menu is as easy as adding this in top_menu.tpl
{include file="top_menu_tab.tpl" title=$lang.variable target=value mode=value}

I come from an object oriented programing background, and it just seemed logical to take the tab button completely out of the tab strip and make it its own entity.

The only real requirement is the title value. If no target and mode are supplied, the home page is returned.

If someone could rewrite the code that appears in top_menu_tab.tpl to properly construct the link url to only append the target and/or mode parameters if they are included, currently if they are left out, the url will look like: index.php?target=&mode= which is kind of ugly.

Create the following file: /customer/buttons/top_menu_tab.tpl

<div class="top-menu{$but_active}-left-bg">
    <div class="top-menu{$but_active}-right-bg">
        <div class="top-menu{$but_active}-bg" onclick="fn_redirect('{$index_script}?{$target}={$target}&{$mode_name}={$mode')">
            <a href="{$index_script}?{$target_name}={$target}&{$mode_name}={$mode}" class="top-menu-title">{$title}</a>
        </div>
    </div>
</div>

And here's how I use it within customer/top_menu.tpl

{* $Id: top_menu.tpl 3838 2007-09-05 07:49:51Z zeke $ *}

<div class="wrapper-top-menu-left">
<div class="wrapper-top-menu-right">
<div class="wrapper-top-menu">
	<div class="logo-image-wrapper">
		<a href="{$index_script}"><img src="{$images_dir}/{$manifest.Customer_logo.filename}" width="{$manifest.Customer_logo.width}" height="{$manifest.Customer_logo.height}" border="0" alt="{$settings.Company.company_name}" /></a>
	</div>
	<div class="top-menu-tabs-wrapper">
		<div class="float-right">
			{include file="top_quick_links.tpl"}
		</div>
		<div class="top-menu-tabs">
			{if $target == 'checkout' || $mode == 'cart'}
				{assign var='but_active' value='-active'}
			{else}
				{assign var='but_active' value=''}
			{/if}
			{include file="buttons/top_menu_tab.tpl" title=$lang.view_cart target="checkout" mode="cart"} 

			{if $target == 'profiles' || $target == 'auth'}
				{assign var='but_active' value='-active'}
			{else}
				{assign var='but_active' value=''}
			{/if}

			{if $auth.user_id}
	            {include file="buttons/top_menu_tab.tpl" title=$lang.my_account target="profiles" mode="update"} 
			{else}
	            {include file="buttons/top_menu_tab.tpl" title=$lang.my_account target="auth" mode="login_form"}     
			{/if}

			{if $mode == 'catalog' || $target == 'products' || $target == 'categories' || $target == 'manufacturers'}
				{assign var='but_active' value='-active'}
			{else}
				{assign var='but_active' value=''}
			{/if}
            {include file="buttons/top_menu_tab.tpl" title=$lang.catalog mode="catalog"} 

			{if $target == '' && $mode == ''}
				{assign var='but_active' value='-active'}
			{else}
				{assign var='but_active' value=''}
			{/if}
			{include file="buttons/top_menu_tab.tpl" title=$lang.home}            
		</div>
	</div>
</div>
</div>
</div>

and here's the output from the smarty template debugger showing that there four tabs being included:

top.tpl (0.00662)
top_menu.tpl (0.00372)
top_quick_links.tpl (0.00195)
addons/promotions/top_quick_links.tpl (0.00036)
top_menu_tab.tpl (0.00023)
top_menu_tab.tpl (0.00021)
top_menu_tab.tpl (0.00021)
top_menu_tab.tpl (0.00021)

In Topic: 1.3.6 Feature List

11 July 2008 - 07:39 PM

I vote for Layered Navigation, like Magento Commerce is doing (www.magentocommerce.com)


Feature Sets (aka in Magento: Attribute Sets) with scope option (apply set to product/category/global/etc)

This will make managing features and applying them to groups of products a breeze.