osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Easy Populate & Products Attributes

This is a discussion on Easy Populate & Products Attributes within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Um mit Easypopulate auch über die Importdatei Löschen zu können mache man folgendes. In der Datei easypopulate.php Suche nach $deleteit ...


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 01-12-2008, 08:30 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,100
Thanks: 81
Thanked 348 Times in 327 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 Easy Populate & Products Attributes

Um mit Easypopulate auch über die Importdatei Löschen zu können mache man folgendes.

In der Datei easypopulate.php
Suche nach

$deleteit

alles darunter muss so aussehen.
//
global $active, $inactive, $zero_qty_inactive, $deleteit;
$active = 'Active';
$inactive = 'Inactive';
$deleteit = 'Delete'; // jetzt funktioniert es
$zero_qty_inactive = true;
//

Dann suche nach

$row['v_status'] = $inactive;

und ersetze es mit

$row['v_status'] = $inactive;
$row['v_status'] = $deleteit;

suche

function walk( $item1 ) {
global $filelayout, $filelayout_count, $modelsize;
global $active, $inactive, $langcode, $default_these, $deleteit, $zero_qty_inactive;
global $epdlanguage_id, $price_with_tax, $replace_quotes;
global $default_images, $default_image_manufacturer, $default_image_product, $default_image_category;
global $separator, $max_categories;
// first we clean up the row of data

ersetzte mit

//
function walk( $item1 ) {
global $filelayout, $filelayout_count, $modelsize;
global $active, $inactive, $langcode, $default_these, $zero_qty_inactive, $deleteit;
global $epdlanguage_id, $price_with_tax, $replace_quotes;
global $default_images, $default_image_manufacturer, $default_image_product, $default_image_category;
global $separator, $max_categories;
// first we clean up the row of data

//

dann suche nach

if ($zero_qty_inactive && $v_products_quantity == 0) {
// if they said that zero qty products should be deactivated, let's deactivate if the qty is zero
$v_db_status = '0';
}

und darunter dieses einfügen

// setzt den status nach der Angabe unter $deleteit in der Importdatei.
if ($v_status == $deleteit){
// they told us to deactivate this item
$v_db_status = '99'; //status 99 zum löschen
}


suche

array_walk($items, 'print_el');
echo "
No products_model field in record. This line was not imported
";
echo "
";

und setzte darunter

mysql_query("DELETE products, products_to_categories, products_description FROM products, products_to_categories, products_description WHERE products.products_id = products_to_categories.products_id AND products.products_id = products_description.products_id AND products.products_status = 99");
echo "
";

Fertig!!
!!!!!!!!!!!!!!Achtung!!!!Achtung!!!!Achtung!!!!Ach tung!!!!Achtung!!!!Achtung!!!!

Es werden keine Kategorien gelöscht. Dies muss man weiterhin per Hand tätigen.

/////////////////////////////////////////////////////////////////////////////////////////////////
Was ich noch nicht hinbekommen habe ist das auch der Status Delete Angezeigt wird.

Mann kann den Status Delet aber auch mit Update angeben.
dazu mache folgendes

Suche

echo " Updated
";

und ersetzte mit

echo "".$deleteit." OR";
echo " Updated
";


Es wird jetzt immer auch nur beo Update Delete mit Angezeigt.

Wem das nichts aus macht ansonsten muß man diesn Schritt nicht machen.

Ende


More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • 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. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
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
Easy Populate & Products Attributes michael_s New osCommerce Contributions 0 09-23-2007 02:25 AM
Easy Populate & Products Attributes michael_s New osCommerce Contributions 0 09-07-2007 09:23 PM
Easy Populate & Products Attributes michael_s New osCommerce Contributions 0 07-31-2007 12:28 AM
Easy Populate & Products Attributes michael_s New osCommerce Contributions 0 05-06-2007 09:18 PM
Easy Populate & Products Attributes michael_s New osCommerce Contributions 0 04-06-2007 02:26 AM


All times are GMT -8. The time now is 08:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax