Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pantelis 53 posts 107 karma points
    Oct 03, 2014 @ 18:25
    Pantelis
    0

    How can I work with 2 stores and the same content?

    Greetings,

    I have a tricky project for a customer, where the products are sold B2C and B2B. I detect B2B using membership and all is fine (displaying different prices etc), but I need to have 2 separate stores because there is a different manager for B2B orders, and also different shipping, taxation, payment methods for B2B.

    Whatever I do I can't seem to work with 2 stores on the same content tree :(

    Everything works fine with adding order lines, I get no errors back (either using storeId 1 or 2) but only the store selected in store picker works. If I select 1 then 1 works fine, and 2 *seems* to work fine, responds, no errors but doesn't update orders in the background!

    I'd appreciate any help!

  • Anders Burla 2560 posts 8256 karma points
    Oct 06, 2014 @ 09:13
    Anders Burla
    0

    Hi

    You should be able to create your own information extractor and override the HasAccess method and just return true. Then your products should be able to be added to both stores. Also be sure to check the share stock on the second store.
    http://documentation.teacommerce.net/net-api/product-information-extractor/customizing-umbraco/

    Kind regards
    Anders

  • Pantelis 53 posts 107 karma points
    Oct 07, 2014 @ 15:30
    Pantelis
    0

    Hi Anders,

    Thank you very much for the input, but it seems there's quite a bit more to it.

    This works but messes up with currency, I have a default store of "2", and when I add an item to store "1", the order gets a currency "1" (the single currency option of store "1"), the orderline originalunitprice gets currency "2" (the single currency option of store "2") and everything else (unitprice,totalprice, etc.) gets currency "0". And of course I get all kind of exceptions :-)

    Can you share some insight on this issue so I can fix it faster?

    Do I have to override every CalculateOrderLineUnitPrice, GetOriginalUnitPrices, etc. for this to work properly?

    The same issue applies to vat, but I think this should be along the same lines, if I fix currency I'll also fix vat.

    Kind regards,
    Pantelis

  • Anders Burla 2560 posts 8256 karma points
    Oct 08, 2014 @ 10:24
    Anders Burla
    0

    After futher review I dont think its possible to use same products for multiple stores because everything is build around that stores dont share stuff. So you will properly need two stores and then have your products as master products and then have B2C and B2B products that have the special prices but points using a content picker with the alias "masterRelation" to the main products where you have the image, text etc.

    Hope that helps you in some way :)

    Kind regards
    Anders

  • Pantelis 53 posts 107 karma points
    Oct 08, 2014 @ 12:01
    Pantelis
    0

    Hmm, that's a bit sad because I opted to recommend tea commerce because I (still) think it's the most powerful in customization.

    I might give it a try, but I guess I'll face the same issues with payment and shipping too.

    Alternatively I might suggest a single store with separate order statuses for B2B and B2C and doing some work to separate pricing, shipping and payment methods based on membership. It might need a bit work but I'm guessing this way is more safe in case we have any breaking changes in the future.

    If you have any other insight on this or come up with something else, please share!

    Kind regards,
    Pantelis 

  • Pantelis 53 posts 107 karma points
    Oct 08, 2014 @ 12:01
    Pantelis
    0

    Sorry, accidentally double posted :/

Please Sign in or register to post replies

Write your reply to:

Draft