Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Buy_Two_Module


Guest

Recommended Posts

Hi Nick,

 

I have double checked that - no problems at all. So I assume that this has something to do with your db or the data. Are you sure that you have weight details for all of your products?

 

At least it is quite simple what buy_two is doing... just take product 1 weight + product 2 weight => sum.

 

That's all.

 

Regards

Kai

Link to comment
Share on other sites

  • Replies 179
  • Created
  • Last Reply

Top Posters In This Topic

I have double checked that - no problems at all. So I assume that this has something to do with your db or the data. Are you sure that you have weight details for all of your products?

 

At least it is quite simple what buy_two is doing... just take product 1 weight + product 2 weight => sum.

Hi Kai,

 

Thanks for your fast reply. I haven't seen it until now :blush: .

 

Yes, all of the products have a weight defined. Here are some examples:

 

0.2kg + 0.1kg = 0.204kg

0.1kg + 5.5kg = 11.00 kg

0.3kg + 0.54kg = 0.60 kg

 

This is really very strange!

 

The bundles are created correctly in the root of the catalog and as I said before, the weights are all defined.

 

Could you please tell me where exactly the weight is calculated?

 

Thanks for your time!

Nick

Link to comment
Share on other sites

Hi Nick,

 

could you tell me which value you have got in the weight column?

 

is it 0.2 or is it 0.2kg ??

 

The weights are summarized in the buy_two_func.php

 

look for :

 

$bundle_weight = $bundle_products_a['products_weight'] + $bundle_products_b['products_weight'];

 

Regards

Kai

Link to comment
Share on other sites

look for :

 

$bundle_weight = $bundle_products_a['products_weight'] + $bundle_products_b['products_weight'];

If you believe it or not, in my version $Id: buy_two_module.php, v1.06 2004/06/20 the line you quoted above goes like this:

$bundle_weight = $bundle_products_a['products_weight'] + $bundle_products_a['products_weight'];

I changed it to your version and now everything works as expected!

 

Problem solved :thumbsup:

 

Thanks,

Nick

Link to comment
Share on other sites

  • 1 month later...

Hi,

 

I have just installed this contribution and when the discount option is "off", the two items would add to the shopping cart. However, when the discount option is "on", the two items does not add to the shopping cart. Is this a bug?

 

StrictlyPC

Link to comment
Share on other sites

Hi,

 

I have just installed this contribution and when the discount option is "off", the two items would add to the shopping cart.  However, when the discount option is "on", the two items does not add to the shopping cart.  Is this a bug?

 

StrictlyPC

 

Hi,

no - there is not a bug. I would recommend you to follow the installation instructions step by step again. Incl SQL-Statement and code changes. Also it might be a good idea to take a look at the settings in admin. And take care of your application_top.php...

 

And then - assuming your installation is correct and your code of your shop is based on the standard osc one - it should work and place a generated bundle (not two separate items) into your shopping cart.

 

Regards

Kai

Link to comment
Share on other sites

Hi Kai,

 

Thanks for your response. I have doubled check my installation and everything seems to be working except for that problem. I went through this post and the only thing that could be causing this problem is that i am running on a "localhost". I will try that later. Also, I noticed that it is adding more products to my products table. Is this normal?

 

Thanks,

StrictlyPC

Link to comment
Share on other sites

I have a question about this contribution.

 

What I am basically trying to accomplish is to offer a discount for multiple items within one catagory.

 

 

for example, if I have a category called "widgets", I want to offer a volume discount for any other products in that category, but not a discount for products in other categories.

 

does that make sense?

 

can this contri accomplish this?

Link to comment
Share on other sites

Hello:

 

I love the contrib and would love it more if I could make it work!

 

I know I have everything set up according to V2.1, because when coming from an old link, not using the Seach Engine Friendly URL V1.8 Contrib, it looks good and functions properly.

 

However, with my current search engine friendly URLs, I think the reason why I do not see the Buy_Two is because of the URL contrib.

 

If anyone could point me in the right direction, offer some advice I would greatly appreciate it!

 

While I would love to simply undo the URL contrib to get this one to work, I do like the prettier URL and would prefer to get them both working together...

 

I do have two more concerns/questions in addition to fixing it:

How Do I get the 2 small product images instead of the "Bundle" image? (can I?)

Is there a way to specify the attributes of the bundled products? (color, size, et cetera)

 

I appreciate any help very much!

Link to comment
Share on other sites

Hi,

 

I can not help with the URL-thing, as I do not know which contrib you are using and which version. But I have seen Buy_two running togehter with some search engine friendly URLs (but do not know which contrib).

 

Your additional questions:

 

- yes you can - look at your admin settings -> auto image...

- no, as mentioned in the instructions you can not use attributes, etc ... this would make a "quick-buy-click" to complicated for the visitor. But you can set buy_two unvisible if products are selected holding attributes. Look at your admin.

 

Regards

Kai

Link to comment
Share on other sites

First sorry for my english i'm a french canadian

 

Hello,

 

thank you for this contribution it run very well to associate products of the same category.

 

But how to make for associated a product in particular with another?

 

I would like to be able to specify that the product no.407 is always with the product no.563 and not no.407 with any product of the category or Manufacturer

 

How can i do that ?

 

Thanks

Link to comment
Share on other sites

Hi,

 

I integrated with X-Sell Contribution. So go install that one and define in your case one to another product.

 

Please also look at the instructions and the admin.

 

Regards

Kai

Link to comment
Share on other sites

ok thanks

 

i will install this one before buy_two_module

 

X-Sell v2-MS2 - Cross Sell for MS2

http://www.oscommerce.com/community/contri...l/search,x-sell

 

But it's not work with buy_two_module or i dont know how to work with it

 

I most use witch one with your contribution ?

 

It's not a problem for me to uninstall X-Sell v2-MS2 - Cross Sell for MS2 and install the good one

Link to comment
Share on other sites

i forgot in my last post to show you

 

in page

http://new.clubplanete.com/product_info.php?products_id=5313

 

you see buy_two_module" where is write "2 c'est mieux car vous ?conomisez sur le transport"

 

And une der you see "Nous recommandons ?galement :" product name "BCI 21 COULEUR" it's a X-sell product

 

In my configuration

Use the buy_two_module at "YES"

and

Want to make use of X-sell Contrib ? at "yes"

 

Whats wrong

 

thanks

Link to comment
Share on other sites

ho sorry my link doesn't work in my last post

 

http://new.clubplanete.com/product_info.ph...roducts_id=5354

 

the good produt i most see with buy two modul is "test pour vente avec balzac" and i see random product not the one i target

 

and i send you my configuration , may be a problem there , may be i don't know to use only width xsell , i dont want to use buy_two_modul rendomly only when a define a product

 

Titre Valeur Action 

Use the Buy_Two_Module yes 

Want to make use of X-Sell Contrib? yes 

Set the Second-Product-Priority no_preference 

FIRST Product: include or exclude categories? exclude 

FIRST Product: These are the categories to include or exc 174 

Do you want to exclude categories or include them? exclude 

Treat these 2nd bundle product from these categories in a specia   

Do you want to exclude Products having attributes? excluding 

Want to use it as discount module or just simple normal 

Do you want to enable/disable the Products Name Matching Feature disable 

Do you want to exclude the product name matching or include? exclude 

Product name matching on first level or all? first 

Number of matching charakters in 2nd Product search result 5 

What is your preferred logic to match-search? simple 

Choose the part of the source product name? left 

image width 40 

image height 40 

If Bundle with discount: bundle titel in product name Bundle 

If Bundle with discount: -FROM- bundle word from 

If Bundle with discount: bundle titel in model name Bdl 

If Bundle with discount: discount for Product A in % = 0 

If Bundle with discount: discount for Product B in % = 3 

Quantity of the Bundle (max. available) 1 

Use automatically generated images or a default one? automatically 

Enter the Bundle image you want to use bundle_image.gif 

Do you have big images? also as column within the products table no 

Automatic Image Size accelerator: default is 1 1 

Automatic Image Size accelerator for BIG images: default is 1 1 

Picture in Picture: Image 1 accelerator WIDTH: default is 1 1 

Picture in Picture: Image 1 accelerator HEIGTH: default is 1 1 

Picture in Picture: Image 2 accelerator WIDTH: default is 1 1 

Picture in Picture: Image 2 accelerator HEIGTH: default is 1 1 

Picture in Picture: Image 1 size of border: default is 4 4 

Picture in Picture: Image 2 size of border: default is 4 4 

Background color of NEW IMAGE -> RED 255 

Background color of NEW IMAGE -> GREEN 255 

Background color of NEW IMAGE -> BLUE 255 

Border color of NEW IMAGE Picture 1 -> RED 255 

Border color of NEW IMAGE Picture 1 -> GREEN 255 

Border color of NEW IMAGE Picture 1 -> BLUE 255 

Border color of NEW IMAGE Picture 2 -> RED 255 

Border color of NEW IMAGE Picture 2 -> GREEN 255 

Border color of NEW IMAGE Picture 2 -> BLUE 255 

Do you want to delete images automatically when bundle expired? yes 

Set the archive flag on 

Set the delete flag off 

Number of days of holding a bundle until it expires 2 

Expired Bundle: what should we do if customer has one remaining nothing 

Set on the table cleaning mode off 

FORCE cleaning now !!!! NOT FOR NORMAL OPERATION !!!! off 

FIRST Product: These are the categories to include or exc

 

 

Which are the categories you want to include or exclude? Enter comma separated categories_ids like 1,2,3,4,5 - IMPORTANT: leave the field empty to DEACTIVATE the function.

 

Date d'ajout: 

Derni?re modification: 09/12/2005

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Is there any further support for this contrib?

 

I have installed, I can see the Buy 2 module underneath my config settings in my admin, but no matter what I tweak, I see nothing in my store.

 

Anyone out there can help me?

Link to comment
Share on other sites

Ah the man himself!

 

So I have the contrib more or less installed. No errors, no blank pages. However, I do not see the contrib actually working.

 

I have been installing the contrib Individual Product Shipping, had some issues with that and finally got it to work. It did involve adding several tables to the database which I am hoping do not interfere with this Contrib.

 

One last strange thing, is something is causing my checkout process to double.

 

Meaning, I have one product in my cart (6.00, plus tax and $3.00 shipping -don't ask :/), go to checkout, and it says $12.42).

 

I am just not sure whether an error in the shipping mad is doubling it and the Buy Two is not configed/installed or if the Buy Two is working and the shipping is not configed correctly.

 

Any help would be HUGE!!!!!!!

Link to comment
Share on other sites

Well, I figured out my double total issue, it was a problem with the code in my Individual Shipping Contrib. But now I am back to square one.

 

I have the module appearing in admin, no errors anywhere but it just doesn't show up. I have gone through the directions several times now, retraced my steps and tried re-querying the DB.

 

Nothing shows up. My store just runs normal, no bundles.

Link to comment
Share on other sites

Hi

 

is there a link that I can see what happens?

 

Are you having products with options/attributes?

 

Did you really enable the module? And also integrated the code within the product_info

?

 

Maybe you would like to post your admin settings of buy_two...

Regards

Kai

Link to comment
Share on other sites

Title Value Action

Use the Buy_Two_Module yes Info

Want to make use of X-Sell Contrib? no Info

Set the Second-Product-Priority everyth_manu Info

FIRST Product: include or exclude categories? include Info

FIRST Product: These are the categories to include or exc 1,2,3 Info

Do you want to exclude categories or include them? include Info

Treat these 2nd bundle product from these categories in a specia 6 Info

Do you want to exclude Products having attributes? including Info

Want to use it as discount module or just simple normal Info

Do you want to enable/disable the Products Name Matching Feature disable Info

Do you want to exclude the product name matching or include? include Info

Product name matching on first level or all? all Info

Number of matching charakters in 2nd Product search result 5 Info

What is your preferred logic to match-search? simple Info

Choose the part of the source product name? left Info

image width 40 Info

image height 40 Info

If Bundle with discount: bundle titel in product name Bundle Info

If Bundle with discount: -FROM- bundle word from Info

If Bundle with discount: bundle titel in model name Bdl Info

If Bundle with discount: discount for Product A in % = 5 Info

If Bundle with discount: discount for Product B in % = 100 Info

Quantity of the Bundle (max. available) 999 Info

Use automatically generated images or a default one? automatically

Enter the Bundle image you want to use bundle_image.gif Info

Do you have big images? also as column within the products table yes Info

Automatic Image Size accelerator: default is 1 1 Info

Automatic Image Size accelerator for BIG images: default is 1 1 Info

Picture in Picture: Image 1 accelerator WIDTH: default is 1 1 Info

Picture in Picture: Image 1 accelerator HEIGTH: default is 1 1 Info

Picture in Picture: Image 2 accelerator WIDTH: default is 1 1 Info

Picture in Picture: Image 2 accelerator HEIGTH: default is 1 1 Info

Picture in Picture: Image 1 size of border: default is 4 4 Info

Picture in Picture: Image 2 size of border: default is 4 4 Info

Background color of NEW IMAGE -> RED 255 Info

Background color of NEW IMAGE -> GREEN 255 Info

Background color of NEW IMAGE -> BLUE 255 Info

Border color of NEW IMAGE Picture 1 -> RED 255 Info

Border color of NEW IMAGE Picture 1 -> GREEN 255 Info

Border color of NEW IMAGE Picture 1 -> BLUE 255 Info

Border color of NEW IMAGE Picture 2 -> RED 255 Info

Border color of NEW IMAGE Picture 2 -> GREEN 255 Info

Border color of NEW IMAGE Picture 2 -> BLUE 255 Info

Do you want to delete images automatically when bundle expired? yes Info

Set the archive flag on Info

Set the delete flag off Info

Number of days of holding a bundle until it expires 2 Info

Expired Bundle: what should we do if customer has one remaining nothing Info

Set on the table cleaning mode off Info

FORCE cleaning now !!!! NOT FOR NORMAL OPERATION !!!! off Info

 

Use automatically generated images or a default one?

Edit

 

Do you want to use the automatically generated images or better a default one? if default you have to enter the bundle image name.

 

Date Added:

Last Modified: 12/11/2005

Link to comment
Share on other sites

First off all let me say it work great ! easy to get into the OSC code and files.

 

Now: My next thing is to give an idea to upgrade buy two because I am presently running into a

small bug, presently trying to get it go ! But I am not a programmer but know very much my way around coding layout and syntax.

 

*** BUG AS FOLLOW ***

 

I installed - CALL FOR PRICE IF PRICE AT 0, now you get where I am going.?

I have to add a statment so that BUY TWO will not bundle products with a price tag

of zero dollars. It casrries its jobs well, but too well, because people buy stuff

at zero when actually it is not possible in the product info page. Anyway can anybody help me with

that one...

 

This problem could easily make an update, like getting a field in admin side to set the minimum price value

to a products in order to allow it to be bundle, making sure that it still does not bundle 0$ products.

 

Thanks to all...

 

You can see my site at (Should be done soon...)

 

http://www.xmedias.ca

Link to comment
Share on other sites

SORRY I TRIED TO EDIT AND IT CRASHED > THIS IS THE ONE TO READ

 

First off all let me say it work great ! easy to get into the OSC code and files.

 

Now:

 

My next thing is to give an idea to upgrade buy two because I am presently running into a

small bug, I am presently trying to get it go !

 

But I am not a programmer, just know very much my way around coding layout and syntax.

 

*** BUG AS FOLLOW ***

 

I installed - CALL FOR PRICE IF PRICE AT 0

 

now you get where I am going at, I have to add a statement so that BUY TWO will not bundle products with a price tag of zero dollars. Product A and B

 

BUY TWO carries its jobs well, but too well...

 

It is possible to buy stuff at zero with buy two when it is actually not possible in the standard product info page. I have to find a way that the code checks the price so it is >0 before allowing the bundle to happen.

 

Anyway can anybody help me with that one...

 

*** BUG END ***

 

*** UPDATE SUGGESTION ***

 

My problem could easily make an update for buy two:

 

Maybe having a field in admin side to enable the administrator to a the minimum price value in order to allow a product to be bundle with another, making sure that it still does not bundle 0$ products. But could restrict low amount products too !!!!

 

Just a tought about that excellent contrib.

 

Thanks to all...

 

You can see my site at (Should be done soon...)

 

http://www.xmedias.ca

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...