VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: treodude on January 11, 2015, 15:58:27 PM

Title: SKU on category in VM3 broken (SOLVED)
Post by: treodude on January 11, 2015, 15:58:27 PM
Hi VM Forum,

Using Joomla 3.3.6 and VM 3.0.2.

I've been using http://forum.virtuemart.net/index.php?topic=97744.0 to display SKU on the category page, but now it only works partially...
If you go to for example https://www.edsclassic.com/index.php?option=com_virtuemart&view=category&virtuemart_category_id=224&Itemid=174
only some products show an SKU.

I have inserted the code in components/com_virtuemart/sublayouts/products.php around line 90, it looks like

<?php echo JText::_('COM_VIRTUEMART_CART_SKU') ?>: <?php // Product Sku
echo JHTML::link ( JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id ), $product->product_sku, array ('title' => $product->product_sku ) ); ?>

                              <p class="product_s_desc">
                  <?php // Product Short Description

Any idea how this works? There seems to be no relationship between products from before and after the update.

Kind regards,

Treodude

Title: Re: SKU on category in VM3 broken
Post by: GJC Web Design on January 11, 2015, 16:51:48 PM
your inside the
<?php if(!empty($rowsHeight[$row]['product_s_desc'])){
loop

put it after the h2 title -> line 89
Title: Re: SKU on category in VM3 broken
Post by: treodude on January 11, 2015, 17:01:15 PM
That did the trick, thanks man!

Now I only need to do some resizing, but that I can just about handle.