Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

When going through the installation of the MSRP Percent Only Contribution everything was going good until I came across 2 parts of code that I was suppose to find and replace. Well these 2 parts of code were no where in the files I was suppose to find them in.

 

So needless to say there were 2 chunks of code I couldn't put into the files and I'm assuming that's why it isn't working.

 

If I need to include the code to find and replace and the files they were suppose to be in I will. Was just hoping someone else has had this problem and could help.

 

Thanks,

Nwatko

  • 7 months later...
Posted
When going through the installation of the MSRP Percent Only Contribution everything was going good until I came across 2 parts of code that I was suppose to find and replace. Well these 2 parts of code were no where in the files I was suppose to find them in.

 

So needless to say there were 2 chunks of code I couldn't put into the files and I'm assuming that's why it isn't working.

 

If I need to include the code to find and replace and the files they were suppose to be in I will. Was just hoping someone else has had this problem and could help.

 

Thanks,

Nwatko

 

the damn thing has never worked for me anyway

  • 7 months later...
Posted
When going through the installation of the MSRP Percent Only Contribution everything was going good until I came across 2 parts of code that I was suppose to find and replace. Well these 2 parts of code were no where in the files I was suppose to find them in.

 

So needless to say there were 2 chunks of code I couldn't put into the files and I'm assuming that's why it isn't working.

 

If I need to include the code to find and replace and the files they were suppose to be in I will. Was just hoping someone else has had this problem and could help.

 

Thanks,

Nwatko

 

 

Gday - did you get an answer for this?

I am getting a similar problem:

 

I think this Contrib is written for an older version of OSc?

 

INSTRUCTIONS:

12. In catalog/admin/categories.php around line 940 find the lines that read as follows:

 

if (isset($_GET['search'])) {
     $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p2c.categories_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and pd.products_name like '%" . tep_db_input($search) . "%' order by pd.products_name");
   } else {
     $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by pd.products_name");
   }

 

But there is no

if (isset($_GET['search'])) {

in my file... I don't think it has been modified.

 

Here is the relevant section of my code

 $products_count = 0;
   if (isset($HTTP_GET_VARS['search'])) {
     $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p2c.categories_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and pd.products_name like '%" . tep_db_input($search) . "%' order by pd.products_name");
   } else {
     $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by pd.products_name");
   }

 

 

Can I just keep my original " if (isset($HTTP_GET_VARS['search']))" and use the rest of the code?

 

 

Also: my file doesn't have this code:

 if ($new_price = tep_get_products_special_price($pInfo->products_id)) {
     $products_price = '<s>' . $currencies->display_price($pInfo->products_price, tep_get_tax_rate($pInfo->products_tax_class_id)) . '</s> <span class="specialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($pInfo->products_tax_class_id)) . '</span>';
   } else {
     $products_price = $currencies->display_price($pInfo->products_price, tep_get_tax_rate($pInfo->products_tax_class_id));
   };

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