Announcement

Collapse
No announcement yet.

Dynamic Content in FaceBook - Time Sensitive

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

    #16
    Re: Dynamic Content in FaceBook - Time Sensitive

    What about simply displaying your Deal of the Day Page on the scaled down (narrow) FaceBook Page? That's what I tried to do with this app, but I did not get to far (Link). I have a link to my full size DEAL page that needs to be viewed in Facebook via horz/vert scroll bars. Idealy, I'd like the page to appear without having to click on a link AND have it show up formatted for the intended downsized window.
    Bronson Design Studio, LLC
    Website: bronsondesign.com
    Facebook: facebook.com/bronsondesign

    Comment


      #17
      Re: Dynamic Content in FaceBook - Time Sensitive

      Using that system you have to click the link to run the javascript on whatever page. The easiest thing to do is have the alternate page. That could be any new page you create in the store. The only thing on it would display the deal (not the whole deal page), kinda like I do on my storefront. This is part of the code on my storefront.

      Code:
      <mvt:item name="toolkit" param="import|current|deal.dat|" />
      <mvt:item name="toolkit" param="gettoken|g.current,#,1|currentday" />
      <mvt:item name="toolkit" param="gettoken|g.current,#,2|currentproduct" />
      <mvt:item name="toolkit" param="vproduct_find|prdfound|g.currentproduct" />
      <mvt:if expr="g.prdfound">
      <center>
      <h2>
      <a href="/DEAL.html" title="&mvt:key_product:name;">
      Deal of the Day</a> - 
      <mvt:if expr="s.dyn_tm_isdst">
      <mvt:item name="toolkit" param="set_time_zone|our_time|-4" />
      <mvt:else>
      <mvt:item name="toolkit" param="set_time_zone|our_time|-5" />
      </mvt:if>
      <mvt:item name="toolkit" param="time_t_year|nyear|our_time" />
      <mvt:item name="toolkit" param="time_t_month|nmonth|our_time" />
      <mvt:item name="toolkit" param="time_t_dayofmonth|ndayofmonth|our_time" />
      <mvt:item name="toolkit" param="sassign|months|Jan#Feb#Mar#Apr#May#Jun#Jul#Aug#Sep#Oct#Nov#Dec" />
      <mvt:item name="toolkit" param="vgettoken|months,#,nmonth|cmonth" /> 
      &mvte:global:cmonth; &mvt:global:ndayofmonth;, &mvt:global:nyear;
      </h2>
      <mvt:if expr="NOT ISNULL l.settings:key_product:thumbnail">
      <a href="/DEAL.html" title="&mvt:key_product:name;">
      <img src="&mvt:key_product:thumbnail;" border="0" alt="&mvt:key_product:name;"></a>
      </mvt:if>
      <br />
      <a href="/DEAL.html" title="&mvt:key_product:name;">
      &mvt:key_product:name;</a>
      <br />
      <b>Regular: </b>
      <font color="red">
      <s>&mvt:key_product:formatted_price;</s>  
      </font>
      &nbsp; &nbsp;
      <b>Today: </b> 
      <mvt:item name="toolkit" param="sassign|percentsave|.8" />
      <mvt:item name="toolkit" param="math_multiply|newprice|l.all_settings:key_product:adjusted_price|g.percentsave" />
      <mvt:item name="toolkit" param="currencyformat|formatted_newprice|g.newprice" />
      &mvte:global:formatted_newprice;
      </font>
      
      <mvt:item name="toolkit" param="ratingshow|rating|l.all_settings:key_product:id" />
      <mvt:if expr="g.rating:average GT 4">
      <table><tr><td align="center" valign="middle">
      <mvt:if expr="g.rating:average GT 4.5">
      <img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0">
      <mvt:elseif expr="(g.rating:average GT 4) AND (g.rating:average LE 4.5)">
      <img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkhalf.gif" border"0">
      <mvt:elseif expr="(g.rating:average GT 3.5) AND (g.rating:average LE 4)">
      <img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkzero.gif" border"0">
      <mvt:elseif expr="(g.rating:average GT 3) AND (g.rating:average LE 3.5)">
      <img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkhalf.gif" border"0"><img src="graphics/tkzero.gif" border"0">
      <mvt:elseif expr="(g.rating:average GT 2.5) AND (g.rating:average LE 3)">
      <img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0">
      <mvt:elseif expr="(g.rating:average GT 2) AND (g.rating:average LE 2.5)">
      <img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkhalf.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0">
      <mvt:elseif expr="(g.rating:average GT 1.5) AND (g.rating:average LE 2)">
      <img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0">
      <mvt:elseif expr="(g.rating:average GT 1) AND (g.rating:average LE 1.5)">
      <img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkhalf.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0">
      <mvt:elseif expr="(g.rating:average GT .5) AND (g.rating:average LE 1)">
      <img src="graphics/tkwhole.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0">
      <mvt:elseif expr="(g.rating:average GT 0) AND (g.rating:average LE .5)">
      <img src="graphics/tkhalf.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0"><img src="graphics/tkzero.gif" border"0">
      </mvt:if>
      <br />
      </td></tr>
      </table>
      </mvt:if>
      
      </center>
      </mvt:if>
      Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
      Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
      Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
      Facebook http://www.facebook.com/EmporiumPlus
      Twitter http://twitter.com/emporiumplus

      Comment


        #18
        Re: Dynamic Content in FaceBook - Time Sensitive

        The code I provided above is for a new page. Using any good analytics software you should be able to track clicks without any affiliate voodoo.
        Michael Davidson
        Picturesque
        http://picturesqueweb.com

        Comment


          #19
          Re: Dynamic Content in FaceBook - Time Sensitive

          You are just going to a single page in your example. When they click a product link, they are immediately taken away from FaceBook. If you want to keep the shopping experience within FaceBook, you need to tell Merchant that you are arriving from Facebook in an iframe and to serve up the FB version of product pages. Same way with searching, pagination, sorting, products per page all within FB. So the choice is a variable like fb=1 at the end of links or affiliate=fb. The added benefit of affiliate is you can see your actual sales from that portal with the built in affiliate system. You aren't doing payouts so it does not matter that the built in affilate doesn't work real well.
          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
          Facebook http://www.facebook.com/EmporiumPlus
          Twitter http://twitter.com/emporiumplus

          Comment


            #20
            Re: Dynamic Content in FaceBook - Time Sensitive

            Originally posted by wcw View Post
            Using that system you have to click the link to run the javascript on whatever page. The easiest thing to do is have the alternate page. That could be any new page you create in the store. The only thing on it would display the deal (not the whole deal page), kinda like I do on my storefront. This is part of the code on my storefront.
            Done. I now have a preview of our Deal of the Day on facebook. If customers are interested, they can click through to our miva store for details and to purchase. Thanks Bill!
            Bronson Design Studio, LLC
            Website: bronsondesign.com
            Facebook: facebook.com/bronsondesign

            Comment


              #21
              Re: Dynamic Content in FaceBook - Time Sensitive

              Nice. Would you like to share the full code in the FaceBook tab?
              Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
              Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
              Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
              Facebook http://www.facebook.com/EmporiumPlus
              Twitter http://twitter.com/emporiumplus

              Comment


                #22
                Re: Dynamic Content in FaceBook - Time Sensitive

                Originally posted by wcw View Post
                Nice. Would you like to share the full code in the FaceBook tab?
                Sure, but it's not much different than what you linked to in your original post.

                Code:
                 
                <a onCLick="outside_location.setInnerFBML(link_1);" style="cursor: pointer;">Click here to see our Deal of the Day...</a> 
                <div id="outside_location"></div>
                <fb:js-string var="link_1">
                <fb:iframe height="500" allowTransparency="true" frameborder="0" scrolling="no" style="width:100%; border:none" src="http://www.yourdomain.com/DEAL.html"></fb:iframe>
                </fb:js-string>
                <script type="text/javascript" charset="utf-8">
                var outside_location = document.getElementById('outside_location');
                </script>
                The facebook DEAL page was constructed with guidance from examples you tweeted last year. Toolkit and Coupon Redemption Modules are required.

                Code:
                 
                <mvt:item name="html_profile" />
                <head>
                 <title>&mvt:store:name;</title>
                 <base href="&mvt:global:basehref;">
                 <mvt:item name="head" param="css_list" />
                 <mvt:item name="head" param="head_tag" />
                </head>
                <mvt:item name="body">
                <div id="site-container" class="SFNT">
                 <div id="content-container"><center>
                  <mvt:item name="hdft" param="header" />
                  <div class="SFNT-featured">
                  <mvt:comment>Display the deal of the day</mvt:comment>
                  <mvt:item name="toolkit" param="sassign|cat_code|BDS" />
                  <mvt:if expr="s.dyn_tm_isdst">
                  <mvt:item name="toolkit" param="set_time_zone|our_time|-4" />
                  <mvt:else>
                  <mvt:item name="toolkit" param="set_time_zone|our_time|-5" />
                  </mvt:if>
                  <mvt:item name="toolkit" param="time_t_year|nyear|our_time" />
                  <mvt:item name="toolkit" param="time_t_month|nmonth|our_time" />
                  <mvt:item name="toolkit" param="time_t_dayofmonth|ndayofmonth|our_time" />
                  <mvt:item name="toolkit" param="sassign|months|Jan#Feb#Mar#Apr#May#Jun#Jul#Aug#Sep#Oct#Nov#Dec" />
                  <mvt:item name="toolkit" param="vgettoken|months,#,nmonth|cmonth" /> 
                 
                  <mvt:item name="toolkit" param="import|current|deal.dat|" />
                  <mvt:if expr="NOT ISNULL g.current">
                  <mvt:item name="toolkit" param="gettoken|g.current,#,1|currentday" />
                  <mvt:else>
                  <mvt:item name="toolkit" param="sassign|currentday|99" />
                  </mvt:if>
                 
                  <mvt:if expr="g.currentday EQ g.ndayofmonth">
                  <mvt:item name="toolkit" param="gettoken|g.current,#,2|currentproduct" />
                  <mvt:item name="toolkit" param="gettoken|g.current,#,3|Coupon_Generate_ID" />
                  <mvt:else>
                  <mvt:item name="toolkit" param="randomcat|pcount|g.cat_code|10" />
                  <mvt:if expr="pcount GT 0">
                  <mvt:item name="toolkit" param="sassign|gotimage|" />
                  <mvt:foreach iterator="sub_product" array="sub_products">
                  <mvt:if expr="NOT g.gotimage">
                  <mvt:item name="toolkit" param="vassign|currentproduct|l.all_settings:sub_product:code" />
                  <mvt:item name="toolkit" param="vproduct_find|productfound|g.currentproduct" />
                  <mvt:if expr="productfound GT 0">
                  <mvt:item name="toolkit" param="custom|dealstck|l.all_settings:key_product:id|STCK" />
                  <mvt:if expr="g.dealstck EQ 'In Stock'">
                  <mvt:item name="toolkit" param="sassign|gotimage|1" />
                  <mvt:item name="toolkit" param="mvassign|override|g.currentproduct$asciichar(124)" />
                  <!--
                  <mvt:item name="couponrd" param="22~DEAL-|g.override" />
                  //-->
                  <mvt:item name="toolkit" param="export|deal.dat^#^ndayofmonth,g.currentproduct,g.Coupon_Generate_ID^1" />
                  <mvt:item name="toolkit" param="mvassign|msg|'status='$encodeattribute('Deal of the Day - ' $ l.all_settings:sub_product:name $ '. Take an additional 25% off our reg low price of ' $ l.all_settings:sub_product:formatted_price $ ' http://www.yourdomain.com/Merchant2/...)$&#39;p=&#39; $ l.all_settings:sub_product:code)" />
                  <mvt:item name="toolkit" param="export|deal.msg^#^g.msg^1" />
                  <mvt:item name="toolkit" param="mvassign|ok|fscopy('/Merchant5/s01/export/deal.msg','/deal.msg')" />
                  <mvt:item name="toolkit" param="mvassign|ok|schmod('/deal.msg', '0644')" />
                  </mvt:if>
                  </mvt:if>
                  </mvt:if>
                  </mvt:foreach>
                  <mvt:if expr="NOT g.gotimage">
                  <mvt:item name="toolkit" param="randomcat|pcount|g.cat_code|1" />
                  <mvt:if expr="pcount GT 0">
                  <mvt:foreach iterator="sub_product" array="sub_products">
                  <mvt:item name="toolkit" param="vassign|currentproduct|l.all_settings:sub_product:code" />
                  <mvt:item name="toolkit" param="mvassign|override|g.currentproduct$asciichar(124)" />
                  <!--
                  <mvt:item name="couponrd" param="22~DEAL-|g.override" />
                  //-->
                  <mvt:item name="toolkit" param="export|deal.dat^#^ndayofmonth,g.currentproduct,g.Coupon_Generate_ID^1" />
                  <mvt:item name="toolkit" param="mvassign|msg|'status='$encodeattribute('Deal of the Day - ' $ l.all_settings:sub_product:name $ '. Take an additional 25% off our reg low price of ' $ l.all_settings:sub_product:formatted_price $ ' http://www.yourdomain.com/Merchant2/...)$&#39;p=&#39; $ l.all_settings:sub_product:code)" />
                  <mvt:item name="toolkit" param="export|deal.msg^#^g.msg^1" />
                  <mvt:item name="toolkit" param="mvassign|ok|fscopy('/Merchant5/s01/export/deal.msg','/deal.msg')" />
                  <mvt:item name="toolkit" param="mvassign|ok|schmod('/deal.msg', '0644')" />
                  </mvt:foreach>
                  </mvt:if>
                  </mvt:if>
                  </mvt:if>
                  </mvt:if>
                <mvt:item name="fonts" param="body_font">
                  <h2>Deal of the Day - 
                  &mvte:global:cmonth; &mvt:global:ndayofmonth;, &mvt:global:nyear;
                  </h2>
                 
                  <mvt:item name="toolkit" param="vproduct_find|productfound|g.currentproduct" />
                 
                  <mvt:if expr="NOT ISNULL l.settings:key_product:thumbnail">
                   <mvt:item name="toolkit" param="custom|tqd-catcode|l.all_settings:key_product:id|BTMCAT" />
                   <a href="/DEAL.html" target=_blank><img src="&mvte:key_product:thumbnail;" alt="&mvte:key_product:name;"></a>
                  </mvt:if>
                  <br>
                  <a href="/DEAL.html" target=_blank>&mvte:key_product:name;</a>
                  <p>Take an additional 25% off <br>our already low price of &mvt:key_product:formatted_price;</p>
                <p>
                <mvt:item name="toolkit" param="sassign|value75|.75" />
                <mvt:item name="toolkit" param="math_multiply|times|value75|l.all_settings:key_product:adjusted_price" />
                <mvt:item name="toolkit" param="math_round|times|times|2" />
                <mvt:item name="toolkit" param="currencyformat|formatted_deal|times" />
                <font color="green" size="+1">Today Only: &mvte:global:formatted_deal;</font><br>
                <mvt:if expr="l.settings:key_product:weight EQ 0">
                <font size="+1">&nbsp;w/Free Shipping</font><br>
                </mvt:if>
                  <p>
                  Click <a href="/DEAL.html" target=_blank><font color=blue><u>here</u></font></a> for details
                </mvt:item>
                  </div>
                 
                  <mvt:item name="hdft" param="footer" /></center>
                 </div>
                </div>
                </mvt:item>
                </html>
                Edit: Added code for facebook DEAL page. I know it's not pretty, but it does the job. There is a lot of superfluous code in there for the cron job that used to tweet the Deal of the Day before Twitter's API change.
                Last edited by papi34; 03-13-11, 08:00 PM.
                Bronson Design Studio, LLC
                Website: bronsondesign.com
                Facebook: facebook.com/bronsondesign

                Comment


                  #23
                  Re: Dynamic Content in FaceBook - Time Sensitive

                  I think I'll add that menu selection to mine too.
                  Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                  Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                  Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                  Facebook http://www.facebook.com/EmporiumPlus
                  Twitter http://twitter.com/emporiumplus

                  Comment


                    #24
                    Re: Dynamic Content in FaceBook - Time Sensitive

                    As you did, I added the Deal of the Day to the FaceBook store tabs. Turns out today (Mar 18) is a very good deal. Check it out at https://www.facebook.com/EmporiumPlus?sk=app_4949752878 Add some products from the All Products tab or the Daily tab and then view the Basket tab. You'll see some new features which will be rolled out soon.

                    The FaceBook storefront does not need any 3rd party module, other than the connector mentioned at the beginning of this thread to get good results. Hopefully, everybody who wanted to do this was able to get it done before the deadline. If not there will be other connectors but I'm not sure if they will be free or if you have to create an account with their owners.

                    The store above is primarily using one 3rd party module, the Emporium Plus Tool Kit at http://www.emporiumplus.com/1AA00223.html The new discount function is very handy for giving discounts and using simple to complex conditionals written in store morph. When you add products to the basket, you can see the 5% FaceBook discount I am giving at this time. Simply add the products in FaceBook and the discount will carry to the main store when you checkout. If you are buying modules today, please start in the FaceBook store and put the items in the basket there. After completion of the orders, I am testing to see if I can capture the FB sales vs non-FB and discounts given. Your help would be appreciated. For helping, you get a 5% discount and can still use other coupons you might have.
                    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                    Facebook http://www.facebook.com/EmporiumPlus
                    Twitter http://twitter.com/emporiumplus

                    Comment


                      #25
                      Re: Dynamic Content in FaceBook - Time Sensitive

                      For those who missed the deadline and are wanting to include your Miva Merchant store on your business page at FaceBook, there may still be a free solution. I was poking around this morning and ran across this "how to" link which is a current discussion. If you didn't make the deadline, give this a try and see if it works for you. http://www.facebook.com/topic.php?ui...78&topic=39413 If you were successful, let us know.

                      I used the FBML1 since I already had the FBML and it worked. I added this page http://www.facebook.com/EmporiumPlus?sk=app_7146470109 which will show your friends if you are logged into FaceBook and make it easy for you to send them a friends suggestion.
                      Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                      Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                      Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                      Facebook http://www.facebook.com/EmporiumPlus
                      Twitter http://twitter.com/emporiumplus

                      Comment


                        #26
                        Re: Dynamic Content in FaceBook - Time Sensitive

                        Weird. Our Deal of the Day all of a sudden stopped working on our Facebook Page. It was set up as described in this thread using an iframe and working fine until recently. Now nothing happens when you click on the link to show the deal.

                        Truth be told, I really like the way Bill’s Deal of the Day automatically appears when you click on the menu item for it on the left side (column). How do you do that? I thought you had to click the link on Static FBML page to run the iframe javascript.

                        I don’t want to get too fancy, just want to get our Deal of the Day feature working on Facebook again.
                        Bronson Design Studio, LLC
                        Website: bronsondesign.com
                        Facebook: facebook.com/bronsondesign

                        Comment


                          #27
                          Re: Dynamic Content in FaceBook - Time Sensitive

                          It looks like they are blocking iframes inside the FBML tags. You need to change to the new PHP connector discussed at http://extranet.mivamerchant.com/for...d.php?t=104279 Must more flexible. Screen loads without extra click. You can have your own icon for the menu item.
                          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                          Facebook http://www.facebook.com/EmporiumPlus
                          Twitter http://twitter.com/emporiumplus

                          Comment

                          Working...
                          X