Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Option Type v1.0 problems


JimPMM

Recommended Posts

Hi,

I'm having problems getting the option_type feature to work with my store - I have used it before on an older snapshot, so I think this could be the cause. The snapshot I'm using is from 02 09 02 - can anyone point me in the right direction??

 

Many thanks

Link to comment
Share on other sites

Thanks - didn't realise that there was an update! However, I'm now getting bizarre errors (2) on the product info pages :

 

Warning: array_map() expects argument 1, 'tep_string_to_int', to be either NULL or a valid callback... and

Warning: Bad arguments to implode() in...

Both are referring to the application_top.php page, which obviously hasn't been altered with this feature installation.

 

Can anyone help...?

 

Thanks

 

Jim

Link to comment
Share on other sites

Ok, managed to find out what was wrong. This may be of some use for several other people whose posts I found when searching on those error messages.

Basically, there's just a function missing from the catalog/includes/functions/general.php file - the "tep_string_to_init" function.

All you need to do is add these lines at the end of the general.php file:-

 

function tep_string_to_int($string) {

return (int)$string;

}

 

It's just a case of obviously the general file has been replaced by some mod or other, and it's using one without this function!

 

After much hair-pulling-out, this worked for me, so I hope it helps with anyone else who has this problem - I noticed there were quite a few, with no replies to their posts!

 

Regards

 

Jim

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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