surrfman, on 22 February 2012 - 12:40 PM, said:
Darn it, tried it, no joy. Can't be that difficult, tried about 10 variations without a solution.
Any other ideas?
Timmy C
You have the right idea, you are just changing the wrong part of the code.
Find this:
<div class="left wid200"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><strong>' . $products[$i]['name'] . '</strong>' . $stockCheck . $productAttributes . '</a></div>
and add this:
<div class="left wid200" style="padding-left: 10px;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><strong>' . $products[$i]['name'] . '</strong>' . $stockCheck . $productAttributes . '</a></div>
It has a padding of 10px. 20 is too much and will mess up the rest of the columns.
You also want to add the same to:
<div class="left wid200"><b><?php echo TABLE_HEADING_PRODUCTS;?></b></div>
Like this:
<div class="left wid200" style="padding-left: 10px;"><b><?php echo TABLE_HEADING_PRODUCTS;?></b></div>
So that the heading and the info line up.
I also added a space between the product images too.
To do that create a new class under the <style> at the bottom like : .padtop5 {padding-top: 5px}
Then add it to the first div class for the shopping cart portion:
Here is my code as a reference:
echo '<div class="contentText padtop5">
<div class="left" style="width:' . SMALL_IMAGE_WIDTH . 'px;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div>
<div class="left wid200" style="padding-left: 10px;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><strong>' . $products[$i]['name'] . '</strong>' . $stockCheck . $productAttributes . '</a></div>
<div class="left wid75 t-center">' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id'])) . '</div>
<div class="left wid75 t-center">' . tep_draw_input_field('qty[' . $products[$i]['id'] . ']', $products[$i]['quantity'], 'size="2" data-pID="' . $products[$i]['id'] . '"') . '</div>
<div class="left wid75 t-center">' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</div>
<div class="left wid25 t-right iconred mrt5 pointer" id="cartDelete" data-pID="' . $products[$i]['id'] . '">✘</div>
<div class="clear"></div>
</div>';
Hopefully all of that made sense to you..
Edited by varina, 23 February 2012 - 01:21 AM.










