Announcement

Collapse
No announcement yet.

Quick Look or Quick View of Product

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

    #31
    Re: Quick Look or Quick View of Product

    Originally posted by Dan - Glendale Designs View Post
    This can be done without the use of a module. Miva Merchant has posted an example here, can pretty much be expanded from there: http://www.mivamerchant.com/blog/how...merchant-store

    Thanks Dan, I missed this example.

    Thanks to all that replied.
    Dan

    Girlfriends Lingerie - "Keeping It Sexy!"
    Sexy Lingerie - Twitter - Facebook- Pinterest - YouTube

    Comment


      #32
      Re: Quick Look or Quick View of Product

      Have been trying to tackle this. Got quick_look=1 to fire up the alternate page yet i cant get the fancybox to fire the display.

      I added this to the Category Display (CTGY)
      <script type="text/javascript">
      $(document).ready(function() {
      $(".fancybox").fancybox();
      });
      </script>

      <!-- Add jQuery library -->
      <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>

      <!-- Add mousewheel plugin (this is optional) -->
      <script type="text/javascript" src="/Merchant2/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>

      <!-- Add fancyBox -->
      <link rel="stylesheet" href="/Merchant2/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
      <script type="text/javascript" src="/Merchant2/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>

      <!-- Optionally add helpers - button, thumbnail and/or media -->
      <link rel="stylesheet" href="/Merchant2/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" type="text/css" media="screen" />
      <script type="text/javascript" src="/Merchant2/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
      <script type="text/javascript" src="/Merchant2/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.6"></script>

      <link rel="stylesheet" href="/Merchant2/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" type="text/css" media="screen" />
      <script type="text/javascript" src="/Merchant2/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>
      I have tried to alter the paths yet nothing has fired. Everything uploaded to /Merchant2/ even root to cover all angles. Perhaps im calling for it wrong, i dunno..Just cant figure it out. I have also tried to slap the code in the Category product list layout also, nothing. Can anyone shed some light on this. This a MMUI site. I followed the example Miva setup i think to the letter as i can see a quick_look=1 when added to the end of a url... yet i just cant get it to load within fancybox.

      Any suggestions, would appreciate it.

      EDIT - adding /Merchant2/ appears to load the scripts, yet still when pressing the activate link in ctgy prod list layout it wont fire.

      That looks like this

      <a title="Product Name" class="fancybox" href="domain url/&mvta:product:code;.html?quick_look=1">Quick Look</a>
      Last edited by Datagg; 08-27-13, 07:45 PM.
      Dan

      Girlfriends Lingerie - "Keeping It Sexy!"
      Sexy Lingerie - Twitter - Facebook- Pinterest - YouTube

      Comment


        #33
        Re: Quick Look or Quick View of Product

        I have tried so many things, burnt out... I give up, the sand man is harassing me.
        Dan

        Girlfriends Lingerie - "Keeping It Sexy!"
        Sexy Lingerie - Twitter - Facebook- Pinterest - YouTube

        Comment


          #34
          Re: Quick Look or Quick View of Product

          Originally posted by Brennan View Post
          Hey Guys -

          While you can use image machine on the CTGY, PLST, SRCH pages, it would only be good at showing an image, not necessarily a true quick look which usually allows you to buy from that page. We did a quick look for one of our clients:

          http://www.scottevest.com/v3_store/subindex_shirts_hoodies.shtml

          I
          t uses a light box to display a new product page template we created for the smaller space. When you click on the quick look button the light box loads the regular Miva PROD page where we pass a parameter in url for quicklook (&quicklook=1)

          We then check for this parameter on the PROD page and if it exists we display a different version of the product page template, one that fits in the smaller space.

          To keep the code clean we separate out this code into its own tab using the Miva Content Item.

          Here is the code we have on the PROD page:

          Code:
          <mvt:if expr="g.quicklook EQ 1 ">
              <mvt:item name="quicklook_template" param="content" />
              <mvt:exit />
          </mvt:if>
          This is a simple way to get a completely different template to show for things like this where you need a different layout. This combined with a simple lightbox script (Here were using fancybox) can give you a really nice functioning quicklook on your category pages.
          I think i followed that article to the letter, but i just cant get it the fancybox to fire. Could something have changed perhaps since it was written?... any help to assist me in what the heck im doing wrong here I thank you.
          Dan

          Girlfriends Lingerie - "Keeping It Sexy!"
          Sexy Lingerie - Twitter - Facebook- Pinterest - YouTube

          Comment


            #35
            Re: Quick Look or Quick View of Product

            Originally posted by Datagg View Post
            I think i followed that article to the letter, but i just cant get it the fancybox to fire. Could something have changed perhaps since it was written?... any help to assist me in what the heck im doing wrong here I thank you.
            I seem to rememeber having to change a couple of things from the tutorial

            Head section of CTGY page.
            Code:
            <script type="text/javascript" src="js/fancybox/lib/jquery-1.9.0.min.js"></script><script type="text/javascript" src="js/fancybox/source/jquery.fancybox.js?v=2.1.4"></script>
            <link rel="stylesheet" type="text/css" href="js/fancybox/source/jquery.fancybox.css?v=2.1.4" media="screen" />
            	<script type="text/javascript">
            		$(document).ready(function() {
            			/*
            			 *  Simple image gallery. Uses default settings
            			 */
            
            
            			$('.fancybox').fancybox();
            
            
            			/*
            			 *  Different effects
            			 */
            
            
            			// Change title type, overlay closing speed
            			$(".fancybox-effects-a").fancybox({
            				helpers: {
            					title : {
            						type : 'outside'
            					},
            					overlay : {
            						speedOut : 0
            					}
            				}
            			});
            
            
            			// Disable opening and closing animations, change title type
            			$(".fancybox-effects-b").fancybox({
            				openEffect  : 'none',
            				closeEffect	: 'none',
            
            
            				helpers : {
            					title : {
            						type : 'over'
            					}
            				}
            			});
            
            
            			// Set custom style, close if clicked, change title type and overlay color
            			$(".fancybox-effects-c").fancybox({
            				wrapCSS    : 'fancybox-custom',
            				closeClick : true,
            
            
            				openEffect : 'none',
            
            
            				helpers : {
            					title : {
            						type : 'inside'
            					},
            					overlay : {
            						css : {
            							'background' : 'rgba(238,238,238,0.85)'
            						}
            					}
            				}
            			});
            
            
            			// Remove padding, set opening and closing animations, close if clicked and disable overlay
            			$(".fancybox-effects-d").fancybox({
            				padding: 0,
            
            
            				openEffect : 'elastic',
            				openSpeed  : 150,
            
            
            				closeEffect : 'elastic',
            				closeSpeed  : 150,
            
            
            				closeClick : true,
            
            
            				helpers : {
            					overlay : null
            				}
            			});
            
            
            			/*
            			 *  Button helper. Disable animations, hide close button, change title type and content
            			 */
            
            
            			$('.fancybox-buttons').fancybox({
            				openEffect  : 'none',
            				closeEffect : 'none',
            
            
            				prevEffect : 'none',
            				nextEffect : 'none',
            
            
            				closeBtn  : false,
            
            
            				helpers : {
            					title : {
            						type : 'inside'
            					},
            					buttons	: {}
            				},
            
            
            				afterLoad : function() {
            					this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
            				}
            			});
            
            
            
            
            			/*
            			 *  Thumbnail helper. Disable animations, hide close button, arrows and slide to next gallery item if clicked
            			 */
            
            
            			$('.fancybox-thumbs').fancybox({
            				prevEffect : 'none',
            				nextEffect : 'none',
            
            
            				closeBtn  : false,
            				arrows    : false,
            				nextClick : true,
            
            
            				helpers : {
            					thumbs : {
            						width  : 50,
            						height : 50
            					}
            				}
            			});
            
            
            			/*
            			 *  Media helper. Group items, disable animations, hide arrows, enable media and button helpers.
            			*/
            			$('.fancybox-media')
            				.attr('rel', 'media-gallery')
            				.fancybox({
            					openEffect : 'none',
            					closeEffect : 'none',
            					prevEffect : 'none',
            					nextEffect : 'none',
            
            
            					arrows : false,
            					helpers : {
            						media : {},
            						buttons : {}
            					}
            				});
            
            
            			/*
            			 *  Open manually
            			 */
            
            
            			$("#fancybox-manual-a").click(function() {
            				$.fancybox.open('1_b.jpg');
            			});
            
            
            			$("#fancybox-manual-b").click(function() {
            				$.fancybox.open({
            					href : 'iframe.html',
            					type : 'iframe',
            					padding : 5
            				});
            			});
            
            
            			$("#fancybox-manual-c").click(function() {
            				$.fancybox.open([
            					{
            						href : '1_b.jpg',
            						title : 'My title'
            					}, {
            						href : '2_b.jpg',
            						title : '2nd title'
            					}, {
            						href : '3_b.jpg'
            					}
            				], {
            					helpers : {
            						thumbs : {
            							width: 75,
            							height: 50
            						}
            					}
            				});
            			});
            
            
            
            
            		});
            	</script>
            	<style type="text/css">
            		.fancybox-custom .fancybox-skin {
            			box-shadow: 0 0 50px #222;
            		}
            
            	</style>
            feel free to view the source of a ctgy page and grab those versions on fancybox
            http://www.vermontgear.com/Filcoats.html
            Mark Hood
            Vermont Gear

            Comment


              #36
              Re: Quick Look or Quick View of Product

              Thanks Mark.... Got it to work.

              Ended up doing this in CTGY head


              <!-- Add jQuery library -->
              <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>

              <!-- fancyBox -->
              <link rel="stylesheet" href="/Merchant2/css/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
              <script type="text/javascript" src="/Merchant2/js/jquery.fancybox.pack.js?v=2.1.5"></script>


              <script>
              $(document).ready(function() {
              $(".various").fancybox({
              maxWidth : 990,
              maxHeight : 640,
              fitToView : false,
              width : '990',
              height : '640',
              autoSize : false,
              closeClick : false,
              openEffect : 'true',
              closeEffect : 'true'
              });
              });
              </script>
              Then to call it into action on the CTGY product list layout

              <a class="various" data-fancybox-type="iframe" href="your url here/&mvta:product:code;.html?quick_look=1">Quick Look</a>
              There is a newer version of fancy box Mark, dunno if it matters any in the end. Now if I can just figure out how to get a message of "quick view" to float over the thumbs instead of just a text link at the bottom ill be golden. Also trying to figure out how to bust out of the iframe. When the quick page opens and pressing add to cart, it loads in the same window. First thought is to use on the quick page "add to cart" is a target="_top" or _blank, but that's just gonna reload a page on top of the original.
              Dan

              Girlfriends Lingerie - "Keeping It Sexy!"
              Sexy Lingerie - Twitter - Facebook- Pinterest - YouTube

              Comment


                #37
                Re: Quick Look or Quick View of Product

                target="_parent"
                Last edited by Mark Hood; 08-28-13, 10:42 AM.
                Mark Hood
                Vermont Gear

                Comment


                  #38
                  Re: Quick Look or Quick View of Product

                  Code:
                  <form method="post" action="&mvte:global:sessionurl;Screen=BASK" onsubmit="javascript:parent.jQuery.fancybox.close();" target="_parent" name="purchase-form" id="purchase-form" >
                  		  <input type="hidden" name="Old_Screen" value="&mvte:global:Screen;" />
                  			<input type="hidden" name="Old_Search" value="&mvte:global:Search;" />
                  			<input type="hidden" name="Action" value="ADPR" />
                    			<input type="hidden" name="Store_Code" value="&mvte:store:code;" />
                  			<input type="hidden" name="Product_Code" value="&mvte:product:code;" />
                  			<input type="hidden" name="Category_Code" value="&mvte:global:category_code;" />
                  			<input type="hidden" name="Offset" value="&mvte:global:Offset;" />
                  			<input type="hidden" name="AllOffset" value="&mvte:global:AllOffset;" />
                  			<input type="hidden" name="CatListingOffset" value="&mvte:global:CatListingOffset;" />
                  			<input type="hidden" name="RelatedOffset" value="&mvte:global:RelatedOffset;" />
                  			<input type="hidden" name="SearchOffset" value="&mvte:global:SearchOffset;" />
                  			<div id="swatches" class="swatches"></div><br class="clear">
                  			<div class="product-attributes">
                  			<mvt:item name="product_attributes" param="product:id" />
                  			</div>		
                  <label for="product-quantity" class="product-quantity-label">Quantity:</label>
                  <input type="text" name="Quantity" value="1" id="product-quantity" class="product-quantity-input textfield" />
                  			<mvt:item name="buttons" param="AddToBasket" />
                  		</form>
                  Mark Hood
                  Vermont Gear

                  Comment


                    #39
                    Re: Quick Look or Quick View of Product

                    You Rock Mark. Thank you!!!
                    Dan

                    Girlfriends Lingerie - "Keeping It Sexy!"
                    Sexy Lingerie - Twitter - Facebook- Pinterest - YouTube

                    Comment


                      #40
                      Re: Quick Look or Quick View of Product

                      <div class="quickbutton fancybox fancybox.iframe" href="http://www.vermontgear.com/&mvt:product:code;.html?quick_look=1"></div>


                      my css thanks to Miva
                      Code:
                      #quick_look{
                      width:90%;
                      background-color:#fff;
                      height:500px;
                      	}
                      
                      
                      #quicklookleft {
                        float:left;
                      	width:100%;
                      }
                      #quicklookright {
                        float:right;
                      	width:100%;
                      }
                      .quicktext {
                      	font-size: 14px;
                      	font-weight:bold;
                      }
                      #quickbutton {
                      position: absolute;
                      z-index: 2000;
                      height: 26px;
                      width: 132px;
                      margin-top:40px;
                      text-align:center;
                      display: block;
                          margin-left: auto;
                          margin-right: auto;
                      }
                      #quickbutton:hover {
                      position: absolute;
                      z-index: 2000;
                      height: 26px;
                      width: 132px;
                      background: url(../../js/fancybox/source/btn_quick-look.png)bottom center no-repeat;
                      margin-top:40px;
                      text-align:center;
                      display: block;
                          margin-left: auto;
                          margin-right: auto;
                      }
                      .quickbutton {
                      position: absolute;
                      z-index: 2000;
                      height: 26px;
                      width: 132px;
                      margin-top:40px;
                      text-align:center;
                      display: block;
                          margin-left: auto;
                          margin-right: auto;
                      }
                      .quickbutton:hover {
                      position: absolute;
                      z-index: 2000;
                      height: 26px;
                      width: 132px;
                      background: url(../../js/fancybox/source/btn_quick-look.png)bottom center no-repeat;
                      margin-top:40px;
                      text-align:center;
                      display: block;
                          margin-left: auto;
                          margin-right: auto;
                      }
                      Mark Hood
                      Vermont Gear

                      Comment


                        #41
                        Re: Quick Look or Quick View of Product

                        odd, looking at your site Mark im not seeing a image hover or quick view when going over cat thumbs.
                        Dan

                        Girlfriends Lingerie - "Keeping It Sexy!"
                        Sexy Lingerie - Twitter - Facebook- Pinterest - YouTube

                        Comment


                          #42
                          Re: Quick Look or Quick View of Product

                          Originally posted by Datagg View Post
                          odd, looking at your site Mark im not seeing a image hover or quick view when going over cat thumbs.
                          You'll have to try again... In my efforts to copy the code I think I managed to break it.
                          Mark Hood
                          Vermont Gear

                          Comment


                            #43
                            Re: Quick Look or Quick View of Product

                            works for me but you have to be on a category page which displays products and not subcategory thumbs.
                            Andreas Toman
                            PCINET, LLC

                            Miva Merchant Design, Development, Integration & Support
                            We built over 200 Miva Merchant stores!
                            Miva shopping cart design & integration service and see our Portfolio!


                            e-mail: [email protected]
                            web: www.pcinet.com
                            LinkedIn: Andreas Toman
                            phone: (786) 250-2056 (Miami, FL)

                            Comment


                              #44
                              Re: Quick Look or Quick View of Product

                              There it is.. Looks really great. still trying get that part to work here.
                              light years compared to last night though... I was going insane.
                              Last edited by Datagg; 08-28-13, 11:32 AM.
                              Dan

                              Girlfriends Lingerie - "Keeping It Sexy!"
                              Sexy Lingerie - Twitter - Facebook- Pinterest - YouTube

                              Comment


                                #45
                                Re: Quick Look or Quick View of Product

                                Here is a good guide to get you going. Some steps need clarification but it is pretty straight forward.

                                http://www.mivamerchant.com/blog/how...merchant-store

                                Comment

                                Working...
                                X