Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Multi Product add to cart


Ian

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.

Link to comment
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

Link to comment
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

Link to comment
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.

Link to comment
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.

Link to comment
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

Link to comment
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

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

Link to comment
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.

Link to comment
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

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

Link to comment
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.

Link to comment
Share on other sites

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

 

http://www.oscommerce.com/forums/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

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

Link to comment
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.

Link to comment
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

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

Link to comment
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

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...