Author Topic: Multiple prices - one stock  (Read 1395 times)

zheeka

  • Beginner
  • *
  • Posts: 10
Multiple prices - one stock
« on: May 25, 2015, 11:11:21 am »
Hello!

Can the following scenario be possible in virtuemart:
I have 100 t-shirts I want to sell, and I offer them with print or without print. Base item is a t-shirt with print, but if you buy at least one, you can order also one without print which is cheaper. I want it to be in the same item page, and they have to deduct sold items from the same stock.
Thanx

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1372
Re: Multiple prices - one stock
« Reply #1 on: May 25, 2015, 11:13:45 am »

zheeka

  • Beginner
  • *
  • Posts: 10
Re: Multiple prices - one stock
« Reply #2 on: May 25, 2015, 11:53:21 am »
Sadly that is not the solution, the buyer has to be able to add as many shirts with print and without print as he wants..

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27466
  • Always on vacation
    • Jenkin Hill Internet
Re: Multiple prices - one stock
« Reply #3 on: May 25, 2015, 11:55:49 am »
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

zheeka

  • Beginner
  • *
  • Posts: 10
Re: Multiple prices - one stock
« Reply #4 on: May 25, 2015, 12:33:58 pm »
Try this  http://awodev.com/

Thanx Jenkinhill, but that's not it either... Maybe I should explain my idea more in depth: I gave the t-shirt example just because nobody answered my previous question that's been on the forum for days, but the logic is the same... and now I need the solution quickly, or at least I need to know if it's even possible to do it with Virtuemart.

I'm selling daily excursions. On my item page I need the possibility to add to cart adult travelers (full price) and children (price with discount). Besides that, possibly the biggest problem, is the fact that adults and children need to have one stock (ex. 50 seats in a bus).

Can this be done?
Thanx!

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1372
Re: Multiple prices - one stock
« Reply #5 on: May 25, 2015, 13:01:58 pm »
The viable solution i can think, is a custom field indicating if parent or child formatting the price accordingly.
Now if you want your users to add 2 products in the cart from the product details page, you need some customization to do that

zheeka

  • Beginner
  • *
  • Posts: 10
Re: Multiple prices - one stock
« Reply #6 on: May 25, 2015, 13:07:23 pm »
The viable solution i can think, is a custom field indicating if parent or child formatting the price accordingly.
Now if you want your users to add 2 products in the cart from the product details page, you need some customization to do that

Maybe it will be best to show you what I need with the help of an image. I've attached it to the post. (ignore the "choose your date" field)

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1372
Re: Multiple prices - one stock
« Reply #7 on: May 25, 2015, 17:57:07 pm »
Beyond the visual representation you have to think how this will work in the current environment.
So you have 1 product (seats) with stock 50

in each order you want that product to be flagged either as adult or as child, so you need a custom field for that.
Also you need to add 2 products in the cart from the same page, which i think needs some customization.

zheeka

  • Beginner
  • *
  • Posts: 10
Re: Multiple prices - one stock
« Reply #8 on: May 26, 2015, 12:42:01 pm »
Beyond the visual representation you have to think how this will work in the current environment.
So you have 1 product (seats) with stock 50

in each order you want that product to be flagged either as adult or as child, so you need a custom field for that.
Also you need to add 2 products in the cart from the same page, which i think needs some customization.

agreed. Let's try another way - can children have their parents stock?

john-doe

  • Jr. Member
  • **
  • Posts: 106
Re: Multiple prices - one stock
« Reply #9 on: September 28, 2015, 17:49:39 pm »
Greetings i'm looking for a similar solution since my client's site is a transportation for travel with similar issue. Selecting for Adults and Children for a same way of transportation