Forums / Setting Up Categories, Products, Attributes / Add "starting at" to price displayed in category view?

Add "starting at" to price displayed in category view?

Locked

Started by shawnz28 on 14 Jun 2007, 6:46 AM · Views: 1,116

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Jun 2007, 6:46 AM
#1
shawnz28 avatar

shawnz28

New Zenner

Join Date:
Apr 2005
Posts:
75
Plugin Contributions:
0

Add "starting at" to price displayed in category view?

Is there a way to edit that way the price is displayed in a category when pricing by attribute? Currently it is displaying the lowest price of the group of sizes for an item with "more info" below that. I was wondering if there was a way to change it to say "Starting at" or something to that effect on this view to help people understand it is not just one size or one price other than writing it out in the item title?

He is an example
http://saltycritter.com/store/index.php?main_page=index&cPath=1_9

2 Aug 2007, 10:25 AM
#2
shk avatar

shk

New Zenner

Join Date:
Oct 2006
Posts:
62
Plugin Contributions:
0

Re: Add "starting at" to price displayed in category view?

I was just going to ask this myself.. I tried adding it,
but sadly Ive been unable to figure out just how to do it.

Per

7 Aug 2007, 11:07 AM
#3
shk avatar

shk

New Zenner

Join Date:
Oct 2006
Posts:
62
Plugin Contributions:
0

Re: Add "starting at" to price displayed in category view?

In lieu of better options, I edited /includes/modules/SHK/product_listing.php
and added the "starting at:" text manually.

This sucks, but since my site is live, I rather have this on all products
than risk annoying customers with what they might concider "false marketing".

Original:

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

Modified:

 
        case 'PRODUCT_LIST_PRICE':
          $lc_price = 'Starting at: ' . zen_get_products_display_price($listing->fields['products_id']) . '<br />';

This solution lacks the ability to discern between atribute products
and non-atribute products, which makes it a pretty crappy solution, all in all.

I've looked at includes/templates/SHK/templates/tpl_product_info_display.php,
and I supose this is the code that makes it happend:

 
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);

Im not proficent enough to take this and turn it into something that
works for the category view, neither create something from scratch.

Thus, any help from the seasoned zenners would be much appriciated.

Per