Forums / Templates, Stylesheets, Page Layout / Links to header images + Hide categories + disable reg and keep cart

Links to header images + Hide categories + disable reg and keep cart

Locked

Started by mad_griffith on 14 Dec 2007, 5:51 PM · Views: 6,121

Results 1 to 20 of 32
This thread is locked. New replies are disabled.
14 Dec 2007, 5:51 PM
#1
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Links to header images + Hide categories + disable reg and keep cart

Hi! This the cart I'm working on, for reference. I've got a bunch of questions:

  1. How may I give those "Home" and "About Us" images a link? Please note they are edited blank_sideboxes.

  2. Is there a way to completely hide the categories tree under that "Gallery" image?

  3. I would like to disable the account-registration feature, while keeping the cart feature active. Is it doable somehow?

Thanks a lot in advance!

14 Dec 2007, 6:00 PM
#2
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Links to header images + Hide categories + disable reg and keep cart

For what concerns the first question, please also note that I made a special mod that enables you to replace text with images if the images name matches that one of the module (e.g.: boxhead-categories.jpg).

14 Dec 2007, 6:07 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Links to header images + Hide categories + disable reg and keep cart

The Home box has a link, but it is around the content which is empty. Both of the boxes have the image in the heading, so that is where you will need to add the link code.

You can turn off the categories box in Tools > Layout Boxes Controller.

You can require approval to register through admin, but to remove the option you will need to edit php files.
You could remove the option display by hiding it with css display: none; in all the places it appears.

So you made a mod like Image Titles? :)
Working from Khopek's thread? In case it it not posted there, there is an enhancement in the finished mod that passes along a link if it exists in the individual original title.

14 Dec 2007, 6:18 PM
#4
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Links to header images + Hide categories + disable reg and keep cart

gjh42:

The Home box has a link, but it is around the content which is empty. Both of the boxes have the image in the heading, so that is where you will need to add the link code.

The problem is I applied this mod, so I don't know how to have direct control over the single images and apply the link...

You can turn off the categories box in Tools > Layout Boxes Controller.

But I would like to keep the "Gallery" image. So the only way for me is to make a new sidebox?

You can require approval to register through admin, but to remove the option you will need to edit php files.
You could remove the option display by hiding it with css display: none; in all the places it appears.

Will do, thanks a bunch.

So you made a mod like Image Titles? :)

I meant that I found a code here on this forum and made that edit. Sorry, my english is not perfect.

14 Dec 2007, 6:27 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Links to header images + Hide categories + disable reg and keep cart

You will need to add the link code in the box file that feeds tpl_box_default_left.php, for each of those sideboxes.

I didn't realize that the Gallery image was the categories box heading. You can use
#categoriesContent {display: none;}
to hide the list while keeping the heading.

That code is the base of what became Image Titles. It does have the link-passing ability.

14 Dec 2007, 6:45 PM
#6
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Links to header images + Hide categories + disable reg and keep cart

gjh42:

You will need to add the link code in the box file that feeds tpl_box_default_left.php, for each of those sideboxes.

That code is the base of what became Image Titles. It does have the link-passing ability.

Ok, I've installed Image Titles 1.1. I don't know how to put links nor where to put them. The readme file that comes with Image Titles doesn't explain that.

14 Dec 2007, 6:49 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Links to header images + Hide categories + disable reg and keep cart

Actually, you were fine with the mods you did yourself. Creating new links is not part of the Image Titles function. You will need to edit your sidebox files for that. Look at the files for another sidebox that has a title link for an example.
($title_link is the variable used to pass this, so a search on that in the Developers Toolkit may help.)

14 Dec 2007, 7:21 PM
#8
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Links to header images + Hide categories + disable reg and keep cart

ok, I've found the $title_link thingy (for the What's New module it is FILENAME_PRODUCTS_NEW), now I just need to know where the link must be specified. Can you link the Developers Toolkit to me, please?

14 Dec 2007, 8:15 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Links to header images + Hide categories + disable reg and keep cart

The Developers Toolkit is in your admin > Tools.
Paste your text in the lower left box, select all files and search. The results will show every file that has that text, with the line number.

14 Dec 2007, 10:38 PM
#10
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Links to header images + Hide categories + disable reg and keep cart

I found a lot of references. I found this one in particular:

Line #127 : define('FILENAME_PRODUCTS_NEW', 'products_new');

in filenames.php

Then, I tried to search "products_new" but couldn't understand where to change the "a href"...

14 Dec 2007, 10:48 PM
#11
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Links to header images + Hide categories + disable reg and keep cart

Ok, I've solved this: I didn't know I could edit that $title_link directly. :)

15 Dec 2007, 4:57 PM
#12
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Links to header images + Hide categories + disable reg and keep cart

How do I...

  1. the "What's New" displaying from a subcategory?

  2. change the layout of the product listing? I would like to put the price right under the picture image.

  3. show the size of a picture in the product page? I would also like customers to browse among specified picture sizes.

  4. disable reviews from customers?

Thanks a lot :)

15 Dec 2007, 5:07 PM
#13
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Links to header images + Hide categories + disable reg and keep cart

Related to no.2: I would also make so that each product is listed next to the other.

15 Dec 2007, 6:14 PM
#14
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Links to header images + Hide categories + disable reg and keep cart

  1. Admin > Configuration > Index Listing > choose what centerboxes are shown on various listing pages.

  2. Get the Column Layout Grid mod from Downloads.

  3. The product description (the first 150 characters by default) is shown in the listing if it is enabled in admin. You are showing a very short description consisting of the title (model) repeated twice. Enter some readable text and it will show up in the listing.

  4. Catalog > Product Types > Product-General > edit layout > Show Product Reviews Button

16 Dec 2007, 5:27 PM
#15
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Links to header images + Hide categories + disable reg and keep cart

gjh42:

  1. Get the Column Layout Grid mod from Downloads.

I've installed it but now I can't add products anymore. When I click on "new product" button inside a category via AdminCP, It shows this error:

Not Found

The requested URL /admin/piccolimediformati.php was not found on this server.

No matter what category I try to insert a new product in, it keeps showing me that error.

16 Dec 2007, 8:05 PM
#16
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Links to header images + Hide categories + disable reg and keep cart

I guess there must have been some error when running the SQL patch, though I don't know how that would have affected access to /admin/piccolimediformati.php.

The files in Column Grid could not possibly have such an effect.

You should probably post in the (a) Column Grid support thread in the "other contributions" forum.

16 Dec 2007, 8:15 PM
#17
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Links to header images + Hide categories + disable reg and keep cart

gjh42:

I guess there must have been some error when running the SQL patch, though I don't know how that would have affected access to /admin/piccolimediformati.php.

The files in Column Grid could not possibly have such an effect.

You should probably post in the (a) Column Grid support thread in the "other contributions" forum.

yeah, thanks, I did that some hours ago. Do you know how to generally delete SQL commands?

This is what I was requested to type by the Column Layout Grid mod:

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, 
       configuration_description, configuration_group_id, sort_order, 
       last_modified, date_added, use_function, set_function) 
       VALUES ('Product Listing - Layout Style', 'PRODUCT_LISTING_LAYOUT_STYLE', 'rows', 
               'Select the layout style:<br />Each product can be listed in its own row (rows option)
                or products can be listed in multiple columns per row (columns option)', '8', '40', NULL, 
                now(), NULL, 'zen_cfg_select_option(array(\'rows\', \'columns\'),');

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, 
       configuration_description, configuration_group_id, sort_order, 
       last_modified, date_added, use_function, set_function) 
       VALUES ('Product Listing - Columns Per Row', 'PRODUCT_LISTING_COLUMNS_PER_ROW', '3', 
               'Select the number of columns of products to show in each row in the product listing.  
               The default setting is 3.', '8', '41', NULL, now(), NULL, NULL);
16 Dec 2007, 9:46 PM
#18
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Links to header images + Hide categories + disable reg and keep cart

Sorry, I haven't yet done more than dip my toe in the SQL pool. I know what you want can be done, but I wouldn't venture to tell you how.

22 Dec 2007, 4:19 PM
#19
mad_griffith avatar

mad_griffith

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Links to header images + Hide categories + disable reg and keep cart

I solved that problem.

I've got more questions now... :D

  1. I don't want the "read more" text-link nor the "sold out" image to show up in the product listing

  2. I don't want the "tell a friend" nor the "sold out" pictures to show up in the product page

  3. After loading a picture of the product throughout the built-in uploader in the "new product" page, the picture doesn't show up. It keeps on showing the default "no picture inserted" image. Seems it does not import the picture... I wonder why...

Thanks a lot for helping...