Forums / General Questions / Get product names of current category

Get product names of current category

Views: 852

Results 1 to 3 of 3
23 Aug 2013, 5:03 PM
#1
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Get product names of current category

Hello I am working on a auto generating content module for categories and i want to display as text the titles of the products that are in that category,
but i just cant figure out from where to get their names, ONLY PRODUCT NAMES without url or image.

Any ideas?

My most recent work: magprom.net

25 Aug 2013, 10:32 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Get product names of current category

perfumbg:

Hello I am working on a auto generating content module for categories and i want to display as text the titles of the products that are in that category,
but i just cant figure out from where to get their names, ONLY PRODUCT NAMES without url or image.

Any ideas?

SELECT products_name FROM products_description WHERE products_id = $ID ; // Set $ID to match the product of interest.

Does that help? If not, perhaps if you supply a copy of a portion of the code that you are working with I/we will be able to give a more specific response.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

15 Jan 2014, 4:02 PM
#3
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Re: Get product names of current category

RodG:

SELECT products_name FROM products_description WHERE products_id = $ID ; // Set $ID to match the product of interest.

Does that help? If not, perhaps if you supply a copy of a portion of the code that you are working with I/we will be able to give a more specific response.

Cheers
Rod

I used different aproach and forgot to mention it here.
but your code works fine too.

Thanks a lot.

My most recent work: magprom.net