Displaying 20 results from an estimated 7000 matches similar to: "Weird shopping cart behaviour!"
2008 Oct 24
4
Railscast 75, Observe_field and Shopping Cart
Hi all,
I have the shopping cart page where a user can add items dynamically
through ajax as explained in Railscast episode 75. I am using
observe_field to observe the ''quantity'' and ''cost'' fields to update
the total field for each item.
This does not work however, for records that are added through the
Ajax. How can i name the fields and observe them as i have
2005 Dec 14
9
Passing quantity in a shopping cart
I am using this line on my index.rhtml page to capture the quantity 
required of a particular item for a basic shopping cart app:
<%= text_field ''line_item'', ''quantity'', {:size=>3} %> </td>
but my next screen (a cart screen) doesn''t reflect what was entered in 
that text field when the item is added to the cart. That is,
2008 Sep 03
2
Highlighint rjs problem on a new product
Hi,
Problem Summary:
I have been trying to add the highlight effect to my table but
everytime a new record is added the highlighting gives an rjs error.
However when i click the add to cart button on a product that already
exists inside the table, the highlight effect works. Is this because
the partial must only have only one <tr></tr> in it and the <table>
must be on the other
2006 Apr 20
0
problem in "depot" app - cart contents not shown on checkout
Hi all -
I''m working my way through the "depot" tutorial.  I''m having a problem 
with the section where the cart contents are displayed on the order 
page.  The cart contents display fine after I add an item to the cart, 
but simply does not show up on the order page.
Any help would be appreciated.
I''m running Locomotive 1.0.0c on Tiger with MySQL from
2006 Aug 07
2
Newbie question about adding product to cart
Hello.  I''m using the Agile Web Dev. book 1st Edition and I''m puzzled by 
the code on pp. 83-84.
<%= link_to ''Add to Cart'', {:action => ''add_to_cart'', :id => product },
                    :class => ''addtocart'' %>
  def add_to_cart
    product = Product.find(params[:id])
    @cart = find_cart
   
2007 Feb 07
1
The Depot "Add to Cart" sessions question (2.ed agile book)
Hello,
Im in the process of working my way through the 2.ed of the agile book.
As many of you already know, the book goes through the regular
development cycle of the Depot application. I have hit a wall
when they started talking about the sessions and the exact mechanics of
how an item is added to the session.
The code looks like this:
depot/app/controllers/store_controller:
  def add_to_cart
2006 Jul 27
1
form_remote_tag
How can I get a name/id for a form using the remote form tag?
<%= form_remote_tag :url => { :action => :add_to_cart, :id => timecard } 
%>
gives me:
<form action="/timecard/add_to_cart/4"
       method="post"
       onsubmit="new Ajax.Request(''/timecard/add_to_cart/4'',
          {asynchronous:true, evalScripts:true,
         
2007 Aug 17
1
Need volunteers for new Rails based shopping cart
We''re currently looking for volunteers on the new RailsCart[1]
project.  The idea is to build something relatively simple with all of
the features that most open source shopping carts seem to be missing.
We''ll be using ActiveMerchant for all of our payment gateway needs.
We''re not trying to build the ultimate shopping cart.  This is
designed for Rails developers who need
2006 Apr 18
4
''depot'' tutorial failing on adding to cart
Hi
I''m very keen to learn RoR and have been following the Agile Web  
Development with Rails book (first edition). However, I''ve come  
across a problem which has had me stumped for days now.
After following the instructions up to page 85 I have tried testing  
the code thus far, as suggested, by adding an item to the cart. But I  
am getting the following error:
--
2005 Oct 12
0
question about scriptaculous drag and drop shopping cart
I got the dragging to work, and the adding the to cart , but i''m having 
a problem drag from with the cart div it doesn''t drag.  But the 
dragging works on the cart (url)
here is a quick example of the cart
http://64.90.176.114/ajax/drag.php
- try dragging into the the solid line div (it will add an item to the 
db). but then try and drag from within the solid line div (gray
2006 May 18
1
Drag and drop purchased items into a shopping cart
All,
  does any one has a drag and drop sample code using rails and ajax that
I can use as a starting point for mine?  I ''ll for customers to drag and
drop item being purchase into their shopping cart.
Thanks
Patrick
2012 Jun 17
0
The rails way to develop a multi product type shopping cart
Hi, 
I''m developing an application which has to manage many types of products. 
But I can''t think what the best approach in rails is on how to implement 
them. Here is a selection of some of the products (with some data types) 
that the software will have to manage: 
    Speaker
      Make - String
      Model - String      
      Wattage - Integer
      Price - Decimal
   
2005 Jul 29
3
More issues with Rails Book Cart tutorial.
I am presently trying to get the cart section (chapter 8.)  working 
and after following the instructions as carefully as I can determine 
I am nonetheless getting the following errors:
URL=http://localhost:3000/store/add_to_cart/10
 NameError in Store#add_to_cart
undefined local variable or method `parms'' for 
#<StoreController:0x376ee60>
2008 Mar 29
1
drag and drop or shopping cart
I would like to know whether there are plugins for the above. If not,
could anyone direct me to the resouces to develop a drag and drop module
for muy ror project.
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2006 May 30
4
Help with Shopping Cart example from Agile Web Development 2nd Edition
Hi
I get to about page 103 of the book and get an application error. Further
investigation reveals the following error in the dev log:
Mysql::Error: #42S22Unknown column ''id'' in ''where clause'': UPDATE sessions
SET `data` =
2005 Oct 05
3
Shopping Cart: SKU and Product Confusion
Hi there,
 I''m at a loss...
 I was on the #ROR channel last night and spoke to a really helpful person
(Defiler) who gave me some direction on building a shopping cart.
Unfortunately, I wasn''t able to successfully get to where I need to go. This
is the predicament I am currently finding myself in:
 I''m building a shopping cart for a client''s new website. They
2006 Feb 26
0
NoMethodError in Agile Web Devleopment Depot Tutorial
I''m working on building the shopping cart in the Depot tutorial in the 
Agile Web Development book. I''m at the part (about page 80) where you 
build the ability to add items to the cart. I''m able to get to 
/store/display_cart/ and it seems items are being added, but if I just 
click on a link to add an item (/store/add_to_cart/2) it gives me this:
NoMethodError in
2005 Sep 02
4
Error has me stumped (Agile Web Dev with Rails book)
Hello everyone,
I''m a complete Rails newbie who is currently working my way through
the Agile Web Dev with Rails book. I''ve reached the chapter on
creating the shopping cart (chapter 8).
I keep having a problem with the same error which I can''t get past,
however what''s more confusing is that it''s being generated even when I
swap all my app code out
2008 Apr 15
2
NoMethodError in StoreController#add_to_cart
I''m trying to set up the Depot app from Agile Web Development and I
got this error after C1 - Creating a Cart.
The exact error looks like this:
-------------------------------------------------------------------
NoMethodError in StoreController#add_to_cart
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while
2006 Feb 01
1
Problems with sample code from "agile webdev. w. rails"
Hello,
I am veeeery new to rails and also to ruby. I have 2 books here on my 
desk and try to go through it.
The first book is "Agile Webdevelopment with Rails" and I have trouble 
with the following code which I have from the book. I cant get it 
working. I searched a lot on google - and also on the erata pages of the 
book publisher but without any luck. I hope someone can help me.