VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: wzyefd on October 22, 2012, 18:52:25 PM

Title: Could I show the discount price caculated by QUANTITY PLUGIN
Post by: wzyefd on October 22, 2012, 18:52:25 PM
Hi,
I have installed the QUANTITY PLUGIN.
It works fine when you input the quanity configured in the rang.
But how can I show the discount at any quantity,so the shopper could see the discount when they first visit the product page.
Because maybe they does not know more discount when the buy more and the default quanity is 1.
I wish my shopper firstly visit the product page,they could see this price list:
1-10 PCS   10$
10-20 PCS  8$
20-40 PCS  6$
Title: Re: Could I show the discount price caculated by QUANTITY PLUGIN
Post by: PolishedGeek on October 22, 2012, 18:58:35 PM
Most likely, you can alter the template to show them. But I think it might look best if they were presented in a module on the product page. You could have someone build you a custom module to display the prices dynamically for the product being displayed.
Title: Re: Could I show the discount price caculated by QUANTITY PLUGIN
Post by: wzyefd on October 23, 2012, 07:50:30 AM
thanks for your repaly~~~~~ :)
Title: Re: Could I show the discount price caculated by QUANTITY PLUGIN
Post by: rogyrogy on March 30, 2013, 22:04:18 PM
I such a module or script search was too long and I can not find help anywhere. Please will not help anyone do such a script?
Thank you very much
Title: Re: Could I show the discount price caculated by QUANTITY PLUGIN
Post by: John2400 on March 31, 2013, 01:18:44 AM
Just wondering if a more simple idea would be to include a link on your page in the large description- of maybe have a small window that opens when you reach your product pages -

That is : create a simple webpage - attach the code in the large description part of the product page.

Then the clients will know that buying more is better -  or just make a large symbol that bulk buying is cheaper.

eg:   ;D
Buy BY BULK and SAVE
[/size][/color] ;D
Title: Re: Could I show the discount price caculated by QUANTITY PLUGIN
Post by: PRO on March 31, 2013, 05:10:35 AM
This can be done with a couple custom fields and a little bit of coding


you just have to have custom field positions FOR the discount

I use a custom field "string" to display
"10% Discount on 10 Or More"

But you could use this same to display a price, as well

example code, I used for the image below (it wont work for you without changing it)
<?php foreach ($this->product->customfieldsSorted[$this->position] as $field) {
         if ($field->layout_pos == discount10) {
         $theprice=$this->product->prices['salesPrice']*.9;
         $theprice=number_format($theprice, 2, '.', ',');
         echo $field->display.' '.$theprice;
         }
       }
       ?>


extra references
http://forum.virtuemart.net/index.php?topic=104194.0
http://forum.virtuemart.net/index.php?topic=97419.0

(http://forum.virtuemart.net/index.php?action=dlattach;topic=109104.0;attach=54188;image)



[attachment cleanup by admin]
Title: Re: Could I show the discount price caculated by QUANTITY PLUGIN
Post by: rogyrogy on March 31, 2013, 09:34:54 AM
Thank you for your answers, but the author of this discussion about something else in mind.
Attach the first image from VM2 administration where you can see what we mean. We need to dynamically generate a listing of the "Quantity Range" and "Final price" in detail each product.
The VM1, it shows the second image (sorry, no english) in VM2 is not possible without the added script.
Please understand us and help?

[attachment cleanup by admin]