Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SQL #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions simpla/ajax/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private function import_item($item)
// Если задан артикул варианта, найдем этот вариант и соответствующий товар
if(!empty($variant['sku']))
{
$this->db->query('SELECT id as variant_id, product_id FROM __variants, __products WHERE sku=? AND __variants.product_id = __products.id LIMIT 1', $variant['sku']);
$this->db->query('SELECT id as s_variants.variant_id, s_variants.product_id FROM __variants, __products WHERE sku=? AND __variants.product_id = __products.id LIMIT 1', $variant['sku']);
$result = $this->db->result();
if($result)
{
Expand Down Expand Up @@ -379,4 +379,4 @@ private function internal_column_name($name)
header("Expires: -1");

$json = json_encode($import_ajax->import());
print $json;
print $json;