1

This question is a followup question to my prior question ...

Consider authenticated users of site are "STOREs". Any store (= user) should be able to set the product's price in their profile. So that product A sells at 200$ for Store B and sells at 150$ for Store C. How can I do it? I want Stores can set their price in their profile.

  • This question is likely to get closed because it does not fit the community rules around asking specific questions that contain some semblance of what you have attempted. drupal.stackexchange.com/help/closed-questions With that out of the way, have you looked at drupal.org/project/commerce_pricelist ? – joshmiller Mar 2 '16 at 21:16
  • @Hamed in case you want to try to address the possible reason why this question may be put on hold (cfr prior comment), I suggest you briefly explain what you already have setup (maybe link to your prior question?), and what the missing piece of your puzzle is. – Pierre.Vriens Mar 2 '16 at 21:40
  • @joshmiller Commerce pricelist isn't useful. because is not my mean. please see my prior question. drupal.stackexchange.com/questions/193288/… – Hamed Mar 2 '16 at 21:51
  • @pierre You are a Helpful man. I respect to you. ;) – Hamed Mar 2 '16 at 21:55
  • @Hamed in that case you will need to use a field collection drupal.org/project/field_collection on the user entity (with a product reference and price field) and then use Pricing Rules drupalcommerce.org/user-guide/product-pricing-rules-screencasts to set the price to the specified field to change the price. To be useful you would probably need some form of context to know which user to load and which price to use. – joshmiller Mar 2 '16 at 22:01
0

Assuming that you are using the Flag module (as I suggested in my answer to your prior question to "How authenticated users can choose favorite products and show them in their profile?", you could implement an extra (price) field when you define a flag. Such field can then be used to store the Product's price.

So if a user (= Store) then flags a product (to indicated "This store sells this product"), such user could use the extra field to actually indicate the price for that store.

Refer to the community documentation about Attaching fields to flags for more details about this.

  • 1
    Woowww... Great... You are GENIUS... Thank you Pierre – Hamed Mar 3 '16 at 8:33
  • Merci (oeps: thank you) for the accept (and the kudos)! Keep me informed (eg via some extra comment around here) if you ever have a "next question", ok? FYI: now that you know the kind of things you can do with the Flag module, you might want to look at how the Rules module works great for all sorts of combinations (integrations) of both modules. To get a heads up of what I mean, have a look at these questions ... – Pierre.Vriens Mar 3 '16 at 9:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.