Jump to content
Sign in to follow this  
blueline

[Contribution] Family Products v 1.0

Recommended Posts

whoops! Hey, I was using family products ms2.2 and getting the error so I switched to this one and it works great. Thanks!


If I was crafty, this would be a funny signature.

Share this post


Link to post
Share on other sites

Hiya! First - great contrib. This is really useful. I added the suggestions above to avoid listing inactive products, but found another little issue.

 

Using product attributes, once a product with it's attributes is added to the cart, the product ID looks like productid=30{2}1 . Clicking the link to see the product gives a SQL error in family_products.php.

 

Easy fix to help anyone with the same issue:

 

In /includes/family_products.php, find:

 

$currentid = $HTTP_GET_VARS['products_id'];

 

change to:

$currentid = (int)$HTTP_GET_VARS['products_id'];

 

Hope this helps someone else.

 

Cheers,

 

Ian

Share this post


Link to post
Share on other sites

Great contrib!

 

Only one minor problem - how do I remove products from a family?

 

I'm using the version found at http://www.oscommerce.com/community/contri...l/search,family without advanced attributes handling or the categories.php mod. I'm simply adding new families, and assigning products to them in catalog/admin/assign_families.php and catalog/admin/view_families.php

 

I think a 'Remove product from family' would be neat in the view_families.php file.

Share this post


Link to post
Share on other sites

Many thanks to Chris and everyone else who has helped along the way for this great contribution. It was just what I was looking for and I have it up and running and working beautifully.

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  

×