Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy questions


rgplanet

Recommended Posts

Posted

Hi,

 

How I told yo in another post, it is my first oscommerce site. I am learning a lot with you and now I wold like to ask you some little questions:

 

1. The info "Products Model" in one product, how can I align it to the left? I was thinking I have to change it in product_listing.php but I cant do it. I have large products model names som how you can look, it doesnt look good with a right aligment: http://www.sendapackage.com/catalog/index.php?cPath=86_87

 

2. Also, in the same way, how can I delete the black line arround the pictures? I think the pictures of the products will look better without this line...

 

3. The lastone. I tried to insert a flash in the header.php with dreamweaver. I did think it was easy but not. It created some files (one alert appears when I added it) that I uploaded to the server but I cant see it. The solution I did was to make a "iframe" but now I have some white spaces that I dont like. How can I intert the flash directly in the header.php?

 

I am sure it is easy to do but this is my first time and I am not a programmer (still...). Thanks in advance,

 

Roger.

Posted
Hi,

 

How I told yo in another post, it is my first oscommerce site. I am learning a lot with you and now I wold like to ask you some little questions:

 

1. The info "Products Model" in one product, how can I align it to the left? I was thinking I have to change it in product_listing.php but I cant do it. I have large products model names som how you can look, it doesnt look good with a right aligment: http://www.sendapackage.com/catalog/index.php?cPath=86_87

 

2. Also, in the same way, how can I delete the black line arround the pictures? I think the pictures of the products will look better without this line...

 

3. The lastone. I tried to insert a flash in the header.php with dreamweaver. I did think it was easy but not. It created some files (one alert appears when I added it) that I uploaded to the server but I cant see it. The solution I did was to make a "iframe" but now I have some white spaces that I dont like. How can I intert the flash directly in the header.php?

 

I am sure it is easy to do but this is my first time and I am not a programmer (still...). Thanks in advance,

 

Roger.

 

1.

When you say "products model" im assuming you mean the product name ... because their the ones that look aligned to the right ...

I have no idea how much you've modified /catalog/includes/modules/product_listing.php but you would normally change this in this line:

 

case 'PRODUCT_LIST_NAME':
		$lc_align = '';
		if (isset($HTTP_GET_VARS['manufacturers_id'])) {
		  $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
		} else {
		  $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> ';
		}
		break;

 

changing $lc_align = ''; to $lc_align = 'left'; should fix that issue - but as I said i'm not sure how much of this file has been modified so not 100% sure if it'll work in your case

 

 

2.

In your /catalog/stylesheet.css file ... line 424 locate:

 

.ch7 {
border:1px solid #000000;
}

 

and change it to:

 

.ch7 {
border:none;
}

 

 

3.

See THIS post

Posted

Thanks!!! I am going to try the changes right now!! In point one, I think what you say is the name isnt the name. The name, for example, is the GL-2000L and the "Gildran Ultra Cotton"(for example), is the product model. I did this because I have a lot of "Gildran Ultra Cotton" products but only one GL-2000L. In any case, it is in the same file right? Thanks,

 

Roger

Posted

This is what I have:




case 'PRODUCT_LIST_MODEL':
$lc_align = '';
$lc_text = ' ' . $listing['products_model'] . ' ';
break;
case 'PRODUCT_LIST_NAME':
$lc_align = '';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$lc_text = '<a class="pr_name" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
} else {
$lc_text = '<a class="pr_name" href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
}
break;
case 'PRODUCT_LIST_MANUFACTURER':
$lc_align = '';
$lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> ';
break;
case 'PRODUCT_LIST_PRICE':
$lc_align = 'right';
if (tep_not_null($listing['specials_new_products_price'])) {
$lc_text = '<span class="pr_price" style="padding-right:0px; color:#7F7F7F;font-size:11px"><s>'. $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s></span><br><span class="pr_price">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
} else {
$lc_text = '<span class="pr_price">' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
}
break;

case 'PRODUCT_LIST_QUANTITY':
$lc_align = 'right';
$lc_text = ' ' . $listing['products_quantity'] . ' ';
break;
case 'PRODUCT_LIST_WEIGHT':
$lc_align = 'right';
$lc_text = ' ' . $listing['products_weight'] . ' ';
break;
case 'PRODUCT_LIST_IMAGE':
$lc_align = 'center';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT,'class=ch7') . '</a>';
} else {
$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT,'class=ch7') . '</a>';
}
break;
case 'PRODUCT_LIST_BUY_NOW':
$lc_align = 'center';
$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';
break;
// BOF Product Sort

case 'PRODUCT_SORT_ORDER';

$lc_align = 'center';

$lc_text = ' ' . $listing['products_sort_order'] . ' ';

break;

// EOF Product Sort
}

$list_box_contents[$cur_row][] = array('align' => $lc_align,
'params' => 'class="productListing-data"',
'text' => $lc_text);
$product_contents[] = $lc_text;
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...