Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Family Products v 1.0


blueline

Recommended Posts

  • 5 months later...
  • Replies 78
  • Created
  • Last Reply

Top Posters In This Topic

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

Link to comment
Share on other sites

  • 2 months later...

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.

Link to comment
Share on other sites

  • 6 months later...

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