Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / edit products_listing

edit products_listing

Locked

Views: 642

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
2 Nov 2010, 7:00 PM
#1
lumiz avatar

lumiz

New Zenner

Join Date:
Jun 2010
Posts:
19
Plugin Contributions:
0

edit products_listing

Edit the pages of specials, and produts_new produts_all.
No problems but product_listing tube is not the same, what I want you to be a list like this:

<img src="'.$imagendeatras.'" alt="'.$listing->fields['products_name'].'" width="168" height="175" class="atras">
	<a href="'. zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . $productsInCategory[$listing->fields['products_id']] . '&products_id=' . $listing->fields['products_id']).'" title="'.$listing->fields['products_name'].'" width="168" height="175">
		<img src="'.DIR_WS_IMAGES . $listing->fields['products_image'].'" alt="'.$listing->fields['products_name'].'" width="168" height="175" class="adelante">
	</a>
	<div class="descripcion">
		<a href="'. zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . $productsInCategory[$listing->fields['products_id']] . '&products_id=' . $listing->fields['products_id']).'" title="'.$listing->fields['products_name'].'" width="168" height="175">
		<strong>' . $listing->fields['products_name'] . '</strong></a><br />
		' . $descripcion . '<br />
        <small>'.$preciocarater.'<strong>') .  $products_price . '</strong></small>
	</div>

*some variables are from my catalog

2 Nov 2010, 11:34 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: edit products_listing

If you want divs instead of tabular layout for the product listing, start with the Column Layout Grid mod from Free Addons. You can then tweak the elements you want different in product_listing.php, and turn off the elements you don't want in admin.

2 Nov 2010, 11:43 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: edit products_listing

You might find it helpful to use the Flexible Product Listing mod, attached to post 50 in a forum thread styling product listing pages with column layout grid.

3 Nov 2010, 3:44 PM
#4
lumiz avatar

lumiz

New Zenner

Join Date:
Jun 2010
Posts:
19
Plugin Contributions:
0

Re: edit products_listing

thanks for replying, what happens is that I do not want to have the list I want it fitted into columns and div (css), as the code that will display and not display add to cart but only the price the image and the description / name

3 Nov 2010, 3:51 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: edit products_listing

Yes, Column Grid (or Flexible Product Listing) in Columns mode will give a div layout, and you can turn off the other elements in admin.

It's generally best to modify only what you need to in copies of stock files rather than trying to build the functionality from scratch, unless you know all of the code and its purposes intimately.

3 Nov 2010, 4:33 PM
#6
lumiz avatar

lumiz

New Zenner

Join Date:
Jun 2010
Posts:
19
Plugin Contributions:
0

Re: edit products_listing

I show you the code in use in specials, and products_all produts_news
listing_products but do not understand how this assembly, there is some module that raises the sql query like products_all??

3 Nov 2010, 5:00 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: edit products_listing

If you use the Flexible Product Listing files, there is little if any modification you will need to do to product_listing.php to get the layout you want. It will be mostly stylesheet work and admin settings.

4 Nov 2010, 6:49 PM
#8
lumiz avatar

lumiz

New Zenner

Join Date:
Jun 2010
Posts:
19
Plugin Contributions:
0

Re: edit products_listing

thanks be closed