Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Starting At Price on all product pages - How to?

Starting At Price on all product pages - How to?

Locked

Views: 852

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
13 Oct 2009, 1:23 PM
#1
botbuilder avatar

botbuilder

New Zenner

Join Date:
Oct 2009
Posts:
1
Plugin Contributions:
0

Starting At Price on all product pages - How to?

Howdy,

A few of my products have attributes for adding and removing stuff.

Eg this on:

http://www.botbuilder.co.uk/store/index.php?main_page=product_info&cPath=1_10&products_id=57

That says "Starting at:" at the top which is ok.

Now I would like to have "starting at" on other pages that also have the product eg:

http://www.botbuilder.co.uk/store/index.php

And http://www.botbuilder.co.uk/store/index.php?main_page=products_all&disp_order=4

Is there a setting somewhere or is it a template hack. If so what should I look for.

Cheers.

14 Oct 2009, 3:04 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Starting At Price on all product pages - How to?

As an example, for the Product Listings you can customize the file:
/includes/modules/product_listing.php

and copy to your templates and overrides:
/includes/modules/your_template_dir/product_listing.php

and change the code to:

        case 'PRODUCT_LIST_PRICE':
        $lc_price = (zen_has_product_attributes_values((int)$listing->fields['products_id']) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price($listing->fields['products_id']) . '<br />';

The part in red is what is showing/not showing the Starting at: based on Attributes with values ...

For other areas of code, you just need to replace the:
$listing->fields['products_id']

with the proper products_id variable based on the code that you are in ...