Topic: HOW TO: Tips on Product Display for music shops!!!

If like me you plan on operating a music store you may wish to place buttons to link to media samples in your product description that appear on your product listing page. You may also wish to have the year of release or catalogue number appear here as well.

Firstly the year of release and/or catalogue number: this is simply a matter of discarding the model number field as we don't need that for records/cd's.

Using: ADMIN/TOOLS/Developers Tool Kit, search for all references of model using the top search box (language file look ups). This will come up with all the files that you will need to edit, but don't worry it won't take as long as you think (about 30 minutes), all you need to do is open each of these files and change model to Year, Cat# or Year/Cat# if you plan to display both.

Thats it, done. (REMEMBER TO BACK UP ALL OF THESE FILES BEFORE YOU BEGIN EDITING)

Now to that listen to mp3 link. (See an example on my site www.bassics.co.uk).

This proved to be a little harder to figure out but it's actually quite easy.

Find this file: your site/includes/modules/product_listing.php

Find this on around line 122:

$lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'manufacturers_id=' . $_GET['manufacturers_id'] . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_g et_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;


AND DELETE THIS *zen_clean_html*

SO IT LOOKS LIKE THIS:

$lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'manufacturers_id=' . $_GET['manufacturers_id'] . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string((stripslashes(zen_get_products_de scription($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;

ALSO EDIT OUT THE SAME *zen_clean_html* ON THE NEXT LINE...


Thats it, Done. Now any links you put in your product description to listen to audio samples will appear on product listing page, beware though because all of your product description will appear here unless you place it first in the description and limit the characters allowed accordingly (ADMIN/CONFIGURATION/Product Listing/Display Product Description).

AS ALWAYS BACK UP THIS FILE BEFORE ATTEMPTING THIS!

Good Luck, Ian...

Last edited by Ian Davies (21-09-2006 12:03:22)