shopping-cart

Cassandra row level locking support while accessing same row by concurrent users

情到浓时终转凉″ 提交于 2019-12-04 12:05:48
We are in design phase of our shopping cart application we are considering Cassandra as Inventory database. Multiple users need to be able to access same product row in Inventory DB at same time. For example a product table containing: productID =1000, productQuantitiy = 1 productID =2000, productQuantitiy = 5 If first user selects product 1000 and add product quantity 1 in shopping cart, other users should not be able to select this product until it gets discarded by first user (who updates product quantity as 0). Alternatively if the first user selects 3 of product 2000, other users

Prevent script from re-executing action on page refresh

不羁的心 提交于 2019-12-04 10:35:09
I am building my own php cart for the past week and I got stuck in some issues. I managed to add new items in the cart, and the URL looks like below. http://blah-blah.com/order/index.php?action=add&id=84 The question is simple: How can I prevent from adding the same item again in the cart if someone refreshes the page? Cause now every time someone refreshes the page, it changes the quantity to +1 for the specific item.. Also, after moving to the checkout page, if they press the back button in the browser, AGAIN the quantity will change to +1; Any recommendations? Yea. Have them set , rather

PHP Sessions shopping cart: update product if it's already id the session

时间秒杀一切 提交于 2019-12-04 06:04:54
问题 I have struggled to find a solution to a simple shopping cart with $_SESSION . I kept it very simple and this is my code right now if ( Input::isPost('add') ) { $id = Input::get('id'); $qta = Input::post('qta'); $size = Input::post('size'); if ( !isset($_SESSION['cart']) ) { $_SESSION['cart'] = array(); } if ( array_key_exists($id, $_SESSION['cart']) ) { if ( $_SESSION['cart'][$id][0] == $size ) { $_SESSION['cart'][$id][1]+=$qta; } else { $_SESSION['cart'][$id] = array( $size, $qta ); } }

Shopping Cart's `View Cart Items` Page is not Paginating Properly

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 05:09:15
问题 I have a PHP page that retrieves the arrays in my $_SESSION['products'] session. Each array in that session is a product added by the user to their "shopping cart" via the catalogue.php page. Currently my session has eleven arrays meaning I have added eleven products to the cart. I am now trying to display the arrays on my view_cart.php page, and paginate them by ten. Basically I would like the page to show the first ten arrays then to display the eleventh array on view_cart.php?Page=2 .

advice on implementing a shopping cart using playframework

爷,独闯天下 提交于 2019-12-04 03:18:27
I am learning to use playframework by writing code to implement a webstore for selling items.I have implemented the Admin area using the crud and secure modules.Now, I want to create a shopping cart to which a user can add items and proceed to checkout . My knowledge of ecommerce is minimal,but I had gone through some textbooks which implement shopping carts and some webshop functionality using servlets .In the books ,the cart used to keep a Set of CartItem s ,each of which contained an instance of the Product and quantity .After,the user added items to cart,the cart was stored in user session

Shopping cart with Symfony2

有些话、适合烂在心里 提交于 2019-12-03 16:38:49
I'm learning my ways with Symfony2 while building a small eshop for a family-run wine importer. Slowly I'm gaining understanding of the Symfony2 concept but while moving on to building a shopping cart, I'm not quite sure what would be the correct (at least according to the Sf2 standards) way to implement this. What I'm looking for is a simple Basket storing BasketItems and their amount in sessions and later use this data in the checkout. Now before I go and glue this somehow together, I'd like to hear an advice on how this should be done and separated correctly. So far, I've created the two as

Which PHP open source shopping cart solutions have features that benefit me as the web developer?

≯℡__Kan透↙ 提交于 2019-12-03 07:56:52
问题 There are hundreds of shopping cart solutions available for every platform, and all hosting plans come with several already installed. As a developer I understand that most of these are fairly similar from a user perspective. But which ones are built with the developer in mind? For example, which ones have a decent API so that my custom code doesn't get mingled with the core code or which ones have a well thought through template system so that I can easily customize it for each new client?

best .net solution for ecommerce compared to Magento CE [closed]

孤者浪人 提交于 2019-12-03 06:48:47
I am in the need of looking for a .net shopping cart, I am a .net developer not PHP and I need that the shopping cart solution be extendible. In the past I have used Magento, and its probably the best solution out there, but I dont want just to learn another programming language. Is there any as good as magento but done in .NET?? Some requirements I need: MultiStore in one single database. Ability to create themes. Complex shopping cart discount rules as in Magento Travis J As far as I know, there are only two written in .NET, and one of them is geared towards MVC. ASP.NET MVC http:/

design a database for a shopping-cart application? [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-03 05:59:20
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I have never designed a database/data-model/schema from scratch, especially for a web-application. In some recent job interviews, i was asked to 'design' a database for a shopping cart application. Now i am working on a mobile shopping application (retail, uses phonegap) with a

Magento multiple websites share shopping cart

老子叫甜甜 提交于 2019-12-03 04:38:50
问题 I have a bit of a dilemma with a Magento website I am building. I have two websites with a store each set up in order to enable multiple currencies checkout for each site. So the only difference between the two sites (on two different domains) that are managed via one common magento installation is the currency display and checkout currency. This is all working fine so far. However I am trying to share the checkout session between the sites so the shopping cart stays the same when switching