CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Can we offer two items with the same price on a price set ?
Pages: [1]

Author Topic: Can we offer two items with the same price on a price set ?  (Read 1967 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Can we offer two items with the same price on a price set ?
June 08, 2008, 02:35:11 pm
Hello,

I'm trying to offer several options for the hotel:

1) Single 
2)  twin bed
3) double bed

The last two having the same price. However I got:

Quote
Please correct the following errors in the form fields below:

    * Duplicate option value

How to avoid that ? (a hack will do...)


X+


-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Can we offer two items with the same price on a price set ?
June 08, 2008, 07:29:32 pm
Make one of them $79.99 and the other $80  ;)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Can we offer two items with the same price on a price set ?
June 09, 2008, 01:59:47 pm
I really wouldn't mind, but these stange accountant persons are quite anal on these little rounding cents, and I'm sure going to have a hell of a time trying to explain that to them ;)

Can I just get it of that check of unique value or is that going to have no good for my karma effects down the road ?


X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can we offer two items with the same price on a price set ?
June 09, 2008, 02:46:54 pm

we've reused the option group/value data model for price sets, which in retrospect is just wrong for price sets (since items could have same value, but the data model does not allow it in a clean manner). we store the value, in this case it would be the same price. So even if u hack the rule, at the end, you wont have the info on who chose the single/twin/double bed

so introducing an artificial price difference between the three might be your only reasonable option at this stage (yes, it does suck)

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Can we offer two items with the same price on a price set ?
June 09, 2008, 08:45:59 pm
So make one 79.99 and the other 80.01 and the accountants might be able to sleep at nights ;-)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can we offer two items with the same price on a price set ?
June 15, 2008, 05:56:34 pm

This will be fixed in 2.1: http://issues.civicrm.org/jira/browse/CRM-3209

I will checkin the changes needed for this later today

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Can we offer two items with the same price on a price set ?

This forum was archived on 2017-11-26.