osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Report Missing and Unassignes Images

This is a discussion on Report Missing and Unassignes Images within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Editing product had not category. Fixed. When clicking in any row of Product Name column, the page points to product ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 05-16-2008, 04:12 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,283
Thanks: 66
Thanked 306 Times in 292 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Report Missing and Unassignes Images

Editing product had not category. Fixed.

When clicking in any row of Product Name column, the page points to product edit page but the category of the product in this link is "missing" and it does not match to the real category that the products belongs to. You can check it above, seeing that it marks "New product in Top".

To solve this, just a few changes quite easy:

Find this:

$product_query = tep_db_query("SELECT products_name FROM products_description WHERE products_id = '" . (int)$id . "' AND language_id = '" .

($language_id > 0 ? (int)$language_id : '3') . "'");
$product = tep_db_fetch_array($product_query);

Below it you must add this:

$product_query2 = tep_db_query("SELECT categories_id FROM products_to_categories WHERE products_id = '" . (int)$id . "'");
$product2 = tep_db_fetch_array($product_query2);


And find this:


' .

$product['products_name']; ?>



Replace with this:


' . $product['products_name']; ?>


Sorry by muy poor English, I'm spanish.


En Español:

Al editar un producto, este no tiene categoria.

Cuando pinchas en cualquier fila de la columna Product Name, la pagina se va a la edicion del producto, pero sin categoria, es decir, esta como perdida, y en

el texto grande de arriba no se muestra la categoria real al que pertenece el producto, esto se puede comprobar viendo que arriba pone "Nuevo Producto en

Principio". Solucion facil y rapida de instalar.

More...
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Report Missing and Unassignes Images michael_s New osCommerce Contributions 0 11-03-2007 08:13 PM
Report Missing and Unassignes Images michael_s New osCommerce Contributions 0 07-23-2007 09:32 AM
Report Missing and Unassignes Images michael_s New osCommerce Contributions 0 06-22-2007 09:10 AM
Report Missing and Unassignes Images michael_s New osCommerce Contributions 0 01-13-2007 02:00 PM
Report Missing and Unassignes Images michael_s New osCommerce Contributions 0 01-13-2007 12:11 PM


All times are GMT -8. The time now is 02:43 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax