Web Design Glasgow

Web Design: Stylish, Flexible & Bespoke

Web Hosting Glasgow

Web Hosting: Carbon Neutral, Fast & Reliable

IT Support Glasgow

IT Support: Quality Advice, support & Delivery

Print
PDF

Virtuemart : Tabs and Slides

User Rating: / 4
PoorBest 

Create backup of the edited files

Open File: administrator/components/com_virtuemart/html/shop.product_details.php


Line 445

From:

echo $tpl->fetch( '/product_details/'.$flypage . '.php' );

To:

//echo $tpl->fetch( '/product_details/'.$flypage . '.php' );


/*Custom code to allow plugins in yout product detail template*/
$template = $tpl->fetch( '/product_details/'.$flypage . '.php' );
$template = vmCommonHTML::ParseContentByPlugins( $template );
echo $template;
/*end custom code*/


Enable tabs&slides plugin from Plugin Manager


On your VM Control Panel > Configuration > Frontend features

Enable content mambots / plugins in descriptions? Yes

(Not sure if this step is necessary)


Open your flypage and insert directly your code...

e.g.


{tab=Description}
php echo $product_description 
{tab=Related Products}
php echo $related_products 
{tab=Recent Products}
php if( !empty( $recent_products )) { 
php echo $recent_products; 
php } 
{/tabs}
 


Remember  your PHP Tags

//RECENT WORK

RedbagUK New Website

RedbagUK

Discover the latest men's clothing and accessories online with RedBagUK.

Learn More
Oasis Skincare Centre

Oasis Skincare

Oasis provides Dermalogica Products to the UK

Learn More
spotlight

Allan Nisbet

Director | Glasgow, UK

Storm Tweet

Fraser IT Engineer

Fraser

IT Engineer | Glasgow, UK

Storm Tweet