Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Product Listing in EZpages

Product Listing in EZpages

Started by jdw1979 on 12 Sep 2011, 3:45 PM · Views: 544

Results 1 to 4 of 4
12 Sep 2011, 3:45 PM
#1
jdw1979 avatar

jdw1979

Zen Follower

Join Date:
Jun 2009
Location:
NC
Posts:
174
Plugin Contributions:
0

Product Listing in EZpages

So, what I've BEEN doing is just copying and pasting the html src code from product searches into the EZpages...as the company for whom I work wants their favorite products on the EZpages. However, the trouble I'm running into is that the prices for these items fluctuate pretty regularly...so I'm trying have the products load dynamically from the database, so when I run my pricing updates, I can circumvent the step of having to copy and paste HTML. I've already enabled PHP in the EZpages, but I'm having a difficult time figuring out what files control the output of product lists (class="productListing") - anybody got any ideas?

Johnathan D. Walker
Wilburn Medical USA

12 Sep 2011, 6:38 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Product Listing in EZpages

well modules/product_listing.php is kind of the main file that controls the product listing but it won't be that simple unfortunately.

putting a featured products center box on the ez pages would be easier.

if not then you are going to have to dip into the code quite a lot.

Nick
iszent.com

12 Sep 2011, 7:01 PM
#3
jdw1979 avatar

jdw1979

Zen Follower

Join Date:
Jun 2009
Location:
NC
Posts:
174
Plugin Contributions:
0

Re: Product Listing in EZpages

Well, what I was trying to do was simulate doing a search on meta-tags that I've done for certain prodcuts. So I was fishing around in some of the tpl_advanced_search_result.php and related files trying to get a clue as as to how I could do it.

I also considered just putting an iframe in the EZ page and src-ing it to the query based search URL...the problem is I can't figure out how to JUST output the region containing just the search results rather than the entire bloody page!

Johnathan D. Walker
Wilburn Medical USA

12 Sep 2011, 9:12 PM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Product Listing in EZpages

OK well here's the thing. In order to output it like a product listing you would most likely have to create a header_php file for that page which would set the page variables including the products. Then you'd call product_listing.php which would format that data into a big array according to the settings in configuration. Then you call a template to display that array.

So it is not going to happen without dipping into the php in a fair way.

However, easier, although still involving php , is to build a center box. What that does is run a sql query to find your products and then send these detail to a template file. It is basically a simpler process.

You can have a look at modules/upcoming_products.php and templates/tpl_modules_upcoming_products.php to see how this process works.

It is not that big a deal but it depends on your comfort with php.

The iframe route will work and you could just get rid of everything else using css. But that is a messy messy messy solution.

Nick
iszent.com