Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Facebook store as oscommerce shop


Michalke

Recommended Posts

Try what? The contribution consists of general information on becoming a FB developer and creating an iframe, and two paragraphs on how to upload the entire OSCommerce shop, alter includes/configure.php and redirect the output of the submit button to external site. No files, no working demo.

 

Good luck with that submit button, or buy button, sending parameters to your externally located OSCommerce shop without first generating a product query string in the OSCommerce index page on FB.

 

Please demonstrate a working buy-button on your link above, or another FB/OSCommerce page and I'll take this seriously enough to spend the time 'trying this'. Or even a working 'add to cart' button.

 

If you can't demonstate that button you are asking people to spend a lot of time installing an iframe that displays products, and does little more, on a FB page, that you appear to be labeling a FB/OSCommerce integration.

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

Try what? The contribution consists of general information on becoming a FB developer and creating an iframe, and two paragraphs on how to upload the entire OSCommerce shop, alter includes/configure.php and redirect the output of the submit button to external site. No files, no working demo.

 

Good luck with that submit button, or buy button, sending parameters to your externally located OSCommerce shop without first generating a product query string in the OSCommerce index page on FB.

 

Please demonstrate a working buy-button on your link above, or another FB/OSCommerce page and I'll take this seriously enough to spend the time 'trying this'. Or even a working 'add to cart' button.

 

If you can't demonstate that button you are asking people to spend a lot of time installing an iframe that displays products, and does little more, on a FB page, that you appear to be labeling a FB/OSCommerce integration.

 

There is a product query string on the FB index page, as it is OsC standard index.php. It doesn't say in my contribution to redirect the buy button to an external page. I only suggested that to you, with your SSL question, not in my contribution. This contribution works with the buy button, but I don't need one. Not on facebook nor on our original site as you can see. It was actually so simple that I didn't know what else to write than two paragraphs. Well, my demo works for me. As soon as I have time I will try to set up a demo OsC-shop.

Link to comment
Share on other sites

I only built one other OsC-shop with a payment module and that was clearpark which was run in an iframe.

 

It sounds like you are saying you have not installed an OSCommerce shop on a FB page other than the ones you have provided links to in this thread. And the ones you have provided links to

do not have a shopping cart page, checkout pages, a place to login, account pages, or anyway to add anything to a shopping cart.

 

If you have never installed it how do you know, for example, that a buy button, or a payment module would work?

 

(Also it's not clear if your shop is on http://apps dot facebook dot com/koenigagrar/index dot php?cPath= or http://apps dot facebook dot com/koenigagrar/product_info dot php?products_id=468&osCsid=e5c6a8f8b4f9a9c4830200a3ed9522b7 )

 

What's odd is that the two links above that you provided are not generating unique product strings for different products. And you never go from the index page to the product page or vice versa.

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

If you have never installed it how do you know, for example, that a buy button, or a payment module would work?

 

(Also it's not clear if your shop is on http://apps dot facebook dot com/koenigagrar/index dot php?cPath= or http://apps dot facebook dot com/koenigagrar/product_info dot php?products_id=468&osCsid=e5c6a8f8b4f9a9c4830200a3ed9522b7 )

 

What's odd is that the two links above that you provided are not generating unique product strings for different products. And you never go from the index page to the product page or vice versa.

 

I installed a new shop and did not upload the old one. There I had the buy button and it worked. I did not try if a payment module would work.

 

It is an iframe. For what I know it is the only possibility to run an app on FB. You do not see which URL it is currently showing inside. The URLs inside the iframe are generating unique product URL strings as you are used to. Otherwise you would not be able to link to a product from index.php, product_listing, categories.php etc. The URL outside the iframe is static. Try to google "iframe tutorial" maybe you understand better how iframes work.

Link to comment
Share on other sites

When you had the buy button working on the old shop was it putting a product in shopping_cart.php on the OSCommerce shop within the iframe, or to shopping_cart.php on an OSCommerce shop on an external site (external to the FB page with the iframe) ?

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

When you had the buy button working on the old shop was it putting a product in shopping_cart.php on the OSCommerce shop within the iframe, or to shopping_cart.php on an OSCommerce shop on an external site (external to the FB page with the iframe) ?

 

Hi npn2531,

 

Everything happens within the iframe. So the link to the shopping_cart.php on FB will show the shopping cart on FB and not link to the external OsCommerce shop.

Try what? The contribution consists of general information on becoming a FB developer and creating an iframe, and two paragraphs on how to upload the entire OSCommerce shop, alter includes/configure.php and redirect the output of the submit button to external site. No files, no working demo.

 

This answer of you kept me thinking for days. You are right there is not a lot you have to do to get this running, hence little to explain. The contribution as it is now, is perfectly working for me. The idea I have is probably a good one, but maybe still to complicated. I don't think it is necessary to upload the entire shop in a subfolder and make changes to the configure.php file. One could try to let the original external shop run in an iframe. Of course, there is the problem with the horizontal size restrictions of FB: 520px/760px width, that your shop or stylesheet has to cope with. Maybe some better programmer than I am can make this simpler.

Link to comment
Share on other sites

Since your contribution has no way for anyone to login, wouldn't having the shopping cart in the iFrame on FB be a dead-end?

 

No, it has a shopping cart and all other OsC standard functions like login, create account etc.

Link to comment
Share on other sites

The login page, or anything beyond shopping_cart.php requires SSL. You can't get a SSL certificate for an iFrame on a FB page. There is nothing in your contribution about how to get around that. If you have put a working OSCommerce login page on a FB page, would you explain how?

 

Your contribution as you have posted it dead-ends at the shopping cart, if not before.

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

The login page, or anything beyond shopping_cart.php requires SSL. You can't get a SSL certificate for an iFrame on a FB page. There is nothing in your contribution about how to get around that. If you have put a working OSCommerce login page on a FB page, would you explain how?

 

Your contribution as you have posted it dead-ends at the shopping cart, if not before.

 

Sorry for not having understood your basic problem the first time. This contribution gives you instructions to set up an external webpage hosting your onlineshop running identically to your existing shop within an iframe with a second URL which you cant see. As you do not have to make major changes to OsC itself there is no file included. An OScommerce-onlineshop usually does not require an SSL-certificate. Some payment modules might and yours has one. I don't know what your reasons where for doing it. I have no experience with SSL-certificates. I can't help you with that. What I suggested earlier is that there might be an easier way than what I wrote in the contribution concerning your SSL-problem or altogether. When you click on the "Produkte" tab on our facebook page you see it in the narrow 520 px wide window. Maybe you can use the fb:iframe tag to let your shop run in in an iframe on the tab. As soon as you click on some link in the narrow tab in my "shop" you get redirected to apps.facebook.com/koenigagrar/... It does so because I told it to do so in the configure.php of the second FB-shop. From there on you cannot use your SSL-certificate. From what I found from FB docs this is the way an app has to be set up. So if your shop cannot live without the SSL-certificate then this contribution does nothing for you. If you however can use your database, your product images and some of your payment modules without the SSL-certificate then you are good to go. You can try to change the settings in the second configure.php for HTTP-SERVER and HTTPS-SERVER and see what happens.

 

I will try to set up a OsC-demoshop (with login-button) as soon as I have time. I use a contribution called "Ask a question" which also stores product id in the session URL, much like the add_to_cart-button. Believe me this works.

 

Honestly, this took me three weeks, tons of coffee an cigarettes to find everything out and two hours to set it up. This is really simple and quickly done.

Link to comment
Share on other sites

I will try to set up a OsC-demoshop (with login-button) as soon as I have time. I use a contribution called "Ask a question" which also stores product id in the session URL, much like the add_to_cart-button. Believe me this works.

Honestly, this took me three weeks, tons of coffee an cigarettes to find everything out and two hours to set it up. This is really simple and quickly done. 

 

You should put up a demo, with a working login and add to cart button. It sounds like it would be simple and could be quickly done.

 

 

ps Why do two urls go to same page? These both go the same place

 

http://apps dot facebook dot com/koenigagrar/

 

and

 

http://apps dot facebook dot com/koenigagrar/product_info.php?products_id=489

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

I'm intrigued...

 

 

Why are you having a bun fight over this? :huh: :'(

My store is currently running Phoenix 1.0.3.0

I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 )

I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary

Link to comment
Share on other sites

I don't know. I'll discuss it with my Therapist and get back to you. But, seriously, if you find this intriguing maybe you should get out more.

 

But...

 

 

 

I've only just got in :blink:

My store is currently running Phoenix 1.0.3.0

I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 )

I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary

Link to comment
Share on other sites

I will try to set up a OsC-demoshop (with login-button) as soon as I have time. I use a contribution called "Ask a question" which also stores product id in the session URL, much like the add_to_cart-button. Believe me this works.

Honestly, this took me three weeks, tons of coffee an cigarettes to find everything out and two hours to set it up. This is really simple and quickly done. 

 

You should put up a demo, with a working login and add to cart button. It sounds like it would be simple and could be quickly done.

 

 

ps Why do two urls go to same page? These both go the same place

 

http://apps dot facebook dot com/koenigagrar/

 

and

 

http://apps dot facebook dot com/koenigagrar/product_info.php?products_id=489

 

You obviously do not understand how an iframe works. When you click on the first link in the narrow tab, that will be the static URL outside the iframe. It stays that way and will not change until you leave the whole thing. For gods sake try it out and see if the login button shows up and works or not! Or stop asking about the login button! When I have time I will set up a demo. Setting up a demoshop is surely more time consuming than installing the whole thing with an existing database. I am not a pro with databases.

Link to comment
Share on other sites

I thought I knew about iFrames, but perhaps you can explain what your's is doing:

 

For example if you go to

 

http://apps.facebook dot com/koenigagrar/index dot php?cPath=

 

and just keep hitting the return button, it justs throws up your product listing in an ever changing random order. That's not OSCommerce coding.

 

Also your app is on apps dot facebook dot com/koenigagrar/ whereas your facebook page is on another FB page entirely, www dot facebook dot com/koenig.agrar

 

Normally when you see a shop app on a FB page it is one of the tabs within the same page. What is happening with yours is that when you click the 'produckte' your address is still within koenig.agrar , as it should be but when you click on anything on that page you leave koenig.agrar entirely and go to koenigagrar.

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

I thought I knew about iFrames, but perhaps you can explain what your's is doing:

 

For example if you go to

 

http://apps.facebook dot com/koenigagrar/index dot php?cPath=

 

and just keep hitting the return button, it justs throws up your product listing in an ever changing random order. That's not OSCommerce coding.

 

Also your app is on apps dot facebook dot com/koenigagrar/ whereas your facebook page is on another FB page entirely, www dot facebook dot com/koenig.agrar

 

Normally when you see a shop app on a FB page it is one of the tabs within the same page. What is happening with yours is that when you click the 'produckte' your address is still within koenig.agrar , as it should be but when you click on anything on that page you leave koenig.agrar entirely and go to koenigagrar.

 

1. This is tested in chrome, explorer and firefox in 3 different countries and by 8 people. I did not get this behaviour. There must be something wrong with your browser. Please be more specific.

 

2. I followed FBs recommended app settings: http://developers.facebook.com/docs/guides/canvas. As I have quite long product descriptions it suits me because the 520 px narrow view does not provide enough space. Maybe you find something else that suits your needs better. Please don't hesitate to post that.

 

Please stop this charade! Obviously you don't like this contribution so stop coming up with supposed flaws. I really want to help you but the communication with you is not very constructive.

Link to comment
Share on other sites

Try what? The contribution consists of general information on becoming a FB developer and creating an iframe, and two paragraphs on how to upload the entire OSCommerce shop, alter includes/configure.php and redirect the output of the submit button to external site. No files, no working demo.

 

Good luck with that submit button, or buy button, sending parameters to your externally located OSCommerce shop without first generating a product query string in the OSCommerce index page on FB.

 

Please demonstrate a working buy-button on your link above, or another FB/OSCommerce page and I'll take this seriously enough to spend the time 'trying this'. Or even a working 'add to cart' button.

 

If you can't demonstate that button you are asking people to spend a lot of time installing an iframe that displays products, and does little more, on a FB page, that you appear to be labeling a FB/OSCommerce integration.

dont cry!!! use this app with facebook connect for oscommerce... is free! look for it on the addons secction.

 

perfect combination

Link to comment
Share on other sites

dont cry!!! use this app with facebook connect for oscommerce... is free! look for it on the addons secction.

 

perfect combination

 

Hi Andes1, i was never able to get FBconnect to work in my shop correctly, i have a problem when user is already logged to their FB account, as soon as they hit the log in, they are automatically signed in without option to log into normal account. And also if the user is not logged in, then it automatically bring user to create account page, may be they don't want that? Anyway it does not work right. I don't know how other people said it is working for them.

 

As for this contribution, i can't get it to work as my shop is heavily modded, so for now im going to use Vendingbox which im working with them for a customized plugin that suit my shop, much simpler and quicker to setup, i have full functional FB store up within a few minutes. However, thank Michalke for the time in making it anyway, may be it will work for someone else.

Edited by ptt81
Link to comment
Share on other sites

Hi Andes1, i was never able to get FBconnect to work in my shop correctly, i have a problem when user is already logged to their FB account, as soon as they hit the log in, they are automatically signed in without option to log into normal account. And also if the user is not logged in, then it automatically bring user to create account page, may be they don't want that? Anyway it does not work right. I don't know how other people said it is working for them.

 

As for this contribution, i can't get it to work as my shop is heavily modded, so for now im going to use Vendingbox which im working with them for a customized plugin that suit my shop, much simpler and quicker to setup, i have full functional FB store up within a few minutes. However, thank Michalke for the time in making it anyway, may be it will work for someone else.

 

Hi ptt81,

 

I had the same problem. My "shop" is heavily modified. I use v2.2 and kept an original OsC-download. I uploaded this clean shop in a subfolder and connected it to the existing stylesheet, images-folder and database. I then redesigned it according to the original layout. That took me like 15 hours. You would have to spent some time more to add the payment modules which I don't have. I am a selv-trained developer so everything takes a bit longer. Besides, I always try to make things myself. This way you have your existing shop untouched and probably save some money as Vendingbox probably charges some fees that eat into your margin. I had that in mind because we plan to make it a real onlineshop in the future when our companies internal organization allows it. So, just keep in mind that you have to possibilites with this contribution: you upload you existing shop or start from scratch with a clean one. FB is a pain to work with as they constantly change the rules and above all, keep everything badly documentated. If I can be of any assistance, just asked.

 

Regards Michael

 

P.S.: our customers are farmers and they are not really plentiful on Facebook, so this contribution was just a personal project.

Link to comment
Share on other sites

Hi Andes1, i was never able to get FBconnect to work in my shop correctly, i have a problem when user is already logged to their FB account, as soon as they hit the log in, they are automatically signed in without option to log into normal account. And also if the user is not logged in, then it automatically bring user to create account page, may be they don't want that? Anyway it does not work right. I don't know how other people said it is working for them.

 

As for this contribution, i can't get it to work as my shop is heavily modded, so for now im going to use Vendingbox which im working with them for a customized plugin that suit my shop, much simpler and quicker to setup, i have full functional FB store up within a few minutes. However, thank Michalke for the time in making it anyway, may be it will work for someone else.

 

Sorry for answering twice. Have a look at this: http://www.allfacebook.com/facebook-jazzes-up-admin-layout-tabs-and-navigation-2011-02, maybe the new facebook layout coming 10th of march lets you run your shop entirely as an iframe in a side tab. Of course there are width restrictions.

Link to comment
Share on other sites

i have a problem when user is already logged to their FB account, as soon as they hit the log in, they are automatically signed in without option to log into normal account.

that is the idea, keep it simple to the customer. so he does not have to fill field again in order to log in.

 

also if the user is not logged in, then it automatically bring user to create account page, may be they don't want that?

that is the idea also, i.e if a customer wants to make an order in regular oscommerce vanilla standar etc, he has to have or create an account.

so in this case facebook connect offers the possibility to create an account or log in ussing his facebook info... is not rocket concept!

 

have you seen the video? the link is in its forum support.

Link to comment
Share on other sites

that is the idea, keep it simple to the customer. so he does not have to fill field again in order to log in.

 

 

that is the idea also, i.e if a customer wants to make an order in regular oscommerce vanilla standar etc, he has to have or create an account.

so in this case facebook connect offers the possibility to create an account or log in ussing his facebook info... is not rocket concept!

 

have you seen the video? the link is in its forum support.

 

what if customer already have an account with us (not FB account)?, and they wanted to login (either with regular or FB connect) and if it keep redirect to the create account, the customer won't get a chance to log in at all? may be im not fully understanding how this work. Yes i've watched the video and it seems to be working in that video but when i tried it, it was not exactly like that. Anyway i will give it another try sometime.

Edited by ptt81
Link to comment
Share on other sites

Hi npn2531, your shop is NONSSL until you get to checkout. From there you will have a problem because of the SSL. I only built one other OsC-shop with a payment module and that was clearpark which was run in an iframe. As an facebook app is running in an iframe already I don't know how this payment iframe would behave. My example shop for this add-on doesn't need a payment module. I don't see what payment modules you use for your shop. Do you have to use them with SSL? If you can use your payment modules without SSL then it should work.

 

And, yes, it integrates my OsC into Facebook. We have over 600 products and these are all in one database and I use in both cases the same product image.

 

 

I would like to Say very nice So far. I got very confused with trying to go through the facebook Docs in order to take it to this level.....

 

I don't see a way to exit the facebook page and enter the site for check out with your oscommerce site. I think this should be fairly simple just creating a link on the product page linking it to the live product on your site. I am involved with another oscommerce contribution but as soon as I have time I will look at this.....

 

 

Great Job So far.......

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...