Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / how do I modify this page?

how do I modify this page?

Locked

Views: 1,073

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
17 Oct 2009, 4:17 PM
#1
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

how do I modify this page?

Hi,

I would like to change** this page**, i.e. repeating the text "prezzo" on each product, etc.

Thank you

17 Oct 2009, 4:39 PM
#2
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: how do I modify this page?

Forgot to ask which template controls it.

17 Oct 2009, 5:35 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: how do I modify this page?

/includes/modules/your_template/product_listing.php creates the content for the page.

19 Oct 2009, 2:29 PM
#4
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: how do I modify this page?

Thanks.

I thought it would have been less complicated ...
Could you please tell me how to repeat the heading "prezzo" on each cell?

19 Oct 2009, 7:19 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: how do I modify this page?

You can use some of the code from the heading output around line 40:php case 'PRODUCT_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right' . (PRODUCTS_LIST_PRICE_WIDTH > 0 ? '" width="' . PRODUCTS_LIST_PRICE_WIDTH : ''); $zc_col_count_description++; break; and put it in the product price cell code around line 107:```php
case 'PRODUCT_LIST_PRICE':
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
$lc_align = 'right';
$lc_text = $lc_price;

    // more info in place of buy now
    $lc_button = '';
    ...
```php
        case 'PRODUCT_LIST_PRICE':
        $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
        $lc_align = 'right';
        $lc_text = TABLE_HEADING_PRICE . '<br />' .  $lc_price;

        // more info in place of buy now
        $lc_button = '';
        ...
21 Oct 2009, 2:47 PM
#6
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: how do I modify this page?

Thank you.

It's what I needed.