Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: bledi on November 04, 2014, 19:15:42

Title: Mini shop plugin
Post by: bledi on November 04, 2014, 19:15:42
Hello!

I need to have a Third Option Set, that does not influence the product price. MINI SHOP plugin.
is it possible to create that easily?

Thanks in advance
Title: Re: Mini shop plugin
Post by: datahell on November 04, 2014, 21:20:23
The modification is not difficult but it is extensive.

You need to add the following additional columns in database table elx_minishop:
optionc_title, onamec1, onamec2, onamec3, onamec4, onamec5
For all columns: varchar(160) default NULL

You also need to add the following additional columns in database table elx_minishop_cart:
os3 int(10) unsigned NOT NULL default '0'

You also need to modify plugin code to add functionality for the extra options set. You can see how the second options set is handled and do the same for the third set.

For example:

Code: [Select]
if ($product->optionc_title != '') {
$found = false;
$options_txt = '';
for ($i=1; $i<6; $i++) {
$oname = 'onamec'.$i;
if ($product->$oname == '') { continue; }
...
}
...
}

Finally, you might need to also update the mini shop basket module.