Jump to content

Papadish

Members
  • Content count

    16
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Randy Indish
  1. I am in the process of installing PSM and have one discrepancy in the add code. In /admin/catagories.php I am supposed to find code: echo tep_draw_hidden_field('products_image', stripslashes($products_image_name)); and add code below it. That line is not in my installation, this line is inside a table cell: <tr> <td class="smallText" align="right"><?php echo tep_draw_hidden_field('products_date_added', (tep_not_null($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : ''))); ?></td> </tr> Where is the code added? This is the only thing that didn't seem right. Any help with this?
  2. Thank you for such a rapid response. I am working with this on a dedicated testing server with the site under /catalog/. The live site is in the root, so I will have to change the Rewritebase again when it goes to the live site. Do you reccomend this approach? I have backed up the backups.
  3. I have a question when editing .htaccess file. Do I replace all the code with the code in the install instructions or add. It looks to me like replace but the instructions are not clear on this. There is more above this dealing with SSL. Thank you in advance. Existing Code: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} <Files ~ "\.inc$"> Order allow,deny Deny from all </Files> <Files ~ "\.inf$"> Order allow,deny Deny from all </Files> <Files ~ "\.ini$"> Order allow,deny Deny from all </Files> <Files ~ "\.hta$"> Order allow,deny Deny from all </Files>
  4. Yes, I'm sorry I didn't give you the page. Thank you for responding.
  5. I am attempting to install this to 2.3.1 and have found some of the code that needs to be replaced not exactly the same as the code in my store. Install says look for this: if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('<br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . $_sid; } return $link; This is what my code is: if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br /><br /><font color="#ff0000"><strong>Error!</strong></font><br /><br /><strong>Unable to determine connection method on a link!<br /><br />Known methods: NONSSL SSL</strong><br /><br />'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { $link = str_replace( '?', '/', $link); $link = str_replace( '&', '/', $link); $link = str_replace( '=', '/', $link); } else { $link = str_replace( '&', '&', $link); } return $link; } My OSC install has been around a few months and is not clean and sterile... is this a problem? I have changed nothing as of yet, just going through the code changes as stated in the intall.html. Papadish
  6. Never mind, I figured it out.... my bad and stupid.

  7. Never mind, I figured it out.... my bad and stupid.

  8. Hi Hoheria, I used your mod to put descriptions on catagories, but and it generally works great, however, it is posting the products twice... all products whether or not I put a description. did I do something wrong?

  9. Papadish

    Extra pages-info box w/admin 4.6.1

    I have basically the same problem. column_left is in the admin folder, not in the root where it is looking. This is wierd and I can't find anyone with a solution.
×