Length of category name

General Support for technical Issues relating to AlegroCart
Post Reply
Delpfine
Posts: 142
Joined: Fri Feb 08, 2013 3:47 pm
Location: Austin, TX

Length of category name

Post by Delpfine » Sat Feb 09, 2013 2:02 pm

Is there someplace that I can change the 32 character limit on a category name? I am experimenting with using subcategories as products so that I can display many images for a single category. For example, for the category Bracelets, I want the customer to see images of all the available bracelets. Then they would click on an image to drill down into the product information. I would like the subcategory name to be longer so that it can accomodate the product name.

This seemed like an easy way to get the look that I want without changing code. However, if you have another suggestion as to how to easily display all the products in a category with only the image and the product name, I'm open to that! Thanks!!

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Length of category name

Post by Brent » Sat Feb 09, 2013 4:13 pm

The category name would require a database length change as well as many other change in admin.
Could you not just use the products themselves and set the display in category to display say 5 columns

Delpfine
Posts: 142
Joined: Fri Feb 08, 2013 3:47 pm
Location: Austin, TX

Re: Length of category name

Post by Delpfine » Sun Feb 10, 2013 8:35 am

Where do I set the number of columns? I'm not finding it. Thanks.

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Length of category name

Post by Brent » Sun Feb 10, 2013 9:59 am

extension/ modules/ catalog catergory options.

You have this disabled, but the number of columns cane still be set.
Status: disabled
Default Number of Display Columns: 5
Lock Column Display to Default: enabled

Once you have set, you need to exit your browser and start a new session before it will actively make the change.

Delpfine
Posts: 142
Joined: Fri Feb 08, 2013 3:47 pm
Location: Austin, TX

Re: Length of category name

Post by Delpfine » Sun Feb 10, 2013 10:58 am

When I enabled the category options module, I got this error:

Parse error: syntax error, unexpected '}' in /hermes/bosweb/web034/b347/sl.delpfine/public_html/shop/catalog/template/default/shared/multiple_columns.tpl on line 92

All I did was enable the module and restart the browser.

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Length of category name

Post by Brent » Sun Feb 10, 2013 11:22 am

re-upload that file from the distribution. It must be corrupt as there is no } in line 92.
catalog/template/default/shared/multiple_columns.tpl

Delpfine
Posts: 142
Joined: Fri Feb 08, 2013 3:47 pm
Location: Austin, TX

Re: Length of category name

Post by Delpfine » Sun Feb 10, 2013 11:58 am

That fixed it and solved the blank results screen problem, too!! Is there a way to turn off the product description on the category page and have it only show up on the drill down?

Thanks for being so patient with me, Brent. I really appreciate it.

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Length of category name

Post by Brent » Sun Feb 10, 2013 4:14 pm

In the file you just up loaded on line 51 to 53, change to this:

Code: Select all

 <!--   <div class="product_desc"<?php if($columns == 3){?> style="min-height: 50px;"<?php }?>>
      <?php //echo "<span style=\"font-size: ".$font_size."px\">" . $product['description'] . "</span>"; ?>
	</div>--></div> 
We just commented out the echo for description and the div that contains it. Note, the last DIV is not inside the comment.

Delpfine
Posts: 142
Joined: Fri Feb 08, 2013 3:47 pm
Location: Austin, TX

Re: Length of category name

Post by Delpfine » Mon Feb 11, 2013 11:39 am

Thanks, Brent. That did it!

Post Reply