Random Newly Added or Popular Products (Module?)

  • Posts: 66
  • Thank you received: 3
11 years 11 months ago #77814

Hi,

Would be great if you could develop a standard module which can be placed left, right or anywhere else showing the latest products, say added the last week or any other periode.
Or something the same for popular products.

What I mean is something like here: http://www.1968dewinkel.nl/producten

I used the content module with the caroussel effect.

But there are a few problems here:
1) content is rather messy, would be nice if only the images are scaled and cropped to a square (or other fixed dimensions). In this example a part of the product page, the white border is also shown but not needed really here. I assume that could be fixed in the product caroussel view but that will have effects on other caroussels as well.

2) the link to the product page is working but I have set up a breadcrumbs module above the product pages. In case of following the link from the caroussel the breacrumbs module is not loaded above the product page. From other links the breadcrumb module is always visible.


Attachments:
Last edit: 11 years 11 months ago by didero.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #77865

Hi,

For the first point the problem is maybe due to your template. On my end when I set this carousel there is no border, the images are centered.
You can certainly fix it by CSS, applying a property based on your module id. For example: .hikashop_module_123 .hikashop_product_image{ margin: auto;}

In your module setup, do you have attached a menu on this module ? If you select a menu on which the breadcrumbs is displayed, so it will be displayed after a redirection from this module.

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 3
11 years 11 months ago #77915

Xavier, thank you.

First point:
I have to look further into CSS styling. That module on the right has the special colors (rose-hue), even for the background.
But my guess is that the white space round the picture is coming from information extracted directly from the single product view since the background there is white?
If only the image could be displayed here?

Second point:
I indeed did not have assigned a menu(s) to this module (Nieuwe Artikelen Test). But when I assign all vertical menus from the webshop (Webshop Menu when you login) to that module the same problem occurs - no breadcrumbs module above the product page.

Not a big issue for now just some thoughts. I have more or less the same problem with the links from the cart on the right side. That's why I ruled out all the links to the product pages from there. Maybe it is the way Hikashop is calling the direct link to the individual product page?

Anyway when using the caroussel function how does Hikashop recognize that products are newly added?
Say for the last week or two weeks. I don't see any option for that.

Of course I could generate a new category for that and let the caroussel show the items from there but I don't see the owners of the shop who are filling the shop now with products do that.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #78090

Hi,

For the background, you can use this property:

#hikashop_category_information_module_129 div.hikashop_subcontainer{background: none !important;}
To put the picture in the center, the problem come from your template and the properties: ".div.dewinkel-block img", "div.dewinkel-block img" which have margin.

How do you configure your breadcrumbs module ? I suggest you to display it on all pages except some pages, by this way it should be displayed everytime.

For the newly added products, HikaShop select the products the most recently added. You can't set the period, you can just restrict the number of products displayed.
You could maybe edit the request which is selecting the products by adding a new where condition, for example where "product_created < $oneWeek". And $oneWeek = time() - (7 * 24 * 60 * 60);

Last edit: 11 years 11 months ago by Xavier.

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 3
11 years 11 months ago #78122

Xavier, thank you for your time.

I will have a look into CSS styles and coding but will be busy with another project the next few days.

The breadcrumbs module is displayed on all pages linked from the left menu.

Your suggestions works, it was originally set up as "Only on the pages selected". Didn't know that that makes such a difference :)
Now I know that this works need to set up an extra module with submenu above the products :(

Last edit: 11 years 11 months ago by didero.

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 3
11 years 11 months ago #78278

Hi,

I was a bit to early to be happy about your suggestion of displaying the breadcrumbs module on all pages except some pages.
Then indeed the breadcrumbs module is showing above the product page but the path there is not (always) correct.
The same happens when clicking the links from the products that are in the cart.

I checked your demo site and there happens the same with the breadcrumbs.
For example when I add the Desktop Tower from the product page to the cart the breadcrumbs show: Home > Category listing module > COMPUTING > computer > Desktop tower
When I click the link from the cart for the Desktop Tower the breadcrumbs show: Home > Category listing module > Desktop tower

Is this something that could be fixed?
Maybe the way product pages are called from within the PHP file?
I remember to have seen somewhere something like with 'hikashop_complete_link'.

In the same content: that also applies for the link to products from the shopping cart during checkout.

Last edit: 11 years 11 months ago by didero.

Please Log in or Create an account to join the conversation.

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #78357

Hi,

The breadcrumb works using the category/product listing configuration.
If you come from a product listing which would display "all subs elements". The breadcrumb would not be able to give you the complete path to the product because the breadcrumb display the path you follow to access to the page. So, it would just display you the previous listing name.

Using a category listing with a product listing attached as module is generally the recommend solution in order to have a nice breadcrumb.
But the product listing should be "direct sub elements" (with the link option for the current category) otherwise, the breadcrumb would be a little bit "empty".

About the product show from the cart, we don't know/have the menu id and the module id. Without theses, it is not possible to create the breadcrumb.
It could useful to have an option to specify the default menu and the default module for product show page. Like that, if the category-pathway is not specified, it would be possible to create the path using default menu/module.

For the moment, you can make some overrides in your store in order to add the category_pathway and the menuid for your links.
If you don't want to put your menu id and your module id as hard coded values, you can use the HikaShop configuration.

$config = hikashop_config();
$menu_id = $config->get('my_default_menu_id');
$module_id = $config->get('my_default_module_id');
And add the entries in your #__hikashop_config table.

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.

  • Posts: 66
  • Thank you received: 3
11 years 11 months ago #78380

Jerome,

Thank you.

I will check your suggestions later.
All links to product pages are indeed setup now as Type of listing > Product > DIV, with direct sub elements
And I now see why I had choosen for that.
When setting this to type Category a product listing module is created like this: Associated products listing for category listing menu 184
This shop already has quite a large number of menu's and products.
In that way all the generated product listings makes it even more complex to oversee :( ,but could add a note to each module.
But if that's one solution to overcome this "problem" besides your other suggestion I guess I have to try that.

Where do I apply the overides and Hikashop configuration (#__hikashop_config table) you're talking about?

Please Log in or Create an account to join the conversation.

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #78401

Hi,

The HikaShop configuration object contains all keys in the table #__hikashop_config.
So, you can create new configuration entries in the database.
Just creating a new row, with a config_namekey (my_default_menu_id) and a config_value (the menu id number) and this namekey would be accessible thanks to the config object.

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.

Time to create page: 0.094 seconds
Powered by Kunena Forum