Author Topic: Custom Prices based by selection  (Read 92 times)

Niko

  • Beginner
  • *
  • Posts: 45
Custom Prices based by selection
« on: September 14, 2017, 09:12:14 am »
Hi All.

I have a client that is in need of a shopping cart that can handle the sale of gas and gas cylinders.
The trick is that the user should be able to select that they are returning an empty cylinder deposit, and the price adjusts lower. I have setup a cart that increases the price, however, this is proving a bit more tricky for me.

The formula is as such:
Product A = $100
If a user purchases product A, but has an empty cylinder to return, it will cost $50
If a user purchases product A, and does not have an empty deposit (cylinder), it will cost $100

It is an "extra", but one that if the user selects, it will deduct the total price.

Additionally, a user may have more than one return deposit, therefore, decreasing the total price of Product A.

I hope this makes sense, and it is not too difficult to achieve. Thank you for your response

Niko

  • Beginner
  • *
  • Posts: 45
Re: Custom Prices based by selection
« Reply #1 on: September 20, 2017, 15:07:51 pm »
EDiT -

Some helpful understanding.

I would like to achieve the ability to have a variant that has its own quantity selector, that affects the overall price.
So for example. If we were selling Tshirts, and you can add more than one badge, so you would select 4 badges and if affected the price. - In my situation, I would need this to be a price negative affect.
Users should be able to select how many deposits they would like to return, affecting the price by applying the credit to the cart the more deposits are returned.

I hope this gives more understanding.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9327
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Custom Prices based by selection
« Reply #2 on: September 22, 2017, 10:29:18 am »
So you want the substract and not to add? you ever tried to use the minus sign in the customfield price field?
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/