problem about shopping-cart-Collection of common programming errors
Community
php html session shopping-cart
I have a shopping cart which at the moment allows me to add products, remove products and with 1 product in the cart I can change its quantity.However if i have 2 products in the cart and I try to change the quantity of the first item the site crashes. It doesnt reload the page with the new quantity it just times out and you can no longer click on any other links on the website.The code to display the quantity is:<form action=”cart.php” method=”post”><input name=”quantity” type=”text” v
IndigoIdentity
php session-variables shopping-cart
Firstly, i’d like to say that i am building a cart feature for my website.I am having a problem with a simple script that i have created. Basically, a user enters a string of text, the text is then checked against mysql data, if a match is found then the results returned. This works fine… Now i want a user to be able to add a result to their “cart”. So i have come up with this simple script:Here is a shortened version of the html and a definition of the itemId variable:$pageContent = ” <div
Babak
asp.net database shopping-cart
I have a shopping cart stored in session which decreases quantities of items stored in database when user clicks purchase.If the user closes their browser before they have paid I want to return these quantities back into the database.I am doing this in the void Session_End(object sender, EventArgs e) event in global.asax but the item quantities are not increasing. I set the session timeout to 1 minute in the web.config and the session is indeed ending because if i sit there with a full shopping
Buhake Sindi
java database shopping-cart invoice
I am trying to implement a shopping cart web app like most newbies to javaee & hibernate..I went through many textbooks and still have doubts. I am hoping somebody here can help me correct my thinking.I implemented a Product class and a CartItem. A CartItem has a Product field and a quantity field. When user wants to buy a Product,he adds a CartItem to the cart.To model the user’s buy, I wrote an Invoice class with a set of CartItem objects. It also has a customer field. Now, I am a bit conf
Mat
android sqlite activity global-variables shopping-cart
I am making an Android app where I am implementing a Shopping Cart. When the user selects an item, it is added to his/her shopping cart/bag in the app. Once he/she adds an item, he’s presented with the menu again, where he can add more items. Now I want to know how do I save these items during the buying process. I mean the items that are being saved in the bag, how do I save them in my android app? Shall I use the Android SQLite database? or use putextra/getextra and navigate through activities
Ilegorika
ruby-on-rails shopping-cart editing
I’m trying to create a system similar to the functionality of an ecommerce system. A table is displayed with a list of products, with a text boxes for entering the desired quantity of each product. At the bottom of the table is a button to process the purchase, this should then create an Inventory record for each of the products with a quantity of more than 0, unless a record already exists for that customer, in which case it should increment it by the stated value.I have absolutely no idea how
user2055026
c# shopping-cart web-hosting
the shopping cart down again, is this because the hosting company provides new temp website feature?I do think it is hosting company play around the setting, the shopping cart is working again, and I didn’t change anything…. Is there any good reliable windows web hosting companies?can someone please help me? The hosting company drives me mad. My website and shopping cart were working fine couple days ago and the website is running fine in my local host, but my shopping cart has suddenly stopp
liam.burns
c# winforms list properties shopping-cart
I have this code to send it from Form1 to Form2:public partial class Form1 : Form {public ShoppingBasket myBasket = new ShoppingBasket();public Form1(){InitializeComponent();}private void editButton_Click(object sender, EventArgs e){int c = lstCart.Items.Count – 1;for (int i = c; i <= 0; i++){if (lstCart.GetSelected(i)){Form2 fm2 = new Form2();fm2.productNameTextBox.Text = myBasket[i].ProductName;fm2.quantityTextBox.Text = Convert.ToString(myBasket[i].Quantity);fm2.latestPriceTextBox.Text = C
Dana Bouchard
wordpress wordpress-plugin shopping-cart woocommerce
Updated WordPress to newest version and lost our Add to Cart Button. I’ve been searching everywhere for a solution and tried the ones I have found. We do not have a backup prior to updating unfortunately : /These are the errors that show in Chrome developer tools browser when on a page with missing button. GET http://lifefarout.com/wp-content/plugins/woocommerce/assets/js/jquery-cookie/jquery.cookie.min.js?ver=1.3.1 406 (Not Acceptable) lifefarout.com:51Uncaught TypeError: Object function (e,t){
lauthiamkok
php serialization pdo shopping-cart
I need to pass a PDO connection into a cart class from a controller,function __construct($connection) {$this->cart = new cart($connection); }but I think the problem is with serialize()public function render_page() {if (!isset($_SESSION[SESSION_CART])){$cart = $this->cart;}else {$cart = unserialize($_SESSION[SESSION_CART]);}$_SESSION[SESSION_CART] = serialize($cart); }I get this error,Fatal error: Uncaught exception ‘PDOException’ with message ‘Youcannot serialize or unserialize PDO inst
user2060733
magento shopping-cart
After years of it working fine, our website has stopped functioning correctly. Currently it works well until a user tries to checkout. Upon clicking continue on the billing information the page doesn’t respond and users cannot continue their purchase.I have tried adding a blank <div class=”col-right”></div> in onepage.phtml as suggested in another post with no success.
DaveG
ruby-on-rails routes e-commerce shopping-cart
I’ve created a shopping cart with line items that exist in the session object. I can’t figure out how I link to my shopping cart show page if the cart exists and just link to a ‘cart is empty’ page if it doesn’t. What am I missing? My code is below:Cart has_many line_items, & lineitems belongs to CartView Link , I wasn’t sure what I should put here and where to define it for example… “if current_cart.empty? cart”, or “if @cart.line_items.empty? current_cart”, etc.<% if current_cart.line
Dori
php mysql session shopping-cart
hi all sorry am new in web development i made a website my site but it is almost done but i couldn’t find how to make a shopping-cart i figured out that the best way is by doing it in session i sow in StackOverFlow a very good example see it but what to write in a bottom to add the item, if any one has any link to something that may help me please and when i used the example that i mentioned before when i press on the add-to-cart bottom this error message present “Notice: Use of undefined con
AlbaClan
php mysql session shopping-cart
I am currently following a PHP tutorial from PHP academy on youtube here and we are creating a shopping cart. So far we are using sessions to account for the products added. When I try to echo the session it produces a Notice: Undefined index: cart_1 in C:\Program Files\wamp\www\Formula One\script\cart.php on line 28 error. Why is this so? In the tutorial video it adds a 1 to the next page and when clicked on again it goes to 2. Looking on their forum there are some suggestions to use ISSET befo
shadyyx
php opencart shopping-cart
I want to add a new session[‘abc’] during the checkout Step 5: Payment Method (1.5.5.1).What I’ve done so far:/template/checkout/payment_method.tpl add<input type=”hidden” name=”abc” value=”1111″ id=”abc”>/template/checkout/checkout.tpldata: $(‘#payment-method input[type=\’radio\’]:checked, #payment-method input[type=\’checkbox\’]:checked, #payment-method textarea’),changed todata: $(‘#payment-method input[type=\’radio\’]:checked, #payment-method input[type=\’checkbox\’]:checked, #payment
VinnyD
magento shopping-cart checkout magento-1.4
I’ve set up a B2B site powered by Magento 1.4.2 community edition. Occasionally, customers are trying to checkout with a large number of items in their shopping cart – up to 250! My issues are twofold:When there are that many items in the cart, simple navigation through the site becomes extremely slow for the user. On the OnePage checkout, when they get around to submitting the order, they get a javascript popup simply stating “undefined” and they remain on the onepage checkout page.Does anyon
Tuim
php forms shopping-cart
I am trying to send product quantity from product.php to cart.php.<form id=”form1″ name=”form1″ method=”POST” action=”cart.php”><input type=”hidden” name=”pid” id=”pid” value=”<?php echo $id; ?>” /><!–<input type=”text” name=”qnty” id=”qnty”/>–><select name=”qnty”><option></option><option>5</option><option>6</option><option>7</option><option>8</option><option>9</option><option>10&l
Benamir
ruby-on-rails e-commerce shopping-cart activemerchant
I am trying to create a checkout with active merchant. I am using Ryan Bates Active merchant tutorial/ and the Agile web development book. I get the following error, I’m not sure how to fix it to create a successful order. Any help is much appreciated. NameError in OrdersController#create undefined local variable or method `line_items’ for #<Order:0x007fcc467134b8> Rails.root: /Users/macuser/rails_projects/listpro-aApplication Trace | Framework Trace | Full Trace app/models/order.rb:33:in
Gabriel Meono
arrays session post shopping-cart
I’m working on a college exercise about a shopping cart, I converted the POST values into an array, however when I echo these array values I get the following message:Notice: Undefined index: item in line 40 Notice: Undefined index: quantity in line 40Here’s line 40:echo “1. “.$_SESSION[‘lista’][‘item’].” “.$_SESSION[‘lista’][‘quantity’].” unidades”.”, “.$_SESSION[‘lista’][‘price’].” CRC.”;Here’s the full script:<?phpsession_start();//Obtengo la lista $lista[]= $_SESSION[‘lista’];//Guardo un
Owl
sql pdo shopping-cart
I hope somebody here can help me.I am configuring an online shop with the cart-software http://www.shopware.de/The problem is, I have products which have different lengths. I have configured shipping costs in the back-end of shopware, which look like this:0 to 2000 mm 5 Euro 2001 to 2500 mm 7 Euro more than 2500 mm 10 EuroThe lengths of the products are in the s_articles_details table under the length column. (Not all products have lengths).And for this to work, I have to write in the back-end o
Web site is in building