shopping-cart

MongoDB does not seem to want to push to array

不羁的心 提交于 2019-12-11 23:21:24
问题 I am making an online shopping cart, and I having huge issues pushing add to cart to items $collection->update( array('session' => $_SESSION["redi-Shop"], array('$push'=> array('items'=> $_POST["item"]) ))); When the customer selects their first item to add to the cart it works fine $collection->insert( array('session' => $_SESSION["redi-Shop"], 'status' => "cart", 'items' =>$_POST['item'])); but after the first item is added it does not allow me to add any more. Please any advice would be

Shopping Cart - The flow for sold out or less available items at checkout time?

六眼飞鱼酱① 提交于 2019-12-11 16:54:00
问题 I designed a shopping cart solution for a client. For one of their items (candy, for example), they have a certain quantity they can sell for each type. I deduct from the quantity available after items have been purchased. The candy shopping flow is as follow: Select (add to cart) candy on candy catalog page Go to Cart page to review items to be purchased Go to checkout page (billing information + list of items to be purchased with price total details) Pertinent Situation: Customer A select 9

MVC3 passing the radioButton value for shopping cart

会有一股神秘感。 提交于 2019-12-11 16:46:50
问题 I am trying to make ShoppingCart with ajax. I am following this tutorial. http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-8 I want to pass the value of radiobutton value instead of 'price' value which is in DB. When I add product to cart, URL will be shown like this: http://localhost:58759/ShoppingCart?priceValue=b When I try to delete'?priceValue=b', it will be erased the price value and total value in Cart page. In Cart table, It has created cart list correctly, but in

Uploading custom cart to Paypal from PHP page using POST

人走茶凉 提交于 2019-12-11 16:17:00
问题 I'm using Website Payments Standard on PayPal. So I have a custom purchase page which is essentially a list of my licences (pulled from the database): licence type A: $100 licence type B: $200 licence type C: $300 They choose one of those (radio button) then click the purchase button. This POSTs the page to my processing PHP page which gets the selected licence_id from the previous page, then uses that to select the correct licence information from the database (price, licence duration) etc.

Mixed currency products in Magento

谁说胖子不能爱 提交于 2019-12-11 15:10:35
问题 I'm evaluating if Magento will be suited to a particular client. They have an unusual requirement where their products may have two price components, one in AUD and one in reward points. There are three combinations of prices: all AUD, all reward points and a fixed mix of both. I was wondering if Magento supports such a scenario? That is, can it have products flowing through to the shopping cart which have multiple currencies? My research indicates you can have different currency prices per

CodeIgniter Shopping Cart Strange Behaviour

纵然是瞬间 提交于 2019-12-11 13:14:08
问题 I have a really strange behaviour of CodeIgniter's Shopping Cart Class. I have set the ci_session table in my database and already have changed the sess_use_database to TRUE. What is happening is that when i add items to the Shopping Cart everything is fine: i see my total items counter going up and everything. When i go to my shopping cart page the first time i see all my items there, where they should be. I have also provided delete item button and an Empty Cart button. The strange things

Itemized PayPal Checkout using Angular (ngCart)

荒凉一梦 提交于 2019-12-11 12:18:28
问题 I'm attempting to use PayPal to check out and show an itemized list of the products. I can get the cart to work showing a total for the amount of items added to the cart, but since they aren not itemized the seller will not know which items were ordered. I'm using ngCart for my shopping cart. I've followed the docs and I believe that I've configured everything correctly, but when I click "checkout" using the itemized PayPal process my cart is empty in PayPal. The items in my store are listed

Storing items for a basket in session variables

隐身守侯 提交于 2019-12-11 10:58:39
问题 I want to store item product codes for a shopping basket along with the quantity that the user has chosen within a session array. I don't know what the easiest and most appropriate data type is to store this data in. I get the impression that I can't just store my own object in a session? Product code, Quantity CQAR/HINCACOC, 10 CAAA/VINNYMIN, 20 I wish to be able to pull the values out again in order that they were placed in the basket. I tried List<Dictionary<string, int>> and ArrayList but

Sessions/foreach issue with my shopping cart

限于喜欢 提交于 2019-12-11 10:41:48
问题 This question is actually a continuation from another question. I'd like to make sure I state all the details in this one. I'm a relatively new programmer in the likes of Php and I have this assignment where I have to make a shopping cart I get my product data from the database -> then I click on a product -> it goes to a page where it adds the productid, productname and price to a session with array_push and then it ends up back on the same page with where the cart is (the cart is on the

Parse error: syntax error, unexpected '__construct' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)

点点圈 提交于 2019-12-11 08:57:18
问题 I have this problem. When I click on add to cart button there is an error: Parse error: syntax error, unexpected '__construct' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) I'm new in Laravel and I really have no idea what I have to do, This is my code on button add to Cart: <a href="{{route('get.addToCart',[$product->id])}}" class="cart-btn">Add to cart</a> This is my route: Route::get('add-to-cart/{id}', 'WebController@addToCart')->name('get.addToCart'); This I have in