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.p...oducts_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.
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.p...ort=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.
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.
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/inde...ex&cPath=35_36
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.
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/showth...t=36263&page=3
might be helpful to others.
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.
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.
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:
PHP Code:
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:
PHP Code:
//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:
PHP 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: www.discountbabyshowerfavors.com
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.