Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / A little problem in displaying the attributes and their image

A little problem in displaying the attributes and their image

Locked

Views: 1,167

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
29 Mar 2009, 10:07 AM
#1
public2009 avatar

public2009

New Zenner

Join Date:
Mar 2009
Posts:
10
Plugin Contributions:
0

A little problem in displaying the attributes and their image

Hello,

I installed ZenCart 1.3.8 and I have introduced several products in the catalog. I configured the options and values and then we assigned attributes.
However, I do not know how to remove the red writings ranged from the image attached below!

Mention that I installed two language view of the site. Let this be the problem?

In addition, for each of the three options in the image above I have one picture. When I view the product with that options (Logo 50%, Logo 75% si Logo 100%), this images are displayed under one another and I do not want that. I would like to display side by side. How do I do this?
Mention that the width of the template is available 500 pixels and the width each image are 120 pixels.

Thanks in advance.

29 Mar 2009, 12:56 PM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: A little problem in displaying the attributes and their image

A link to your site needed to figure problem with your image.

also

in Includes / languages /english OR your override version
open Product_info.php
make sure you have the following code there

define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');
define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )');
define('ATTRIBUTES_WEIGHT_DELIMITER_PREFIX', ' (');
define('ATTRIBUTES_WEIGHT_DELIMITER_SUFFIX', ') ');

if is not there , then add them at the end before php closing tag ?>

29 Mar 2009, 4:11 PM
#3
public2009 avatar

public2009

New Zenner

Join Date:
Mar 2009
Posts:
10
Plugin Contributions:
0

Re: A little problem in displaying the attributes and their image

Thanks tony for the answer

Have available two problems:

**1.**Images attributes (Logo 50%, 75% si 100%) are displayed under one another and I do not want that. I would like to display side by side. How do I do this?

2. In admin panel Zen Cart, I try add atributes and the system show me this message: "Cloning attributes - attributes were not added". I do not know why it displays this error because I don't tried to insert an attribute identical to another. So, this is not the problem but what could be ?

Please help me.

30 Mar 2009, 7:57 AM
#4
public2009 avatar

public2009

New Zenner

Join Date:
Mar 2009
Posts:
10
Plugin Contributions:
0

Re: A little problem in displaying the attributes and their image

I solved the problem number 2 but I want a solution to the problem nr.1 with images attributes of the post above. Please, I need help, solution to problem 1.

30 Mar 2009, 8:39 AM
#5
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: A little problem in displaying the attributes and their image

since this is custom template , we need to see it . any link to you site ?

31 Mar 2009, 6:14 PM
#6
public2009 avatar

public2009

New Zenner

Join Date:
Mar 2009
Posts:
10
Plugin Contributions:
0

Re: A little problem in displaying the attributes and their image

Hello tony,

Unfortunately I can post here the link the site but I'll show you what this is about.

This is image:

And the Firefox web browser source code:

<br class="clearBoth" />
<div class="attribImg"><img src="images/attributes/2_resize.jpg" alt="" width="140" height="200" /><br />LOGO 100%</div>
<br class="clearBoth" />
<div class="attribImg"><img src="images/attributes/3_resize.jpg" alt="" width="140" height="200" /><br />LOGO 50%</div>
<br class="clearBoth" />
<div class="attribImg"><img src="images/attributes/1_resize.jpg" alt="" width="140" height="200" /><br />LOGO 75%</div>

<br class="clearBoth" />

The same code is displayed and Internet Explorer. I have two language file and both settings language view leads to viewing the images shown above.

I want to tell me someone, the name php file establishes Zen Cart module displaying the images above?

I need help.

31 Mar 2009, 11:33 PM
#7
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: A little problem in displaying the attributes and their image

in your stylesheet locate attribImg class and add
float:left;

hope this helps.

1 Apr 2009, 6:38 PM
#8
public2009 avatar

public2009

New Zenner

Join Date:
Mar 2009
Posts:
10
Plugin Contributions:
0

Re: A little problem in displaying the attributes and their image

Hiello,

I tried in the stylesheet but not working.

I try change file: includes/modules/attributes.php and I got some results but not very good. For this reason, I thought to post here part of code that are interested in that file (for example lines 239...253):

 //                  if ($tmp_attributes_image_row > PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW) {
                      if ($tmp_attributes_image_row > $products_options_names->fields['products_options_images_per_row']) {
                        $tmp_attributes_image .= '<br class="clearBoth" />' . "\n";
                        $tmp_attributes_image_row = 1;
                      }

                      if ($products_options->fields['attributes_image'] != '') {
                        $tmp_attributes_image .= '<div class="attribImg">' . zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_value_id, $selected_attribute, 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '"') . '<label class="attribsRadioButton three" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '<br />' . $products_options->fields['products_options_values_name'] : '') . $products_options_details_noname . '</label></div>' . "\n";
                      } else {
                        $tmp_attributes_image .= '<div class="attribImg">' . zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']',  $products_options_value_id, $selected_attribute, 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '"') . '<br />' . '<label class="attribsRadioButton threeA" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '">' . $products_options->fields['products_options_values_name'] . $products_options_details_noname . '</label></div>' . "\n";
                      }
                      break;

                      case '4':
                      $tmp_attributes_image_row++;

I try this:

if ($products_options->fields['attributes_image'] != '') {
                        $tmp_attributes_image .= '<table><tr><td class="attribImg"><div style="float:center">' . zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_value_id, $selected_attribute, 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '"') . '<label class="attribsRadioButton three" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '<br />' . $products_options->fields['products_options_values_name'] : '') . $products_options_details_noname . '</label></div></td></tr></table>' . "\n";

but don't works and I don't know why?
I need HELP.