|
Hi im using
def add_to_cart @cart = find_cart product = Product.find(params[:id]) @cart.add_product(product) end
from a book. this is to create a shopping cart. what I don't understand is, do I need a controller for my cart? because without it,its giving...
Started by Lily on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
That way you can have a "view your cart" page.
For you cart is up to you, however I would have one.
|
|
Let's say I have I have an online store with a "shopping cart" feature and I want to implement an "empty cart" link in a RESTful way.
For simplicity, let's say my resources are a Cart that contains CartItems, each of which has a Product. My URIs might...
Started by Rich Apodaca on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
What about DELETE /cart_items/ to clear the cart itself?
DELETE /cart_items/ is an interesting idea that....
You have DELETE /cart_items/cart_item_id/ that removes cart_item_id from their cart.
RESTful IMO.
|
|
Hello,
I have a ecommerce site that has 2 types of products: books & seminars participations. They are different, and have different attributes. I am curious how would you model this in the DB and as models (since you cannot inherit multiple classes)
...
Started by solomongaby on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
But both have a product ID, so if your user "add to cart"s, you just tell the cart "add product id #1....
Your catalog code for seminar registrations.
cart code is concerned, you mostly just care about a product_id, title, and price.
|
Ask your Facebook Friends
|
Hey all,
I would like to announce the release of ‘flexi cart’, a comprehensive shopping cart library for CodeIgniter.
Whilst CodeIgniter does indeed come with its own cart library, the library is quite basic in functionality and is only aimed at creating...
Answer Snippets (Read the full thread at codeigniter):
You mention....
Couple of questions:
1) Does flexi cart have support for any payment mechanisms built in? CC gateway/PayPal?
2) I get the impression flexi cart doesn’t have a “user” concept, just cart sessions.
Guide.Thanks for the code.
|
|
Hi all,
i want to use shopping cart in my portal. can i get shopping cart plugin for jquery?
Gnaniyar Zubair
Started by Gnaniyar Zubair on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I doubt that you will find shopping card component that can be just placed on the ... .
But I guess you won't be successful.
Try this pluggin http://plugins.jquery.com/project/add2cart
Well you have to browse the web on whether there exists such a plugin .
|
|
I am creating a simple shopping cart in rails, when I add the product to cart i get this error : You have a nil object when you didn't expect it!
the add to cart method is :
def add_to_cart begin product = Product.find(params[:id]) rescue ActiveRecord...
Started by Datis on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
How is @items in your add_product method defined.
Be @cart or something referenced in your view.
|
|
Updated to 2.0.6. Cart pop up didn't work. Tried the fix suggested here http://forum.virtuemart.net/index.php?topic=101067.0 (using vmprices from 2.0.2), which I also had to do with 2.0.4, but that didn't work this time. In fact now the add to cart button...
Started by McD on
, 11 posts
by 8 people.
Answer Snippets (Read the full thread at virtuemart):
Yesterday the popup from add to cart worked, now, by going to configuration: checkout: and unticking "display modal popup on "add to cart" Canyou explain this section:
configuration>....
Issue, just (today) upgraded from 2.0.2 > 2.0.6.
|
|
Are shopping cart and paypal 2 different things ? And how to implement them in ASP.NET
Started by Shantanu Gupta on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Shopping cart is a general term which is used at http://www.aspcode.net/Creating-a-simple....
Paypal is an online payment service which you can use to pay online on a website .
No, Shopping cart and paypal are two different things.
Available.
|
|
Hey guys, I was wonjdering if anyone on here has ever built they're own guard-n-cart or the rear dump before? I would love to build one for my case 195 but i'm a little unsure of the dimensions. Anybody have any suggestions? Thanks a lot
Started by Brazaco on
, 11 posts
by 6 people.
Answer Snippets (Read the full thread at mytractorforum):
The front cart is what I am the most interested in, the width of the bars "Dump Cart", I used one of the old pipe framed....
I know there is a guy on the WFM forum that has built the Gard-n-cart and has built one I may work with that.
|
|
Let say I am rendering list of products with Add To Cart link / button next to each.
I also have a CartController with AddToCart Action that accept a parameter of Product type.
After product is added to cart user should stay on the same page (Product ...
Started by Michael D. on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
So make the initial add to cart button post to an add to cart page jquery function on top of the....
Now keep in mind that some of your users won't be able to support jquery/javascript .
To the cart...then do a fade out!
Keep it simple.
|