Re: Easily integrate your Miva Merchant into Facebook
Hi Bill: I'm attempting to create my custom select box for my FB app that I spoke about in my previous post in this trhead. I'm passing the categories in a parm from my miva4fb.php program and want to retain the parm by saving it in a cookie using your toolkit "setcookie" function. However I don't know how to retrieve the cookie. Does toolkit or Mive have a function that I can use to do this?
Thanks, Larry
Announcement
Collapse
No announcement yet.
Easily integrate your Miva Merchant into Facebook
Collapse
X
-
Re: Easily integrate your Miva Merchant into Facebook
Hi Bill & Leslie: We are doing something similar to what Bill has suggested. We have multiple FB apps with their own mivaXfb.php program. In these programs we have added a parm to the URL which we use in the simplesearch keyword field of CTGYFB so that when the page is first displayed, only products with that keyword are displayed.
This probably won't solve you problem, but it does give the flexability of not having to code the category value in the CTGYFB page.
Now your question and Bill's response lead me to this:
Maybe by using a parm defined as a deliminated string of categories, a custom category select box could be built without the "all" value and only containing the categories within the param? I believe toolkit has a function that can separate such a string into an array and using that array, the <select box can be built.
I think it might work.
Larry
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
If you don't want the "all products", you'll need to make a category a default selection. Before the category drop down, something like
<mvt:if expr=NOT g.category_code">
<mvt:item name="toolkit" param="sassign|category_code|codeofyourdefault" />
</mvt:if>
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
Thanks that worked great for the down list, but all the products are still displaying when the All Products link is clicked.
Leslie
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
View the source of the CTGYFB page (display outside of the iframe in Facebook so you can view it). Copy the category list to a notepad and modify. Then copy back to the template.
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
How would I go about limiting the category page results to only a few selected categories?
Leslie
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
If it is not doing what it is supposed to and you have version 5.1.6, that would likely be the problem.
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
Looks like I am running PHP Version 5.1.6 , docs say it might need 5.3.6, could that be the issue?
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
Hi Bill, I did create the new pages just like the instructions, I have the facebook.php and miva2fb.php files in my /facebook directory. I might have to check the version of PHP I have. orOriginally posted by wcw View PostNo. You were supposed to create the scaled down pages (500px wide) so they would fit in the screen. There is a complete "how to" with copy and paste code if your store is CSSUI. See the first post.
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
No. You were supposed to create the scaled down pages (500px wide) so they would fit in the screen. There is a complete "how to" with copy and paste code if your store is CSSUI. See the first post.
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
Bill, Thank you so much for posting this! It looks like I have the app working on facebook. It displays the entire store just as if they were visiting it outside of Facebook. Is that how it should be?
http://www.facebook.com/CoffeeHouseE...40311702647758
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
Originally posted by lesliekirk View PostI'm almost there - still working on the add to cart buttons - since they are different from the CSSUI (boy did that one bark at me). Dan, I should give you the tweak I used to get the two column before I get too far into matching the store layout.
Leslie
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
I'm almost there - still working on the add to cart buttons - since they are different from the CSSUI (boy did that one bark at me). Dan, I should give you the tweak I used to get the two column before I get too far into matching the store layout.
Leslie
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
Originally posted by lesliekirk View PostI know Bill tweeted this and it's probably already been pointed out a dozen times over, but one more time for good measure. Make sure you have at LEAST version v5.178 of the Toolkit. It added the Simple Search which is also very crucial to making this work.
It's definitely taken me more than 25 minutes to get all the MMUI pieces of the puzzle put together, with many thanks to Dan.
Leslie
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
In addition to the simplesearch function, in version 5.208 I added the discount function. That lets you put a discount in the basket if the conditions you specify are met. Several have asked how I am doing the discount if someone "likes" your facebook page. If you followed the "how to" at the beginning of this thread then you created a couple of affiliates using the built in affiliate program. Let's say you named the affiliate friends for those who have liked your page in Facebook. If they add items to the basket and then view the basket in your Facebook integration, the following code would run.
Code:<mvt:item name="toolkit" param="affiliate|myaffil" /> <mvt:if expr="g.myaffil AND (l.settings:myaffiliate:code EQ 'friends')"> <mvt:item name="toolkit" param="discount|FaceBook Discount 5%|'5%'|0|" /> </mvt:if>
Leave a comment:
Leave a comment: