Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Qty Discount - Display lowest price & "Start At" text

Qty Discount - Display lowest price & "Start At" text

Locked

Started by kappaluppa on 6 Jan 2007, 11:00 PM · Views: 23,083

Results 1 to 20 of 35
This thread is locked. New replies are disabled.
6 Jan 2007, 11:00 PM
#1
kappaluppa avatar

kappaluppa

New Zenner

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

Qty Discount - Display lowest price & "Start At" text

I've set up the qty discounts as:
Discount Type: Amount Off
Discounted Price From: Price

It is set up and seems to work fine. However in the product description I'd like to use the lowest price available.

Also, in the Product Type Info Page Layout options I see one that says: **Show Starting At text on Price. **I assume that means I can add text in front of the price that says **"Starting At". **I have the option 1 (yes), but I don't know where to change the text, and I don't see it to begin with.

Thanks with any help on this...
Kathy

6 Jan 2007, 11:51 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Qty Discount - Display lowest price & "Start At" text

Use the admin > tools > developers tools > enter text you seek in the last box on the left > select all catalog files from dropdown > search list of files with that text will display look for a defiines:

  define('TEXT_BASE_PRICE','Starting at: ');
``` or the text that you are looking for

Zen-Venom Get Bitten

8 Jan 2007, 7:36 AM
#3
kappaluppa avatar

kappaluppa

New Zenner

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

Re: Qty Discount - Display lowest price & "Start At" text

Thanks! Now, do you know of any way I can display the lowest price of the quantity discount rather than the beginning price?

8 Jan 2007, 9:12 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Qty Discount - Display lowest price & "Start At" text

Isn't the beginning price the lowest?

Or is it he text that states "beginning price" that you want to alter?

Zen-Venom Get Bitten

9 Jan 2007, 7:40 AM
#5
kappaluppa avatar

kappaluppa

New Zenner

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

Re: Qty Discount - Display lowest price & "Start At" text

In order to calculate quantity discounts you have to list the highest price first, then discounts based on number of items purchased.

Since you have to list the highest price first, that is the price that shows in the description of the item.

I'd like to display the biggest discount possible with text in front that says "Starting At" to indicate that a higher price might be paid.

9 Jan 2007, 10:01 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Qty Discount - Display lowest price & "Start At" text

You can do a work around by not displaying price and in the product title enter something like this:

My Item - (As Low as $1.55)

Zen-Venom Get Bitten

21 Apr 2008, 4:15 PM
#7
rmullaney77 avatar

rmullaney77

New Zenner

Join Date:
Mar 2007
Location:
Lakeland, FL, US
Posts:
44
Plugin Contributions:
1

Re: Qty Discount - Display lowest price & "Start At" text

We achieved this by doing the following in 1.3.7. The same code can be used in all files where displaying the lowest price is desired.

Filename : templates/tpl_product_info_display.php 
Line #69 : //echo $one_time . ($flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']); 
Line #70 : echo ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . $currencies->display_price(zen_get_products_discount_price_qty((int)$_GET['products_id'], 999999), zen_get_tax_rate($products_tax_class_id));

We used "999999" as the quantity for "zen_get_products_discount_price_qty" since no item in our store has a higher quantity discount than the value used.

Hope that helps someone.

We would love to see this as an option to show base price or lowest price in a future release of Zen Cart. hint hint

15 May 2008, 4:53 PM
#8
ronwong avatar

ronwong

Zen Follower

Join Date:
Jan 2006
Posts:
223
Plugin Contributions:
0

Re: Qty Discount - Display lowest price & "Start At" text

This actually worked.
But there are some tweaking to do. Just applying it I got the lowest price on all items, including those without quantity discount. But it is not difficult to figure out.

15 May 2008, 6:57 PM
#9
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Qty Discount - Display lowest price & "Start At" text

I tried this as well and on the product detail I see now the lowest price listed. I can't get the As Low As text to display at all! Help.

I would like the Starting At price show up on the product listing with grid layout enabled. Right now I only see More Info listed for product with QTY discounts. How would I do this?

Live and learn... the Zen way.

15 May 2008, 7:19 PM
#10
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Qty Discount - Display lowest price & "Start At" text

I think the Starting At price was intended to pricing by attribut when any add on, option would mean additional cost. This is not what was asked here, I think we all want to have the option to display the lowest price defined by quantity discounts and then list the lowest price with the text, Starting as Low As in product details and product listing pages. (At least this is what I am looking for). Anybody a clue?:frusty:

Live and learn... the Zen way.

16 May 2008, 2:40 AM
#11
ronwong avatar

ronwong

Zen Follower

Join Date:
Jan 2006
Posts:
223
Plugin Contributions:
0

Re: Qty Discount - Display lowest price & "Start At" text

As I mentioned, it need to be tweaked. But the 2 lines basically gives all the code to pull out that magic number.

What I did, I retained the original code, add in his magic code, then add the text 'Bulk purchase price from' in front. That is hardcoded. I belive that is what you are trying to do.

Please see: http://www.onlineshop.com.sg/index.php?main_page=product_info&products_id=3760

The presentation is not perfect, but I got the elements out. So I will think about moving them around to look best. For me, I want all the prices shown, original price, discounted price as well as lowest price.

16 May 2008, 12:31 PM
#12
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Qty Discount - Display lowest price & "Start At" text

Very clever. You left the original code and added the second lowest price below! I like it. I already fiddled with the code and got the lowest price to display but then it looked misleading. Then I hard coded text in front of the the price something like this:

As low as: $ 9.00

Looked good but what if there is no QTY discount? Didn't look right.

Now your suggestion is already better but still, how will this look if there is no qty discount? Will it show 2x the same price? Would also not look good.

I looked at your product listing too (not the product detail).
http://www.onlineshop.com.sg/index.php?main_page=index&cPath=3_38&sort=20a&page=6
It still shows the higher price. Do you have an idea how to display the lowest price here too?

Next I have to look what google base feeder will export. What price will be listed?

Any more thoughts would be appreciated.

Live and learn... the Zen way.

16 May 2008, 2:58 PM
#13
rmullaney77 avatar

rmullaney77

New Zenner

Join Date:
Mar 2007
Location:
Lakeland, FL, US
Posts:
44
Plugin Contributions:
1

Re: Qty Discount - Display lowest price & "Start At" text

We have loaded a v1.3.8a store and made significant modifications to show either "starting at" or "as low as" by adding another value to the option in "Catalog > Product Types > DESIRED_PRODUCT_TYPE > Edit Layout"

:smoke:

15 files (1 language, 4 modules, 10 templates) were modified to accomodate the changes along with the extra configuration values being added to the database so the option can be administered from the back-end.

The changes are extensive but well worth the effort if you want the option of showing one or the other. If someone truly needs this mod, PM me and we can discuss the details.

Our development store is located at http://www.servemysite.com/ which is where we performed said work.

16 May 2008, 3:06 PM
#14
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Qty Discount - Display lowest price & "Start At" text

Thank you ebspromo,

I wonder if your situation is the same. Please have a look at this Zen Site.
I found them by pure luck. They use exactly what I want. Look at product listing and product detail pages. Do you think they used your methods? Or is this just something more simple? (hope this is ok to list somebody else's site) :blush:

http://acbasketrygifts.com/cart/index.php?main_page=index&cPath=35_36

Live and learn... the Zen way.

16 May 2008, 3:26 PM
#15
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Qty Discount - Display lowest price & "Start At" text

I think what you did on your site is the result I want as well. I don't know if I want to go as far as making this configurable from the admin but I would be more than glad to learn what needs to be done to show the lowest price as the default and not the highest consistently in product listing and product info pages.

Would there be simpler instructions for doing this? I will still PM if you wish but I would like to keep as much in the forum as possible. I saw several threads that deal with this issue but no solutions that solves this exact problem.

Live and learn... the Zen way.

16 May 2008, 6:55 PM
#16
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Qty Discount - Display lowest price & "Start At" text

I found some good stuff regarding As Low As here:
http://www.zen-cart.com/forum/showthread.php?t=36263&page=3

might be helpful to others.

Live and learn... the Zen way.

18 May 2008, 2:35 PM
#17
rmullaney77 avatar

rmullaney77

New Zenner

Join Date:
Mar 2007
Location:
Lakeland, FL, US
Posts:
44
Plugin Contributions:
1

Re: Qty Discount - Display lowest price & "Start At" text

The reason we are only wanting PM requests is because we intend to charge for the customization until it covers the amount of time I spent making the changes.

This was done in house by me for our store which made it worthwhile to accomplish. In order to pass it on, something will need to be made from the mod in the initial run to cover the time I invested.

Turning this into a formal mod for download will take some time to make sure we cover all the changes we made to ZC. Trying to do that while running our business and not receive anything in return would make the distributable mod take the far back burner.

I know many people will frown on this, but I have gladly paid for mods from other developers when they were not available as a free download.

19 May 2008, 6:58 AM
#18
ronwong avatar

ronwong

Zen Follower

Join Date:
Jan 2006
Posts:
223
Plugin Contributions:
0

Re: Qty Discount - Display lowest price & "Start At" text

Hi, I think we are all trying to achieve what EBS did, but as he mentioned, there are like more than 10 files to edit.

2ndly, we dont like to pay, so we will play around and ask around.

Danilo, I go around that but using the default quantity discount code.

I found that the quantity discount table that usually shows at the bottom, will only show if quantity discout is activated. A no brainer, so there must be some IF, ELSE code there. So I put the 2 lines within that code cluster, then move that code up.

Sorry I am no coder, I dont know PHP, so I am just moving them around and improvising.

This only impacts the codes on the product page, so google downloads should not change. I am also looking at the category listing page. Yes currently they are showing higher price. I want to show again, both prices, so will be exploring it.

19 May 2008, 5:39 PM
#19
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Qty Discount - Display lowest price & "Start At" text

Here is what I did so far:

edit
includes\modules\YOUR_TEMPLATE\product_listing.php
find:

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

and replace with:

//bof As low as price//
		case 'PRODUCT_LIST_PRICE':
		
			$lc_price = zen_get_products_discount_price_qty((int)$listing->fields['products_id'],20000);
			$lc_price = '$'.number_format($lc_price, 2);
			$lc_align = 'right';
			if ( zen_get_products_discount_price_qty((int)$listing->fields['products_id'],20000) != zen_get_products_actual_price((int)$listing->fields['products_id'])){
                                //Change the next line to your own text/formatting requirements
				$lc_text='<span style="color: gray; font-weight: normal;">Price as low as:<br />' . $lc_price . '';
				}else{
				$lc_text =  $lc_price.'<br />';
				}
//eof As low as prise//

for the tpl_product_info_display.php I used this code:

$cheapest = zen_get_products_discount_price_qty((int)$_GET['products_id'],20000);
$cheapest = number_format($cheapest, 2);
echo 'As low as: $' . $cheapest . '<br>';

Now I am pretty happy with the result. Have a look if you want to at: https://www.discountbabyshowerfavors.com

Live and learn... the Zen way.

20 May 2008, 4:39 PM
#20
rmullaney77 avatar

rmullaney77

New Zenner

Join Date:
Mar 2007
Location:
Lakeland, FL, US
Posts:
44
Plugin Contributions:
1

Re: Qty Discount - Display lowest price & "Start At" text

I would encourage doing what we did and modifying the database and language files to include the text your are using. IMO our way is a bit more future proof than hard-coding language strings and CSS in a system like ZC.

Furthermore, the amount of work that was required to get it done right makes it well worth a small fee and license agreement in our minds. Not to mention it will save you time which we believe is worth more than being TOO frugal.