Announcement

Collapse
No announcement yet.

Add Product as attribute?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: Add Product as attribute?

    Luke -

    How did you (or what modules) do this on your store:

    After I add an item on your store to my cart, the page adds a little [one x item has been added to your cart *View Cart*]

    I love that. I have got some misc user feedback that they can't tell when the add button works.

    So, what's the magic!
    Thanks pre-emptively!

    Comment


      #17
      Re: Add Product as attribute?

      no module, simply store morph code. :)

      Code:
      <mvt:if expr="g.Action EQ 'ADPR'">
      
        <p class="success small">
      
          &mvte:global:Quantity;
      
          <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:color">
      
            (&mvt:product:customfield_values:customfields:color;)
      
          </mvt:if>
      
          &mvt:product:name;(s) have been added to your cart
      
          <mvt:if expr="l.settings:product:quantity NE g.Quantity">
      
            (&mvt:product:quantity; total in cart)
      
          </mvt:if>
      
          <a href="&mvt:global:sessionurl;/cart">View cart</a>
      
        </p>
      
      </mvt:if>
      Luke V.
      MC2 Design Group Inc. | Blog
      | Internet Explorer SUX and I HATE it! I <3 Firefox and Opera!




      Comment


        #18
        Re: Add Product as attribute?

        Thanks. Where are you putting that? Inside of every page code, or do you have your global setup so that you only had to insert it in one spot?

        Comment


          #19
          Re: Add Product as attribute?

          product page template
          Luke V.
          MC2 Design Group Inc. | Blog
          | Internet Explorer SUX and I HATE it! I <3 Firefox and Opera!




          Comment


            #20
            Re: Add Product as attribute?

            Originally posted by Luke
            Does anybody know of any specific reason why this may be extremely difficult or impossible? I plan on starting work on it, but I'd like to know if it is impossible. Thanks!
            I'll probably have nightmares just because I thought about it.
            Bill Guindon
            [email protected]

            Comment


              #21
              Re: Add Product as attribute?

              Wasn't that difficult. The difficult part would be making it resellable and at all flexible. I have no idea how I would do that with mivascript. If it was PHP or something I was more comfortable, I could probably do it.
              Luke V.
              MC2 Design Group Inc. | Blog
              | Internet Explorer SUX and I HATE it! I <3 Firefox and Opera!




              Comment


                #22
                Re: Add Product as attribute?

                What you did wasn't that difficult, but what you did was not the same as "Add Product as attribute", which is actually quite difficult, if you want it done right.

                What if they delete the 'parent' product?
                What if they change the quantity of the 'parent' product?
                What if the 'child' product has attributes?

                Those are just some of the questions, that doesn't even begin to touch on the code to actually add/remove the 'child' products in the basket.
                Last edited by aGorilla; 05-31-07, 05:09 PM.
                Bill Guindon
                [email protected]

                Comment


                  #23
                  Re: Add Product as attribute?

                  yes, this is what I meant by "making it resellable and at all flexible". There are quite a lot more issues than you even mentioned as well. We've gone over it extensively. :(
                  Luke V.
                  MC2 Design Group Inc. | Blog
                  | Internet Explorer SUX and I HATE it! I <3 Firefox and Opera!




                  Comment


                    #24
                    Re: Add Product as attribute?

                    Luke,

                    Looking at this page http://www.tarmadesigns.com/product/...accessory-cord

                    Did you use a module for this?

                    Thanks,

                    Terence

                    Comment


                      #25
                      Re: Add Product as attribute?

                      I wrote a sort of custom module for it. It is not perfect, but it got the job done. We use it (in different ways) on several sites:

                      http://www.indigenousdesigns.com/sho...s-havana-shirt
                      http://www.bagselect.com/pc/DG/OGI001A
                      http://www.printedimagechico.com/pro...fitted-t-shirt

                      It allows you to relate products to eachother through a custom field. It's pretty hacky.
                      Luke V.
                      MC2 Design Group Inc. | Blog
                      | Internet Explorer SUX and I HATE it! I <3 Firefox and Opera!




                      Comment


                        #26
                        Re: Add Product as attribute?

                        Originally posted by thall
                        Luke,

                        Looking at this page http://www.tarmadesigns.com/product/...accessory-cord

                        Did you use a module for this?

                        Thanks,

                        Terence
                        If you use the Attribute Templates module, then this is pretty simple. You set the attribute codes the same as the product code, then use the tokens and HTML to actually have it ADD that particular product.

                        In his other example, clicking the attribute image actually takes you to that product's page.

                        Both can be accomplished with the template module.
                        Best,
                        Pamela

                        Consultant / Developer / Trainer
                        Contributing Editor to Practical Ecommerce
                        Author of the Official Guides for Miva Merchant
                        pamelahazelton.com

                        Comment


                          #27
                          Re: Add Product as attribute?

                          Thanks for your comments. They've been helpful. Looks like the Attribute Template Module will do the trick.

                          Comment


                            #28
                            Re: Add Product as attribute?

                            Originally posted by DesignExtend-MSI
                            If you use the Attribute Templates module, then this is pretty simple. You set the attribute codes the same as the product code, then use the tokens and HTML to actually have it ADD that particular product.

                            In his other example, clicking the attribute image actually takes you to that product's page.

                            Both can be accomplished with the template module.
                            Thanks Pamela. I orderd Attribute Templates but I don't see much documentation on it. I know it supports radio buttons but does it support drop-down menus also?

                            I am also going to open a support case with Viking Coders but I figured I'd ask on the forum also.

                            Thanks,

                            Terence

                            Comment


                              #29
                              Re: Add Product as attribute?

                              Sebenza's Product Template Manager provides a full SMT attribute template. I have yet to find any updated MM5 docs for the Viking Coders module as well.

                              Comment


                                #30
                                Re: Add Product as attribute?

                                I've managed to find documentation on Viking Coders Attributes Template for anyone who needs it. Now I just need to figure out how to use it.

                                Comment

                                Working...
                                X