Copied to clipboard

Flag this post as spam?

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


  • Tom Steer 161 posts 596 karma points
    Mar 17, 2013 @ 17:01
    Tom Steer
    0

    Tea Commerce 2.0 - Products In Multiple Categories

    Hello,

    I was just checking out the new Tea Commerce (Looks great). However I couldn't see a way to have a product in mutiple categories. Is this something you can do in Tea Commerce 2.0 without actually duplicating the product?

    Many Thanks,

    Tom

  • Dan 1288 posts 3921 karma points c-trib
    Mar 17, 2013 @ 19:20
    Dan
    0

    Hi Tom,

    I'm not sure if the TeaCommerce guys have any other suggestions, but the way I see it is that TeaCommerce is very much based on the 'Umbraco way' of doing things, and uses the same content tree and document types as the rest of your Umbraco solution - you have full control to customise them.  How the products and categories are structured is ultimately the decision of the developer, so it's totally possible to de-couple the categories and product structures so that you have a content node containing products and another containing your categories (and sub-categories etc).  On your category document types you could then have a product picker data-type (possibly a multi-node tree picker) which allows you to select multiple products for that category.  Or you could do it the other way around so that you can pick the categories as a multi-node tree picker on the product data types.

    Albeit not with TeaCommerce, I've done this before with a product-driven site which requires products be in more than one category and it works nicely.

    Like I say, others may have other solutions, but this is probably the way I'd tackle it.

  • Anders Burla 2560 posts 8256 karma points
    Mar 18, 2013 @ 08:44
    Anders Burla
    1

    Hi Tom and Dan

    Dan - thanks for helping out! And that is indeed correct. Tea Commerce use the Umbraco content structure for categories and products and this means you can structure it as you desire and the customer needs. The cool tool Tea Commerce has is in 2.0 its called "masterRelation". Just add a content picker to your product doc type and call the alias of it "masterRelation". When you have a product with this property and it has another product picked as its master - Tea Commerce will look for information at the master product if the child product doesnt have the info (When using TC.GetPropertyValue). This means you can have a master product catalog with you products and its prices and then have the specific products in multiple categories in the main Umbraco structure and then point to the master. Then you only need to have the price in one place and the webshop owner can edit it one place and all products will change to that price.

    But as Dan said - you can do it in a million different ways :)

    Kind regards
    Anders

  • Tom Steer 161 posts 596 karma points
    Mar 18, 2013 @ 09:12
    Tom Steer
    0

    Hi Both,

    Thanks for the quick reply :). With regards to the masterRelation alias does the same functionlity work on categories?

    Cheers,

    Tom

  • Anders Burla 2560 posts 8256 karma points
    Mar 18, 2013 @ 09:23
    Anders Burla
    0

    Yeah - it works on everything :) It works just like inheritance in programming (almost) :)

    Site 1
     - Category 1 (has master to MCategory 1)
       - Product 1 (has master to MProduct 1)
    Master products
     - MCategory 1
       - MProducts 1

    Now when Tea Commerce looks for the info it tries to find the info at Product 1 then Category 1 and then Site 1. If info isnt found it see if Product 1 has a master (if it doesnt it tried to see if Category 1 has) Becuase Product 1 has a master it now jumps to MProduct1 and then again looks recursive.

  • Dan 1288 posts 3921 karma points c-trib
    Mar 18, 2013 @ 09:59
    Dan
    0

    So this would explain 'master products' in the new Starter Kit.  I was wondering what that was about but hadn't investigated fully just yet.  Nice!

  • Tom Steer 161 posts 596 karma points
    Mar 18, 2013 @ 10:05
    Tom Steer
    0

    Thats great thanks for explaining that Anders.

    Just one more quick question. Does Tea Commerce have a discount module included, something like uWebShop has?

    Thanks,

  • Anders Burla 2560 posts 8256 karma points
    Mar 18, 2013 @ 10:52
    Anders Burla
    0

    Your welcome.

    Not out of the box - we have it in our pipeline but not planned yet. BUT the way to do it is quite simple. You just inherit from our OrderCalculator and then overrides the method that calculates the price for an order line. That is it. You then write your custom discount function in there.

Please Sign in or register to post replies

Write your reply to:

Draft