If this is your first visit, check our documentation. To post, register or login.
Forums / Bug Reports / [Fixed 1.6.0]How can I remove the word "text" under the option name image?

[Fixed 1.6.0]How can I remove the word "text" under the option name image?

Started by justwonder2 on 4 Nov 2012, 9:57 PM · Views: 3,995

Results 1 to 17 of 17
4 Nov 2012, 9:57 PM
#1
justwonder2 avatar

justwonder2

New Zenner

Join Date:
Sep 2012
Posts:
28
Plugin Contributions:
0

[Fixed 1.6.0]How can I remove the word "text" under the option name image?

Hi,
I'm sorry if this has been asked before. I have been testing and search the whole day for an answer for this but have been unsuccessful. I'm trying to remove the word "text" under the image of the option name. Using firebug, I was able to locate the location of this but I'm not able to find the PHP file for it. Here is the code:

<div class="back"> <input id="attrib-10-0" type="text" value="" maxlength="2" size="1" name="id[TEXT_PREFIX10]"> <br class="clearBoth"> <div class="attribImg"> <img width="100" height="80" alt="" src="images/attributes/green.png"> <br> **TEXT** </div>

I have trying search for this under tpl_module_attributes.php, product_info.php but it's not there.

I'm not able to paste the link of the website because its a mess right now...

Any assistance would be greatly appreciate it.

Thank you
Justina

5 Nov 2012, 12:08 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

This sounds like you are displaying a constant "TEXT"
What files have you edited?

Zen-Venom Get Bitten

5 Nov 2012, 11:19 PM
#3
justwonder2 avatar

justwonder2

New Zenner

Join Date:
Sep 2012
Posts:
28
Plugin Contributions:
0

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

Yes, under all of the images that I have added under option name have to word "text" under it. I know this is because I have selected the text option instead of a check box or a drop down, but I need those option names to have text options.

I have not edited any file because I can't find where this is stored.

Thank you for your assistance :)

6 Nov 2012, 6:52 AM
#4
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

The text option is used for customers to be able to enter a custom text needed for a product. I think you need to use the read only option for your purpose.

6 Nov 2012, 7:59 PM
#5
justwonder2 avatar

justwonder2

New Zenner

Join Date:
Sep 2012
Posts:
28
Plugin Contributions:
0

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

Thank you for the reply. No I need the text option, I need my customer to enter the amount that would like of each option name.

Thanks for the suggestion.

9 Nov 2012, 1:07 AM
#6
justwonder2 avatar

justwonder2

New Zenner

Join Date:
Sep 2012
Posts:
28
Plugin Contributions:
0

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

Can someone please help me with this. I have search everywhere but still cannot find it.

Thank you very much!

9 Nov 2012, 5:13 AM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

Post a link to this to take guessing out of the mix

Zen-Venom Get Bitten

10 Nov 2012, 4:38 AM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

Use the developers tool kit in your admin and search for the term "text"
It may generate a long list but look for files associated with attributes

Zen-Venom Get Bitten

10 Nov 2012, 4:17 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

The word TEXT is being displayed as that is the "text" of the Option Value when using TEXT Attributes ...

To not see that, you can edit the file:
/includes/modules/attributes.php

and at about line 482, change the code from:

                      $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";

to read:

[B]// Do not show TEXT option value on images[/B]
                      $tmp_attributes_image .= '<div class="attribImg">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? [B]($products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_TEXT ? '<br />' . $products_options->fields['products_options_values_name'] : '')[/B] : '') . '</div>' . "\n";

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Nov 2012, 4:19 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

justwonder2:

Hi,
I'm sorry if this has been asked before. I have been testing and search the whole day for an answer for this but have been unsuccessful. I'm trying to remove the word "text" under the image of the option name. Using firebug, I was able to locate the location of this but I'm not able to find the PHP file for it. Here is the code:

<div class="back"> <input id="attrib-10-0" type="text" value="" maxlength="2" size="1" name="id[TEXT_PREFIX10]"> <br class="clearBoth"> <div class="attribImg"> <img width="100" height="80" alt="" src="images/attributes/green.png"> <br> **TEXT** </div>

I have trying search for this under tpl_module_attributes.php, product_info.php but it's not there.

I'm not able to paste the link of the website because its a mess right now...

Any assistance would be greatly appreciate it.

Thank you
Justina

This post has been moved to the Bug Fixes and will be addressed in the next release ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Nov 2012, 4:29 PM
#12
justwonder2 avatar

justwonder2

New Zenner

Join Date:
Sep 2012
Posts:
28
Plugin Contributions:
0

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

Hi Ajeh,
Thank you so much. That worked like magic!!!

Have a great weekend!

10 Nov 2012, 4:33 PM
#13
justwonder2 avatar

justwonder2

New Zenner

Join Date:
Sep 2012
Posts:
28
Plugin Contributions:
0

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

Thank you for looking into this for me.

10 Nov 2012, 5:23 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

You are most welcome ... thanks for finding it ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Nov 2012, 6:03 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

NOTE: a better fix would be to also block the TEXT from showing on Option Names that are Uploads and using an image:

// Do not show TEXT option value on images
                      $tmp_attributes_image .= '<div class="attribImg">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? ( ($products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_TEXT && $products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_FILE) ? '<br />' . $products_options->fields['products_options_values_name'] : '') : '') . '</div>' . "\n";

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Nov 2012, 3:14 PM
#16
justwonder2 avatar

justwonder2

New Zenner

Join Date:
Sep 2012
Posts:
28
Plugin Contributions:
0

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

ok, I will also note that.

18 Oct 2013, 7:43 PM
#17
thomaswhiteeagle avatar

thomaswhiteeagle

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: [Fixed 1.6.0]How can I remove the word "text" under the option name image?

I ran into this same issue when adding an image to go with a text box attribute, so I found this thread when researching how to fix it. However, per the thread I thought this was to be addressed as a bug in upcoming improvements. However, I am using 1.5.1 and it still exists. But the second solution did work fine.

I am trying to get the image to align beside the text box, not below it. Anyone have any ideas how this might be accomplished? here is the example: http://www.zoomballoon.com/cartdemo/index.php?main_page=product_info&cPath=1&products_id=1