Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Attributes Model Number Fatal Error


Recommended Posts

Hello everyone! I tried to install the following contribution.

 

http://www.oscommerce.com/community/contri...ttributes+model

 

I need to add model# to my product attributes. Some of my products need to be listed with size, colors, or scents. Not all products, just some of them. Each different size, color, or scent has a different model #. (I need this number to order from my dropshipper). After Installing this contribution I received the following error:

 

Fatal error: Call to undefined function tep_get_products_model() in /home/vgenterp/public_html/admin/products_attributes.php on line 698

 

<?php
 $next_id = 1;
 $attributes = tep_db_query($attributes);
 while ($attributes_values = tep_db_fetch_array($attributes)) {
   $products_name_only = tep_get_products_name($attributes_values['products_id']);
   $products_model_only = tep_get_products_model($attributes_values['products_id']);
   $options_name = tep_options_name($attributes_values['options_id']);
   $values_name = tep_values_name($attributes_values['options_values_id']);
   $rows++;I think this is where the problem is.  If someone could help me i would greatly appreciate it.  Please answer in simple terms.  I am a newbie.  Just a housewife trying to start a business at home. :'( 
?>

Link to comment
Share on other sites

I removed the code that caused the fatal error. Now I am able to see a Model column in my product attributes page.... but there isnt a place to insert the model number.

 

Any help is greatly appreciated. I am learning as I go... so be gentle on me. :blush:

Link to comment
Share on other sites

  • 2 weeks later...

Middle addition to the contrib states that the code does not work. Guess you found that out.

 

 

I removed the code that caused the fatal error. Now I am able to see a Model column in my product attributes page.... but there isnt a place to insert the model number.

 

Any help is greatly appreciated. I am learning as I go... so be gentle on me. :blush:

Link to comment
Share on other sites

Middle addition to the contrib states that the code does not work. Guess you found that out.

 

 

Do you know of a contribution or anything else that could help me with this. I have several products that come in various sizes... all with different model #'s based on size (or color). Thank you for your help!

Link to comment
Share on other sites

No I don't, I am not to sure where you need the model number.

 

I am guessing you searched contribs.

 

This might work.

 

http://www.oscommerce.com/community/contri...ch,model+number

 

or this

 

http://www.oscommerce.com/community/contri...ch,model+number

 

 

Do you know of a contribution or anything else that could help me with this. I have several products that come in various sizes... all with different model #'s based on size (or color). Thank you for your help!
Link to comment
Share on other sites

Thank you for your help... neither one of those contributions work for what i need. I need the contribution that didn't work. Or one similar. I just want the product attributes to list different model# for different sizes or colors. Thanks!

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