Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Im trying to install this contribution on my site but I noticed that in the catalog/admin/modules.php

 

it says to add some code after this section:

 

f (tep_not_null($action)) {

switch ($action) {

case 'save':

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

 

asking me to add this:

 

if (is_array($value) ) {

$value = implode( ", ", $value);

$value = ereg_replace (", --none--", "", $value);

}

 

 

 

but my problem is I don't have the last line of code in my module file, mine stops at;

 

case 'save':

 

I don't have this line:

 

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

 

 

will this cause any problem with UPS quotes?, I apologize for the newbie question

any help or direction would be greatly appreciated

Thank you

Kelly

Posted

Your file physically ends with the line

case 'save':

with nothing after it? That's not good. Your file has been truncated (chopped off), possibly by a botched add-on install. Depending on what add-ons you have installed, you may be able to compare the file with a "good" vanilla copy or (better yet) with your backup from before the mod, and manually cut and paste in the missing file content. It still may not work (if something was supposed to be added to the file at this point for the add-on). In that case you'll need to roll back your osC installation to before you started installing the add-on (back to your last working copy).

 

By the way, there's no such thing as osC 2.2 MS2 RC2a. Get your version straight. MS2 is an old version of 2.2, while RC2a is the latest (probably last) version. The documentation for the add-on in question should tell you what version(s) it will run on.

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