Plugin in short description

26.05.2014 21:46
#1
ankan11
Joomshopping forum user no avatar
Name: Kalle Anka
24.01.2012
Posts: 7
Quote
Plugin in short description

Hi

I am in great need to have plugins in the short description.
How can I do that?

Thx

 
28.05.2014 05:26
#2
ankan11
Joomshopping forum user no avatar
Name: Kalle Anka
24.01.2012
Posts: 7
Quote
Aw: Plugin in short description

Anyone?

 
28.05.2014 07:53
#3
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25856
Quote
Aw: Plugin in short description

See controller\product.php
...
if ($jshopConfig->use_plugin_content){
changeDataUsePluginContent($product, "product");
}

see lib\function.php

function changeDataUsePluginContent(&$data, $type){
$mainframe =JFactory::getApplication();
$dispatcher =JDispatcher::getInstance();
JPluginHelper::importPlugin('content');
$obj = new stdClass();
$params = $mainframe->getParams('com_content');

if ($type=="product"){
$obj->product_id = $data->product_id;
}
if ($type=="category"){
$obj->category_id = $data->category_id;
}
if ($type=="manufacturer"){
$obj->manufacturer_id = $data->manufacturer_id;
}

$obj->text = $data->description;
$obj->title = $data->name;
$results = $dispatcher->trigger('onContentPrepare', array('com_content.article', &$obj, &$params, 0));
$data->description = $obj->text;
return 1;
}

 
28.05.2014 13:18
#4
ankan11
Joomshopping forum user no avatar
Name: Kalle Anka
24.01.2012
Posts: 7
Quote
Aw: Plugin in short description

Thank you so much for the reply!
I am new to php programming and do not have as large track of object programming.
What and where should I change?

 
28.05.2014 21:43
#5
ankan11
Joomshopping forum user no avatar
Name: Kalle Anka
24.01.2012
Posts: 7
Quote
Aw: Plugin in short description

I solved it on the product page, I think.
Can I get the plugin on the start page of the website (Latest Products) and also in the list of products in the category as well?

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.