Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Point me in the right direction to fix.

Point me in the right direction to fix.

Locked

Views: 4,395

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
12 Nov 2006, 2:07 AM
#1
jim7567g avatar

jim7567g

New Zenner

Join Date:
Nov 2006
Posts:
11
Plugin Contributions:
0

Point me in the right direction to fix.

Hello,

In the attached picture I would like to remove the "-" next to the word "Price".

I would also like to get the item prices to be in line with the product name.

If someone could point me in the right direction to fix these two items I would be very greatful.

Regards,
Jim

12 Nov 2006, 2:11 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Point me in the right direction to fix.

The - or + is the sort order ...

This is set in the Configuration ... Layout settings ... depending on the version of Zen Cart that you are using ...

12 Nov 2006, 3:12 AM
#3
jim7567g avatar

jim7567g

New Zenner

Join Date:
Nov 2006
Posts:
11
Plugin Contributions:
0

Re: Point me in the right direction to fix.

Thanks. I can live with that.

Do you have any idea how I may be able to fix the price alignment problem?

12 Nov 2006, 3:15 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Point me in the right direction to fix.

Be easier to tell by seeing an URL to your site ...

Most likely you need a vertical alignment in the stylesheet ...

12 Nov 2006, 3:29 AM
#5
jim7567g avatar

jim7567g

New Zenner

Join Date:
Nov 2006
Posts:
11
Plugin Contributions:
0

Re: Point me in the right direction to fix.

I've sent you a PM.

Thx.

12 Nov 2006, 3:44 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Point me in the right direction to fix.

You need to check what class is set in your stylesheet for those <td> and add something like:

vertical-align: top;

to them so they align at the top and not the middle ...

12 Nov 2006, 3:45 AM
#7
jim7567g avatar

jim7567g

New Zenner

Join Date:
Nov 2006
Posts:
11
Plugin Contributions:
0

Re: Point me in the right direction to fix.

Thanks, I appreciate the help.

12 Nov 2006, 4:17 AM
#8
jim7567g avatar

jim7567g

New Zenner

Join Date:
Nov 2006
Posts:
11
Plugin Contributions:
0

Re: Point me in the right direction to fix.

I've found the code but I don't think I can modify it. Your input would be appreciated.

/includes/modules/product_listing.php

    case 'PRODUCT_LIST_MANUFACTURER':
    $lc_align = '';
    $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
    break;
    case 'PRODUCT_LIST_PRICE':

** $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
$lc_align = 'right';
$lc_text = $lc_price;**

12 Nov 2006, 4:19 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Point me in the right direction to fix.

I believe you should be able to alter this in the stylesheet for your template without touching the code ...

I do not do design stuff ... but that would be my first place to look ...

Perhaps one of our handy dandy designers could pipe up here when they have a moment? :smile:

12 Nov 2006, 4:23 AM
#10
jim7567g avatar

jim7567g

New Zenner

Join Date:
Nov 2006
Posts:
11
Plugin Contributions:
0

Re: Point me in the right direction to fix.

I think I've found the error but I'm not sure what page to fix.

<td class="productListing-data" align="right">**$5.00<br /><br />**

should look like this:

<td class="productListing-data" align="right">**<br />$5.00<br />**
12 Nov 2006, 2:08 PM
#11
jim7567g avatar

jim7567g

New Zenner

Join Date:
Nov 2006
Posts:
11
Plugin Contributions:
0

Re: Point me in the right direction to fix.

I was wondering if anyone has an idea on what file I need to alter to correct this issue.

Regards,
Jim

12 Nov 2006, 2:51 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Point me in the right direction to fix.

Did you try to make the simple change to the stylesheet for your template and add:

.productListing-data {
  vertical-align: top;
}

Note: you can also manage this per class for each column or per row for even and odd rows etc.

Just do a View Source to see what class and/or id is being used and adjust the settings on your stylesheet

NOTE: be sure that you are using your own templates and overrides and not Classic as you will lose your changes and customizations on an upgrade and be very, very sad ... :cry:

12 Nov 2006, 3:12 PM
#13
jim7567g avatar

jim7567g

New Zenner

Join Date:
Nov 2006
Posts:
11
Plugin Contributions:
0

Re: Point me in the right direction to fix.

Aligning the description to the top seems to make it look worse. I tried to valign the price to the bottom but it did not work because of the extra <br /> in the code. I'm hoping I could find the location of the <br /><br /> so that I could delete one of them.

I've used the developers tool kit to try and find it, but I'm not having any luck.

12 Nov 2006, 3:30 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Point me in the right direction to fix.

All of the <br /> are in the:
/includes/modules/product_listing.php

Copy that file to your templates and overrides directory:
/includes/modules/your_template_dir/product_listing.php

Now you can make alterations to this without losing the changes on an upgrade and still have the original file safe in the default location if you make a mess of things ... :smile:

12 Nov 2006, 3:40 PM
#15
jim7567g avatar

jim7567g

New Zenner

Join Date:
Nov 2006
Posts:
11
Plugin Contributions:
0

Re: Point me in the right direction to fix.

PERFECT!!!!

Thank you very much!!!