Zen Cart Logo
Forums / General Questions / Product listing modification help.

Product listing modification help.

Locked

Views: 611

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
9 Mar 2010, 10:47 PM
#1
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Product listing modification help.

Hello.
There is a need for me to modify product listing. i can not understand zc functions as much , so after so many tires , i thought i ask .

I need to add zoom effect to product listing image. I added new attribute to image called longdesc , but need to remove anchor tag of image so when is clicked , it wont take me to product page.

also , new attribute .. ( longdesc ) need to contain link to medium or large image of that product ..

this should be fairly easy for anyone with knowledge of zc functions and stuff. and greatly will help out to add zoom effect to product listing.

Thanks.

10 Mar 2010, 1:24 AM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Product listing modification help.

ok , in product listing , i changed the code that display image to this

$lc_text = zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'longdesc=" "' . 'class="listingProductImage"' );

i like to know how i can add this function to above link
$("img").fullsize();

10 Mar 2010, 2:23 AM
#3
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Product listing modification help.

never mind , i been reading things Arss backward :unsure:

10 Mar 2010, 11:02 PM
#4
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Product listing modification help.

Ok , i managed to make the script work , but need help to add link to medium image inside new image attribute that i have added
currently the code looks like this with new attribute.

            $lc_text = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'longdesc=""'.'class="listingProductImage"') . '</a>';

i need refrence to medium image of product inside longdesc attribute.

thanks.

11 Mar 2010, 9:52 PM
#5
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Product listing modification help.

i can not believe nobody knows how to add link to medium image inside an attribute .. or i guess no one cares to shed some light over here .. i guess i wasted lots of time helping others. .