News:

Support the VirtueMart project and become a member

Main Menu

SKU on category in VM3 broken (SOLVED)

Started by treodude, January 11, 2015, 15:58:27 PM

Previous topic - Next topic

treodude

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


GJC Web Design

your inside the
<?php if(!empty($rowsHeight[$row]['product_s_desc'])){
loop

put it after the h2 title -> line 89
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

treodude

That did the trick, thanks man!

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