Author Topic: 1 Product 3 Prices (Offer option)  (Read 898 times)

djad

  • Beginner
  • *
  • Posts: 1
1 Product 3 Prices (Offer option)
« on: January 09, 2014, 15:31:53 pm »
Hello, i need some help with the Product Attributes

I got a Product and a fix Price
BUT...

I want to offer the Products in Sets, that means, you can choose a:
5 Set Saving Packe and
10 Set Saving Package

..for a good price

I have realized that in a way with "custom filed" but it calculates the price
5 Pieces+95 €
10 Pieces+166€

this seems weird for customers and i got to put a option that "reset" the price if someone chose accidently the set price.
"no set +0 €"

So all i want is a price switcher without calculating the price is visible.
Is there another way to switch the prices for the "saving sets" ?

If someone chosse a Set the price must swith to the set price. but standart price got to be the fix price

I got the Virtuemart 2.0.24c with the Yagendoo Footprint Template. Also there is the Product Attribute Plugin installed.

I hope you guys undtstand this what i want.. :)


joommasters

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 25
  • Skype Name: tungpscnc
Re: 1 Product 3 Prices (Offer option)
« Reply #1 on: January 10, 2014, 08:00:31 am »

spike1968

  • Jr. Member
  • **
  • Posts: 140
Re: 1 Product 3 Prices (Offer option)
« Reply #2 on: September 12, 2017, 16:13:47 pm »
I found this topic while looking for something else, thought i would present my solution without using a plugin... still needs some tweaks...

Code: [Select]
echo '<div class="quantity"><h4>'.vmText::_('COM_VIRTUEMART_PRODUCT_QUANTITY_HEADER').'</h4>';
foreach($allPrices as $prices) {
echo '<span> '.$prices['price_quantity_start'];
if ($prices['price_quantity_end'] == '0') {
echo ' + ' .vmText::_('COM_VIRTUEMART_QUANTITY_VALUE').' @ ';
} else {
echo  ' - ' .$prices['price_quantity_end']. ' ' .vmText::_('COM_VIRTUEMART_QUANTITY_VALUE').' @ ';
}
echo $this->currency->priceDisplay($prices['product_price']). ' ' .vmText::_('COM_VIRTUEMART_QUANTITY_CASE'). ' ' . vmText::_('COM_VIRTUEMART_QUANTITY_VAT').'</span>';
echo '<br />';
}

Use this in productdetails override