joomshopping carousel

23.02.2019 01:12
#1
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
joomshopping carousel

after installation I and trying to test page I receive message:

Error: Too few arguments to function plgjshoppingproductssortingorderby::onBeforeDisplayProductListView(), 1 passed in .../docs/libraries/joomla/event/event.php on line 70 and exactly 2 expected: Too few arguments to function plgjshoppingproductssortingorderby::onBeforeDisplayProductListView(), 1 passed in .../docs/libraries/joomla/event/event.php on line 70 and exactly 2 expected

if there is any docs about this module i'll be glad to see it.
i try to use module in random mode.


Joomla: Joomla! 3.9.3 Stable
JoomShopping: Version 4.18.2
PHP: 7.1.21
MySQL: 5.6.25-73.1
Website Url: https://exptuneup.ru/
 
23.02.2019 08:15
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: joomshopping carousel

problem in Product sorting style

Product sorting style version?

 
23.02.2019 09:57
#3
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

just installed ver. 1.0.3 from here https://www.webdesigner-profi.de/joomla-webdesign/shop/addons/product-sorting-style.html
problem yet persist

 
23.02.2019 15:07
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: joomshopping carousel

Work for my test shop.

Your use old version.

install new (try reinstall)

 
23.02.2019 15:18
#5
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

look... I've reinstalled plugin, module. same situation.

https://exptuneup.ru/international.html

 
23.02.2019 15:23
#6
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

which patameters must be defined?
picture - print screen from module config
Aw: joomshopping carousel

 
23.02.2019 15:40
#7
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

i found that sorting params in module differs from sorting parameters in plugin, may be that a reason?
in module we must define 2 parameters: sorting parameter and direction, in plugin we have one vector param with direction.
looks like possible place for mistake?

 
23.02.2019 17:22
#8
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: joomshopping carousel

install new version
Product Carousel 1.0.2

 
23.02.2019 20:58
#9
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

) thank you! )

but there is another question )))
from where it take picture? )
resized tumbinal? ) there is a possibility to correct this?

 
23.02.2019 21:10
#10
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: joomshopping carousel

screenshot?
url?

 
23.02.2019 21:17
#11
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

https://exptuneup.ru/international.html

 
23.02.2019 21:51
#12
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

and one more question to functionality

for example - now i refreshed up to 3 times and list of products was the same.

how I understand if forms one list of random products from category after initialization
but better will be generate new list after renew webpage. (or make update random goods in real time)
it can be parameter for module configuration.

 
23.02.2019 23:57
#13
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: joomshopping carousel

nikishurik - 23.02.2019 20:58
) thank you! )

but there is another question )))
from where it take picture? )
resized tumbinal? ) there is a possibility to correct this?


Product Carousel 1.0.3

 
24.02.2019 00:14
#14
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

Great! Thank you very much!


Last change: 24.02.2019 00:14
 
24.02.2019 00:28
#15
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

I have one more idea for this module functionality:

We have reception in office and there is a free monitor, great feature can be generate special link in admin panel to display this module on this monitor in full screen mode.
that can be used how interactive showcase.

I understand that it is more than was defined in module functionality but it can be great feature. ;)

 
24.02.2019 19:47
#16
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

about fuctionality:

1. which purpose of parameter "products in row" in module configuration?
2. and about randomize mode - it can be more random? - it is strange but I too offten see same products.


Last change: 24.02.2019 19:48
 
24.02.2019 22:08
#17
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: joomshopping carousel

1. no works for this module (copy from another module)
2. core joomshopping

 
25.02.2019 07:35
#18
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

about randomize...

please check it becouse there is another @random module and its works.
every time I see on it new complect.
but in carousel it works not so good.

 
02.03.2019 09:33
#19
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: joomshopping carousel

1. install
Product Carousel 1.0.4

2. updated in new version Joomshopping (4.18.3)

For update.

components\com_jshopping\tables\product.php

change function getRandProducts

TO

function getRandProducts($count, $array_categories = null, $filters = array(), $realRand = 0){
$jshopConfig = JSFactory::getConfig();
$db = JFactory::getDBO();

$adv_query = ""; $adv_from = ""; $adv_result = $this->getBuildQueryListProductDefaultResult();
$this->getBuildQueryListProductSimpleList("rand", $array_categories, $filters, $adv_query, $adv_from, $adv_result);

$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('onBeforeQueryGetProductList', array("rand_products", &$adv_result, &$adv_from, &$adv_query, &$order_query, &$filters));

if ($realRand == 0) {
$query = "SELECT count(distinct prod.product_id) FROM `#__jshopping_products` AS prod
INNER JOIN `#__jshopping_products_to_categories` AS pr_cat ON pr_cat.product_id = prod.product_id
LEFT JOIN `#__jshopping_categories` AS cat ON pr_cat.category_id = cat.category_id
$adv_from
WHERE prod.product_publish=1 AND cat.category_publish=1 ".$adv_query;
$db->setQuery($query);
$totalrow = $db->loadResult();
$totalrow = $totalrow - $count;
if ($totalrow < 0) $totalrow = 0;
$limitstart = rand(0, $totalrow);

$order = array();
$order[] = "name asc";
$order[] = "name desc";
$order[] = "prod.product_price asc";
$order[] = "prod.product_price desc";
$orderby = $order[rand(0,3)];
} else {
$limitstart = 0;
$orderby = 'rand()';
}

$query = "SELECT $adv_result FROM `#__jshopping_products` AS prod
INNER JOIN `#__jshopping_products_to_categories` AS pr_cat ON pr_cat.product_id = prod.product_id
LEFT JOIN `#__jshopping_categories` AS cat ON pr_cat.category_id = cat.category_id
$adv_from
WHERE prod.product_publish=1 AND cat.category_publish=1 ".$adv_query."
GROUP BY prod.product_id order by ".$orderby."
LIMIT ".$limitstart.", ".$count;
$db->setQuery($query);
$products = $db->loadObjectList();
$products = listProductUpdateData($products, 1);
return $products;
}

 
02.03.2019 23:31
#20
nikishurik
Joomshopping forum user no avatar
Name: Alexander
21.02.2019
Posts: 14
Quote
Aw: joomshopping carousel

Now it's Random! )
Thank you for It!

 


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.