Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Ecommerce with Corona
Started by cnava.svam Oct 19 2018 10:31 AM

1 reply to this topic
store purchase e-commerce
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

cnava.svam

[GLOBAL: userInfoPane.html]
cnava.svam
  • Observer

  • 1 posts
  • Corona SDK

Hello,

I am working on proyect that needs to integrate a mini game with an e commerce platform. What would be some pointers to work on this. I am an experienced web developer but I have never developed a game. I am curios about the elementary widgets like buttons and dropdowns and how to work with ajax to populate products from a backend.

Any help would be highly appreciated.

Regards

Cesar



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,860 posts
  • Corona Staff

Hi Cesar and welcome to the Corona Labs community forum.

 

I think we need to know more about what kind of mini-games and the e-commerce platform before anyone can really offer a lot of advice.

 

Generally, for mobile games, they are going to be full screen on the device and they are going to be dedicated apps, not something typically run in a web browser (more on that in a bit). Then with mobile purchases, for anything that's going to be digitally delivered has to be purchased through Apple's App Store, Google Play or Amazon. If your e-commerce is for physical goods, you can integrate with your shop.

 

Since games are typically going to be full screen, you're likely going to present any items to sale through the games UI. You can use our network.request() API to make REST-based web server API calls. This is how you would normally have a Corona app talk to a web service like an e-commerce platform. You would download information like the item's title, description, price, image etc. and use Corona to present that information to your users.

 

Now it sounds like what you may be more interested in is building an HTML5 based game. This is a game that would run in the web browser and could be embedded in your e-commerce site and possibly be playable in a <div> on the site.

 

Games don't have typical web/application style UI elements. Sure there are concepts of buttons and lists, but drop-down menus and such are less common. Even objects like on/off switches would typically be designed to be part of the game and not be canned device style UI elements.

 

HTML5 built games can use network.request() to make REST style web calls or it can make calls to JavaScript that can do further communications to your servers.

 

Rob




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: store, purchase, e-commerce