Jump to content
xt:Commerce Community Forum

Produkt Export Probleme


scottgzero1968

Recommended Posts

Hi,

wollte heute mal wieder, nach lange zeit die Produkte exportieren.

Mist!

1146 - Table 'db******-****.personal_offers_by_customers_status_' doesn't exist

SELECT * FROM personal_offers_by_customers_status_ WHERE products_id = '1'ORDER BY quantity

[XT SQL Error]

Was ist da schiefgelaufen?

Für jeder hilfe bin ich im voraus dankbar.

Chris

Link to comment
Share on other sites

Das Problem hatte ich vorletztes Jahr mal. Hier'n Auszug aus meiner persönlichen Bugfix Sammlung.

Gruss

admin/includes/classes/import.php, Zeile 660

---------------------------------------------

Wenn Kundenstatus neu angelget wurden und gelöscht befinden sich Lücken in der ID-Folge.

Damit kommt die Exportroutine nicht klar.

Orginal:

            for ($i = 0; $i < count($this->Groups) - 1; $i ++) {
$price_query = "SELECT * FROM ".TABLE_PERSONAL_OFFERS_BY.$this->Groups[$i +1]['id']." WHERE products_id = '".$export_data['products_id']."'ORDER BY quantity";
$price_query = xtc_db_query($price_query);
$groupPrice = '';
while ($price_data = xtc_db_fetch_array($price_query)) {
if ($price_data['personal_offer'] > 0) {
$groupPrice .= $price_data['quantity'].':'.$price_data['personal_offer'].'::';
}
}
$groupPrice .= ':';
$groupPrice = str_replace(':::', '', $groupPrice);
if ($groupPrice == ':')
$groupPrice = "";
$line .= $this->TextSign.$groupPrice.$this->TextSign.$this->seperator;

}[/php]

Bugfix:

[php] foreach($this->Groups as $i => $groups) {
$price_query = "SELECT * FROM ".TABLE_PERSONAL_OFFERS_BY.$this->Groups[$i]['id']." WHERE products_id = '".$export_data['products_id']."'ORDER BY quantity";
$price_query = xtc_db_query($price_query);
$groupPrice = '';
while ($price_data = xtc_db_fetch_array($price_query)) {
if ($price_data['personal_offer'] > 0) {
$groupPrice .= $price_data['quantity'].':'.$price_data['personal_offer'].'::';
}
}
$groupPrice .= ':';
$groupPrice = str_replace(':::', '', $groupPrice);
if ($groupPrice == ':')
$groupPrice = "";
$line .= $this->TextSign.$groupPrice.$this->TextSign.$this->seperator;

}

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
  • 4 months later...

hallo ich habe auch das problem:

1146 - Table 'db242828649.personal_offers_by_customers_status_' doesn't exist

SELECT max(quantity) as qty FROM personal_offers_by_customers_status_ WHERE products_id='7' AND quantity<='1'

[XT SQL Error]

ich habe aber nie eine kundengruppe gelöscht, wie kann ich den fehler beheben.

vd

vg

michaela

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...