SharePoint Online电子商务购物车 [英] SharePoint Online ecommerce shopping cart

查看:69
本文介绍了SharePoint Online电子商务购物车的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了客户的要求,他们希望在他们的sharepoint网站上有类似网上购物的东西。

I got a requirement from a client that they want to have something like an online shopping in their sharepoint site.

每个用户都会有一笔名为"总钱"的初始资金'他们可以用来从网站上购买商品。

Each users will have an initial money called 'total money' that they can use to purchase items from the site.

我有一个列表,其中的钱来自,例如每月分配给用户。

I have a list where that money comes from and it assigned to users monthly for example.

现在我还要创建一个图片库,其中将存储所有商品,它将具有"商品名称","商品代码","价格", '数量'

Now I also want to create a picture library where all shop items will be stored, it will have the 'name of the item', 'item code', 'price', 'quantity'

我想要做的是让用户拥有一个界面,以便他们可以选择他们想要的项目并检查 - 在物品中,物品的总价将从他们的"总钱"中扣除,他们还应该能够追踪他们的"二手钱"和
'可用钱'

what I want to do is to allow the users to have an interface so they can select the items they want and check-out the items, the total price of the items will be deducted from their 'total money' and they should also be able to track their 'used money' and 'available money'

现在我不知道从哪里开始。你有任何其他想法如何实现这个? sharepoint应用程序不是一个选项,因为我只使用JS,内容编辑器中的jQuery和JSLink

now I don't know where to start on this. do you have any other idea how to implement this? sharepoint apps is not an option as I am only doing this using JS, jQuery in content editors and JSLink

推荐答案

这是我的想法,

你可以模拟 或模仿SharePoint中的电子商务应用程序。您所需要的只是产品目录表和为SharePoint列表中的用户数据分配的累积资金,并以HTML或AngularJS显示。

You can mock  or mimic the e-commerce application in SharePoint. All you need is product catalog table and accumulated money allocated for user data in the SharePoint list and showing them in HTML or AngularJS.

您只需要将文本框和产品图像添加到此成功回调函数下面的代码片段。

You just need to add the text box and product Image to this below code snippet on success call back function.

<html>  
   <head>  
      <title>Angular JS Implemented in SharePoint </title>  
   </head>  
     
   <body>  
      <h2>AngularJS_SharePoint Application</h2>  
        
      <div ng-app = "mainApp" ng-controller = "shapeController">  
        <div ng-repeat="item in items">      
            <p>{{item.Title}}</p>      
        </div>      
           
         
      </div>  
          
      <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>  
        
      <script>  
         var mainApp = angular.module("mainApp", []);  
           
         mainApp.controller("shapeController", function(


scope){
GetListItems(
scope) { GetListItems(


范围,"新列表";); //调用您的SharePoint函数
});
函数GetListItems(
scope, "newlist"); //Call your SharePoint Function }); function GetListItems(


这篇关于SharePoint Online电子商务购物车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆