Author Topic: listing multiple prices on product page  (Read 10222 times)

jccompagnon

  • Beginner
  • *
  • Posts: 10
Re: listing multiple prices on product page
« Reply #15 on: December 20, 2014, 19:40:21 pm »
did this option get added to VM3 ?
if so where ?

lanthan

  • Jr. Member
  • **
  • Posts: 99
  • VM 2.6.10, J2.5.27, PHP5.5
Re: listing multiple prices on product page
« Reply #16 on: February 20, 2015, 15:36:54 pm »
The code works also for VM3 (Short test on V3.02). You could have tested this on your own by the way.

override folder
html/com_virtuemart/productdetails/default.php
insert it from line 160. DonĀ“t forget the language overrides.

Like Hutson said, it might be possible that all prices are available on productdetail page with vm3. So probably there could be a solution without DB access. I will check this out in a few weeks and let you know.

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Venta de naranjas online y mandarinas
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: listing multiple prices on product page
« Reply #17 on: March 02, 2015, 16:31:50 pm »
I have Joomla 2.5.9 VM 2.0.12 and want to upgrade to make possible mutliple pricing for products.

I test now 2.0.18a, but as I see the price will change only after I modify the quantity. This is bad, because customer who wants to buy more pcs, left page because high price. (costomer do not test quantity modifying)
Customer buys normaly not 1 pcs, so pricing is for example the following:

Can somebody help me, how to make a list at product page like so:
1-19pcs - 1 EUR/pcs
20-49pcs - 0,8 EUR/pcs
50-     -0,7 EUR/pcs

(min. and max Quantity is changing.)

Many thanks. ;D





I need exactly the same, so still no solution in the core of VM2 or VM3?

Would be nice if customers had a way to see that one product has different prices per quantity as the example you mentioned.
http://www.comenaranjas.com - Navel oranges and clementines from Spain

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9415
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: listing multiple prices on product page
« Reply #18 on: March 09, 2015, 19:37:03 pm »
Buy the membership, it is included there.

The code for vm2.6 is

Code: [Select]
$usermodel = VmModel::getModel ('user');
$currentVMuser = $usermodel->getCurrentUser ();
if(!is_array($currentVMuser->shopper_groups)){
$virtuemart_shoppergroup_ids = (array)$currentVMuser->shopper_groups;
} else {
$virtuemart_shoppergroup_ids = $currentVMuser->shopper_groups;
}

$allPrices = VmModel::getModel('product')->loadProductPrices($this->product->virtuemart_product_id, 0,$virtuemart_shoppergroup_ids,true);

array_reverse($allPrices);

echo '<table>';
foreach($allPrices as $prices){

echo '<tr>';
echo '<td> '.$prices['price_quantity_start'] .'</td>';
echo '<td> '.$prices['price_quantity_end'] .'</td>';
echo '<td> '.$this->currency->priceDisplay($prices['product_price'])  .'</td>';
echo '</tr>';
}

echo '</table>';
 ?>
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

serge-web54

  • Beginner
  • *
  • Posts: 37
Re: listing multiple prices on product page
« Reply #19 on: August 18, 2015, 11:02:02 am »
hello,
I tried the code and put it into my layout, it works.
but i woul like to have tax included prices

what is the code to change it ?
thanks
Serge

nikolaoskai

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: listing multiple prices on product page
« Reply #20 on: March 31, 2016, 18:29:34 pm »
Hello, i know that this is an old post but i need some help please. The price listing working fine but how can i show seperate tax amount for every single price in product page.
Example:
Price: 150,00 from 0 to 10 Pieces (Tax amount 20$)
Price: 100,00 from 11 to 20 Pieces (Tax amount 15$)
Price: 50,00 from 21 to 30 Pieces (Tax amount 10$)

Many thanks

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7638
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: listing multiple prices on product page
« Reply #21 on: March 31, 2016, 20:50:20 pm »
echo out the $prices to see if tax is there

otherwise just do a calc on each price to work out the tax if it is always the same and display it
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

lausianne

  • Beginner
  • *
  • Posts: 5
Re: listing multiple prices on product page
« Reply #22 on: November 28, 2017, 18:04:29 pm »
Buy the membership, it is included there.

What membership? I'd love to buy, and to see what extra features there are, but can't find it.

EDIT: Finally I found this: http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail
I had seen donation links, but never read the small print. OMG. Used Virtuemart for the first time almost 10 years ago, never knew this existed. Please advertise more prominently!