Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How to remove attribute name below attribute picture?

How to remove attribute name below attribute picture?

Locked

Views: 3,662

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
31 Aug 2010, 9:29 AM
#1
alexanderk avatar

alexanderk

New Zenner

Join Date:
Feb 2010
Posts:
16
Plugin Contributions:
0

How to remove attribute name below attribute picture?

Hello,

I have a small problem regarding the removal of the attribute name below the attribute picture.

Take a look at this page:
http://sogrenibikes.com/index.php?main_page=product_info&cPath=3&products_id=19

Go to the attribute at the bottom called 'kickstand' with the options no thanks and yes. I would like to remove the text below the pictures.

I have tried using the developers toolkit to figure out where to delete/replace some code, but the only place I have found is includes/modules/attributes on line 245... And I am not sure where to look.

Anyway, it would be perfect if anyone could give me a hint on where to look. :smile:

Thank you so much!
Alexander

2 Sep 2010, 6:38 PM
#2
alexanderk avatar

alexanderk

New Zenner

Join Date:
Feb 2010
Posts:
16
Plugin Contributions:
0

Re: How to remove attribute name below attribute picture?

Bump :oops:

2 Sep 2010, 10:45 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove attribute name below attribute picture?

Edit the Option Name for:
Handmade Pedals

Look and see what your settings are for that ...

Then, edit the Option Name for:
Kickstand

What settings are you using here? If you change them to the same as for the Handmade Pedals, does this correct the problem? :unsure:

3 Sep 2010, 8:06 AM
#4
alexanderk avatar

alexanderk

New Zenner

Join Date:
Feb 2010
Posts:
16
Plugin Contributions:
0

Re: How to remove attribute name below attribute picture?

Thanks so much for taking the time to answer, but maybe I wasn't clear enough.

The option name etc. is no problem, all is working fine.

I would just like to remove the text below the pictures :smile:

3 Sep 2010, 3:52 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove attribute name below attribute picture?

If you go to the Option Name for Kickstand and edit it ... you will see the comments that are posted for that Option Name ... I believe that is where you have set the text ...

6 Sep 2010, 11:37 AM
#6
alexanderk avatar

alexanderk

New Zenner

Join Date:
Feb 2010
Posts:
16
Plugin Contributions:
0

Re: How to remove attribute name below attribute picture?

Sure! But I would like to keep that.

I only want to delete the name in the code where it is located below the pictures... No where else.

<br class="clearBoth" /> <div class="attribImg"><img src="images/attributes/kickstand.jpg" alt="" width="450" height="335" /><br />Yes</div> <br class="clearBoth" /> <div class="attribImg"><img src="images/attributes/kickstand-bike.jpg" alt="" width="450" height="335" /><br />No thanks</div>

I would just like to delete the "yes" and "no" and replace them with a blank space. But I can't seem to find it in the files!

Thank you :)

6 Sep 2010, 2:34 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove attribute name below attribute picture?

I don't have a trick for that one ... you would need to customize the code for that product to not show the text associated with the image ...

One thing you could try is see where your Additional Images show and add those images as Additional images to the Products and if that is at the bottom ... since Kickstand is at the bottom ... they would show underneath it without the text below them ...

Then, just remove the images from the Attributes and it would give the illusion of showing as part of the Kickstand ...

7 Sep 2010, 10:46 PM
#8
alexanderk avatar

alexanderk

New Zenner

Join Date:
Feb 2010
Posts:
16
Plugin Contributions:
0

Re: How to remove attribute name below attribute picture?

Hmm... I think that I am not making myself clear enough, still.

There is going to be images below all the attributes, so that method won't work, unfortunately.

There must be some place in the code saying that the option name should be displayed in the div with the class AttribImg? That's all! :)

8 Sep 2010, 1:48 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove attribute name below attribute picture?

You have 2 images on the 2 Option Values for the Kickstand ...

You do not want to see the Option Value Name under them ...

There is not a div or anything to hide that ... look at the View Source ...

My work around was, "since" the Kickstand Option Name is on the "bottom" of the page ... could you try to add the Kickstand images to the Product as "additional images" which should show on the "bottom" of the page ... so they "appear" to be part of the Kickstand Option Name ... when really they are Additional Images ...

8 Sep 2010, 6:35 AM
#10
alexanderk avatar

alexanderk

New Zenner

Join Date:
Feb 2010
Posts:
16
Plugin Contributions:
0

Re: How to remove attribute name below attribute picture?

I see, and it's a great way to do it, if it was only for the kickstand. But unfortunately, it's not :blush:

As I quoted before, as far as I can see, the code around the text looks like:

<br class="clearBoth" /> <div class="attribImg"><img src="images/attributes/kickstand.jpg" alt="" width="450" height="335" /><br />Yes</div> <br class="clearBoth" /> <div class="attribImg"><img src="images/attributes/kickstand-bike.jpg" alt="" width="450" height="335" /><br />No thanks</div>

When I search for "<div class="attribImg">" in the developers toolkit, "/home/sogreni/public_html/includes/modules/attributes.php" pops up with 13 lines all having "<div class="attribImg">" in them.

I just don't know where to delete the right stuff!

I'm guessing it is located somewhere around here:

$tmp_attributes_image .= '<div class="attribImg">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '<br />' . $products_options->fields['products_options_values_name'] : '') . '</div>' . "\n";

8 Sep 2010, 1:56 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove attribute name below attribute picture?

Sorry, I did not realize it was for more than the one Product ...

You could try just using the setting in the Configuration ... Product Info ...

Product Info - Show Option Values Name Below Attributes Image
Product Info - Show the name of the Option Value beneath the Attribute Image?
0= off 1= on

And turn off the Option Value Name below the Attribute Images ... and not touch the code ... :smile:

9 Sep 2010, 7:28 PM
#12
alexanderk avatar

alexanderk

New Zenner

Join Date:
Feb 2010
Posts:
16
Plugin Contributions:
0

Re: How to remove attribute name below attribute picture?

Amazing!

Thank you :clap:

9 Sep 2010, 10:06 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove attribute name below attribute picture?

You are most welcome ... glad that this worked for you without the need of touching code ... :smile:

23 Sep 2010, 11:25 PM
#14
chrx avatar

chrx

New Zenner

Join Date:
Aug 2005
Location:
SF Bay Area, California, USA
Posts:
84
Plugin Contributions:
0

Re: How to remove attribute name below attribute picture?

Great! Thank you Linda. I was looking for that same switch. I could see in the code that there was a condition to this displaying, I just could not find that On/Off switch. Got it.

Cheers,
chrx

23 Sep 2010, 11:26 PM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove attribute name below attribute picture?

Thanks for the update that this was able to help you as well ... :cool: