It's odd that I've run into this in three of four store CMS systems I've put online for clients. The first time was in a Zen Cart (a ways back) implementation. Now I've run into it twice in Drupal 6 and Drupal 7 implementations.
Here's the current scenario. I am working on a jewelry site that has core products (for illustration let's say a particular necklace).
I have the following modules working in addition to a current Drupal Commerce (installed from Kickstart):
Customizable Products
Product Attributes
Product Options
Product Option Set Reference
When a shopper views the necklace and decides to purchase it, there are some options. I'm using the Option Set to add the sets of options to the product.
1. The shopper can specify a word to be engraved onto the necklace (done... easy)
2. The shopper can specify a birthstone to be on the necklace (done... easy)
3. The shopper can add additional discs, each with engraving to the necklace and each disc adds $5 to the cost (stumped... difficult)
The problem is I can create a way for them to add the additional discs and even to specify letters for engraving the additional disc. What I cannot figure out is how to add to the cost of the item the $5 per additional disc added.
I tried adding a field to the option set with the type of price but that lets the shopper fill in a price value like a text field.
At this point I'm researching using rules to programmatically add the cost. This doesn't appear to be a very easy-to-configure method.
This is a consistent issue across ecommerce platforms I've worked with. Anyone have any suggestions for solving it on this site?
Comments
Using Rules seems like the
Using Rules seems like the logical answer
I was afraid you'd say
I was afraid you'd say that... can you point me to a good (make that great) resource for documentation on doing it that way?
Watch this
Watch this http://www.drupalcommerce.org/node/461
And there's also this
And there's also this http://dev.nodeone.se/en/learn-the-rules-framework
I haven't watched this particular one yet, but what I have watched in the Node One Learning Drupal series has been fantastic
And there's also this
And there's also this http://dev.nodeone.se/en/learn-the-rules-framework
I haven't watched this particular one yet, but what I have watched in the Node One Learning Drupal series has been fantastic
Does anybody has a working
Does anybody has a working rule for this particular problem? My problem is very similar to the one above so any help would be appreciated.
Thanks.
how to add a rule so option sets can change price
I have this working on a commerce site now. Basically you create a custom module that allows rules to access commerce options. You then create a rule so when a commerce option is selected, the price of the line item changes. Here are the steps:
I hope these instructions work for you - I'm using this setup on 2 sites and it's working great - now I just need to figure out how to update prices dynamically....
Hi,kbrinner.
Hi,kbrinner.
Does this only work for version 7.x-1.0-beta2 ?
I use 7.x-2.x-dev but don't see a 'Commerce Options - Compare Options' item.
Commerce Pricing Attributes
Does the job perfectly. https://drupal.org/project/commerce_pricing_attributes :)