- Posts: 16
- Thank you received: 0
Product listing module misbehaves on vendor pages
11 years 4 months ago #202512
by wenglos
Product listing module misbehaves on vendor pages was created by wenglos
-- HikaShop version -- : 2.4.0
-- HikaMarket version -- : 1.6.2
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.29
Hello,
on the page of vendor listing and vendor details, I want to show some list of products from category #32 in a module - the list should be independent on which vendor page is currently displayed (it's promo for all the shop).
On the vendor listing, this works nice, there are all the products from desired category shown - but on vendor page the list is empty. As I found this DB query being run, I've understood that the list is being reduced just to vendor's products of this category (and I don't use this feature, I want all vendors' products to be shown:
I found the option "Synchronize with currently displayed item when possible" turned on in module settings, so I thought that I just turn it off and the condition "b.product_vendor_id = 2" and all vendors' products will be shown.
But instead, I got the same result on both vendor listing and vendor page I get the same result - just one particular product in the list (all the time the same), which is not even in the requested category nor subcategory. I don't think that there is anything special in the settings of this product, it seems to me like it was picked randomly.
I didn't find the same query as before, but this one is the one that's closest to it (and also the first one operating with the product id :
Do you know where could be the problem, please? Maybe I've overlooked some kind of setting that causes it?
Thanks in advance.
-- HikaMarket version -- : 1.6.2
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.29
Hello,
on the page of vendor listing and vendor details, I want to show some list of products from category #32 in a module - the list should be independent on which vendor page is currently displayed (it's promo for all the shop).
On the vendor listing, this works nice, there are all the products from desired category shown - but on vendor page the list is empty. As I found this DB query being run, I've understood that the list is being reduced just to vendor's products of this category (and I don't use this feature, I want all vendors' products to be shown:
Code:
SELECT DISTINCT b.*
FROM ceztt_hikashop_product_category AS a
LEFT JOIN ceztt_hikashop_product AS b
ON a.product_id=b.product_id
LEFT JOIN ceztt_hikamarket_vendor AS hikam_vendor
ON b.product_vendor_id = hikam_vendor.vendor_id
WHERE b.product_published=1
AND b.product_type = 'main'
AND a.category_id IN (32)
AND (b.product_access = 'all' OR b.product_access LIKE '%,9,%')
AND (hikam_vendor.vendor_published IS NULL OR hikam_vendor.vendor_published = 1)
AND b.product_vendor_id = 2
ORDER BY RAND()
LIMIT 0, 5
But instead, I got the same result on both vendor listing and vendor page I get the same result - just one particular product in the list (all the time the same), which is not even in the requested category nor subcategory. I don't think that there is anything special in the settings of this product, it seems to me like it was picked randomly.
I didn't find the same query as before, but this one is the one that's closest to it (and also the first one operating with the product id :
Code:
SELECT DISTINCT b.*
FROM ceztt_hikashop_product AS b
LEFT JOIN ceztt_hikamarket_vendor AS hikam_vendor
ON b.product_vendor_id = hikam_vendor.vendor_id
WHERE b.product_published=1
AND b.product_id IN (942)
AND b.product_type = 'main'
AND (b.product_access = 'all' OR b.product_access LIKE '%,9,%')
AND (hikam_vendor.vendor_published IS NULL OR hikam_vendor.vendor_published = 1)
ORDER BY b.product_price_percentage DESC
LIMIT 0, 5
Do you know where could be the problem, please? Maybe I've overlooked some kind of setting that causes it?
Thanks in advance.
Please Log in or Create an account to join the conversation.
11 years 4 months ago #202514
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Product listing module misbehaves on vendor pages
Hi,
Can you please provide the screenshot of the module configuration ?
Regards,
Can you please provide the screenshot of the module configuration ?
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
11 years 4 months ago #202603
by wenglos
Replied by wenglos on topic Product listing module misbehaves on vendor pages
Hello,
you can find it attached
you can find it attached
Please Log in or Create an account to join the conversation.
11 years 4 months ago #202605
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Product listing module misbehaves on vendor pages
Hi,
Your module is configured as a "recently viewed" module.
Regards,
Your module is configured as a "recently viewed" module.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: wenglos
Please Log in or Create an account to join the conversation.
11 years 4 months ago #202748
by wenglos
Replied by wenglos on topic Product listing module misbehaves on vendor pages
Indeed, thank you!
BTW, if my customer ever decides to show different module on the vendor page and on vendor listing, is there any easy way how to do it?
BTW, if my customer ever decides to show different module on the vendor page and on vendor listing, is there any easy way how to do it?
Please Log in or Create an account to join the conversation.
11 years 4 months ago #202751
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Product listing module misbehaves on vendor pages
Hi,
I'm sorry but I don't understand your question.
Each module have his own configuration and can be display on Joomla menus or on specific HikaShop/HikaShop pages (product & vendor).
Regards,
I'm sorry but I don't understand your question.
Each module have his own configuration and can be display on Joomla menus or on specific HikaShop/HikaShop pages (product & vendor).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
11 years 4 months ago #202787
by wenglos
Replied by wenglos on topic Product listing module misbehaves on vendor pages
OK, then let me rephrase my question differently: is it possible to assign the "vendor page" and "vendor listing" to different menu items?Each module have his own configuration and can be display on Joomla menus
Please Log in or Create an account to join the conversation.
11 years 4 months ago #202822
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Product listing module misbehaves on vendor pages
Hi,
Yes it is.
Like it is possible to use a different menu for the product page and the product listing.
But for the moment the canonical url in HikaMarket is not fully completed and if you want to use a vendor listing menu instead of a vendor listing module (which have the setting "menu" to point to another Joomla menu) it will require a little view override in order to force the menu for the links on the vendor pages.
(We're working on improvements for that part)
Regards,
Yes it is.
Like it is possible to use a different menu for the product page and the product listing.
But for the moment the canonical url in HikaMarket is not fully completed and if you want to use a vendor listing menu instead of a vendor listing module (which have the setting "menu" to point to another Joomla menu) it will require a little view override in order to force the menu for the links on the vendor pages.
(We're working on improvements for that part)
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.199 seconds