Jump to content
Sign in to follow this  
Misha7

Экспорт товаров в ручном режиме

Recommended Posts

Подскажите пожалуйста, с помощью какого запроса в базе выводить список всех товаров с ценой, описаниями и характеристиками?

Share this post


Link to post
Share on other sites

В принципе разобрался, есть такое дело

p.model,
pd.name,
p.price,

 

А как вывести название категории, SEO-название товара?

Share this post


Link to post
Share on other sites

В принципе разобрался, есть такое дело

p.model,

pd.name,

p.price,

 

А как вывести название категории, SEO-название товара?

 

$category_name = mysql_fetch_array(mysql_query ("

SELECT

cd.name

FROM

`{$db_prefix}category` AS c,

`{$db_prefix}category_description` AS cd,

`{$db_prefix}language` AS l,

`{$db_prefix}product_to_category` AS p2c

WHERE

p2c.product_id ='{$product_id}' AND

c.category_id=cd.category_id AND

c.category_id=p2c.category_id AND

cd.language_id=l.language_id AND

l.code ='ru' AND

p2c.category_id !='0'

ORDER BY p2c.category_id DESC

LIMIT 1"));

 

 

$a = mysql_fetch_array(mysql_query("

SELECT

keyword

FROM `{$db_prefix}url_alias`

WHERE query ='product_id={$product_id}'

LIMIT 1"));

Edited by oleksa1972

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.