Aw: Product code in Products->Latest (Menu Link)
I got this even further :)
One may want to see Product Code in Menu->Products->Label but not on Menu->Product->Last product (example). Here's the solution:
1. Edit \components\com_jshopping\metadata.xml and insert this code:
<params>
<param name="show_prod_code" type="radio" default="1" label="Show Product Code" description="Display product code next to product name">
<option value="0">No</option>
<option value="1">Yes</option>
</param>
</params>
between <products>... </products>, just unde the </url> tag.
2. Edit \components\com_jshopping\templates\default\products\listproducts.php
At line 39 insert this code between <div class="name">... </div> (overwrite existing line39):
<?php
$app = JFactory::getApplication();
$params = $app->getParams();
?>
<a href="<?php print $product->product_link?>"><?php print $product->name?></a><?php if ($params->get('show_prod_code')=='1') { ?> <span class="jshop_code_prod">(<?php print _JSHOP_EAN?>: <span id="product_code"><?php print $product->product_ean?></span>)</span><?php } ?>
Now if you get to Menu manager and try to edit a Joomshopping->Products menuitem, you'll see a new parameter (radio button) - Show Product Code - No / Yes.
Enjoy!
PS: Webdesigner, maybe you may consider to integrate this as standard in a future version
Joomla: 1.5.23
JoomShopping: 2.8.4
PHP: 5.3.3