Jump to content
Sign in to follow this  
Ian

[Contribution] Multi Product add to cart

Recommended Posts

This is a replacement for the products_listing module. I presents a list of all products in a sub-category, including the attributes realated to each product and a quantity box for each product.

 

What this means is that with 1 click you can add multiple products(with multiple quantities to the cart)

 

You can see a demo at

http://www.zenwarehouse.com/new_credit_cla...t.php?cPath=1_4

 

Download at

 

http://www.oscommerce.com/community/contributions,1129


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

Have uploaded this again due to problems with the contributions server.


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

looks very usefull, thanks Ian


Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Share this post


Link to post
Share on other sites

Ian,

 

Thanks! This is really great for my customers who already know what the products are and just want to place orders without going into each one.

 

I've been wanting something like this for a while.

 

Morris

Share this post


Link to post
Share on other sites

Hi Ian,

 

I have installed your product_listing_multi contribution and when i click on the buy now button on the bottom, it adds all of the products that are listed into the shopping cart, even though the quantity is listed at zero. I was wondering if you have any idea, what the problem could be.

 

Thanks,

David

Share this post


Link to post
Share on other sites

David,

 

What snapshot are you using, if you don't know then open includes/classes/shopping_cart.php in an editor ane look for the file version number right at the top of the file.

 

I believe that in older versions that the shopping cart class has some incompatibilties with my contribution. However I think that this can be fixed easily


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

Hi,

 

Oh shame.

 

Try this. In includes/classes/shopping_cart.php find the line.

 

if ($qty == '') $qty = '1'; // if no quantity is supplied, then add '1' to the customers basket

 

this should be line 90

 

comment the line out so it is now

 

// if ($qty == '') $qty = '1'; // if no quantity is supplied, then add '1' to the customers basket

 

and see if that helps


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

Hi Ian,

 

That did the trick. It is now working correctly. Again, Thank you for your quick response and help.

 

Thanks you,

David

Share this post


Link to post
Share on other sites

Hi Ian,

 

a lot of thanks for this fantastic contribution. Everything works perfectly.

My problem:

In the product listing the additional prices are announced for the selectable options without tax.

How can I change the display, so that the prices are announced including tax?

 

I have installed the following contributions:

Staffelpreise 2.1 and BruttoAdmin V1.0 on a snapshot of the 14.01.03.

 

Sorry for my bad English and a lot of thanks for your efforts.

Greetings

Susanne

Share this post


Link to post
Share on other sites

Ian,

 

Looks like a wonderful contrib, It's going to come in hand for a site I'm going to build for my coffee roaster client. I do have one request though. If a customer clicks on one of the products to get a better discription, I would like the option of being able to add quanities of one item. Lets say 5 lbs of coffee. Instead of having to go into cart to add the extra quanity.

 

Whatcha think, :wink: :D

 

Thanks in advance.


Steve

-------------------------

Share this post


Link to post
Share on other sites

You need to add a Qty box to your product_info.php ... that would run independantly of the multiple listing.

 

If you do a search ... :D

 

... there are a number of posts on doing this.

Share this post


Link to post
Share on other sites
You need to add a Qty box to your product_info.php ... that would run independantly of the multiple listing.

 

If you do a search ... :D  

 

... there are a number of posts on doing this.

 

Ok, now you did it to me. :D :D I didn't even think about doing a search. Daahh, I been here long enough that I should of thought of it.

 

Thanks Linda, for the 10 lashes with a wet noodle. Now maybe I will think straight. :shock: :D


Steve

-------------------------

Share this post


Link to post
Share on other sites
Pretend it's a board ... :D

 

Ok, Fine, Be that way!!! :shock: :D :D

 

Thanks, though, for the tip, I found it and got it working.


Steve

-------------------------

Share this post


Link to post
Share on other sites

Oh and note there are two schools of thought on that.

 

Some like it to add current qty + new qty to the qty if already in the cart, and others like it to be the new qty in the cart.

 

Not sure which version you loaded.

Share this post


Link to post
Share on other sites

This is the thread that I found via a link I found in one of your posts.

 

http://forums.oscommerce.com/viewtopic.php...ity+productinfo

 

It seem to work just perfect. I am also going to instal Ian's mod too.

 

If you would do this, would you use the mod in the link above or would you do something diffrent? Not looking for code, just an opinion.


Steve

-------------------------

Share this post


Link to post
Share on other sites

I use the add on to what's in the cart, myself.

 

I also show when a product exists in the cart that you are adding on to the quantity already selected whether on the product_listing or on the product_info.

Share this post


Link to post
Share on other sites
Hi Ian,

 

a lot of thanks for this fantastic contribution. Everything works perfectly.

My problem:

In the product listing the additional prices are announced for the selectable options without tax.

How can I change the display, so that the prices are announced including tax?

 

I have installed the following contributions:

Staffelpreise 2.1 and BruttoAdmin V1.0 on a snapshot of the 14.01.03.

 

Sorry for my bad English and a lot of thanks for your efforts.

Greetings

Susanne

 

This option is set in admin under Configurations->My Store at the bottom. But this option will only work if your customer is logged in and is in your tax zone.


Steve

-------------------------

Share this post


Link to post
Share on other sites

I just found that the language defines are omitted in Loaded 5 for the product_listing_muti.php

 

Here are what I have added so far to includes/english.php

define('TEXT_PRODUCT', 'Product Name');

define('TEXT_MODEL', 'Product Model');

define('TEXT_OPTIONS', 'Product Options');

define('TEXT_PRICE', 'Product Price');

define('TEXT_AMOUNT_BUY', 'Quantity to Order');

 

There may be more, but I will deal with it when I come across them.

 

Also, it would be nice if I could display product images with this contrib.


Steve

-------------------------

Share this post


Link to post
Share on other sites

Is there any way to add description of product and checkbox option to select the products instead of adding quantity?

Share this post


Link to post
Share on other sites

Take a looky over here!

www.oscommerce.com/community/c?

 

 

Is there any way to add description of product and checkbox option to select the products instead of adding quantity?

 

That might be what you are looking for


What goes up MUST come down

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×