child images in slider

  • Posts: 92
  • Thank you received: 0
11 years 9 months ago #86181

hi,
I want you say to me if there is some option to show the child images in a slider when they are great instead of that they appear in two lines. I send you a screenshot of the page of one of my products, in order that you see what I want to change.
Thank you very much, like always, for your priceless help.

Attachments:

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

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

Hi,

Your thumbnail images are in a div which have a specific "id" and a specific "class".

<div id="hikashop_small_image_div" class="hikashop_small_image_div">
You can add some CSS rules in order to add a scrollbar and not display the content in two lines.
like
div#hikashop_small_image_div {
  overflow:auto;
}
You may need to specify an height in order to not display a vertical scrollbar.

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: 92
  • Thank you received: 0
11 years 9 months ago #86264

hi,
but if I do what you say (to specify an height in order to not display a vertical scrollbar), then a vertical scrollbar display in div and i'd like the small images display in just one line with a horizontal scrollbar (Or slightly similar).
Is it possible just with CSS or with a plugin?
thanks

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

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

Hi,

It's not possible only in CSS, it will certainly require some JavaScript.

The following user(s) said Thank You: pymgym

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

  • Posts: 92
  • Thank you received: 0
11 years 9 months ago #86377

Anyhow, thank you very much.
It finalizes doubt on the topic: if I change the first image into other one of another color, the tooltip of the first one continues appearing. It is a bug or I have done slightly badly?

Last edit: 11 years 9 months ago by pymgym.

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

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

Thanks for the report, it seems to be a bug. I have the same on my end.

Corrected on our end, it will be on the next release.

Last edit: 11 years 9 months ago by Xavier.

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

  • Posts: 92
  • Thank you received: 0
11 years 9 months ago #86568

hi,
This morning, fiddling with my shop, in all my products the following message goes out over the comments:

"Warning: Creating default object from empty value in /homepages/32/g472368468/htdocs/tienda1/components/com_hikashop/views/vote/view.html.php on line 155"


If the product has some comment also the following message goes out over the previous one:

"Warning: Creating default object from empty value in /homepages/32/g472368468/htdocs/tienda1/components/com_hikashop/views/vote/view.html.php on line 104"

please, how can I fix it?

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

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

Hi,

Could you give us the corresponding lines in your code ? (we don't have the same lines number)

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

  • Posts: 92
  • Thank you received: 0
11 years 9 months ago #86705

Hi Xavier,
line 104: "$elts[$i]->vote_comment = $hikashop_vote->vote_comment;"
line 155: "$pageInfo->elements->total = $total;"
Thanks

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

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

Do you have the latest version of HikaShop ?

Do you have "$elts[$i] = new stdClass();" at the line 103 ?

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

  • Posts: 92
  • Thank you received: 0
11 years 9 months ago #86771

yes, I have the last version 2.0.0


This is the complete code from line 99:

$limit = ' LIMIT '.(int)$pageInfo->limit->start.','.(int)$pageInfo->limit->value.'';
$db->setQuery('SELECT * '.$query.$order.$limit);
$scores = $db->loadObjectList();
$elts = array();
foreach ($scores as $hikashop_vote) {
$elts[$i]->vote_comment = $hikashop_vote->vote_comment;
$elts[$i]->vote_rating = $hikashop_vote->vote_rating;
$elts[$i]->vote_pseudo = $hikashop_vote->vote_pseudo;
$elts[$i]->username = $hikashop_vote->username;
$elts[$i]->vote_id = $hikashop_vote->vote_id;
$elts[$i]->vote_user_id = $hikashop_vote->vote_user_id;
$elts[$i]->vote_useful = $hikashop_vote->vote_useful;
$elts[$i]->total_vote_useful = 0; //know the total of useful vote for this post
$query= 'SELECT count(vote_user_id) FROM '.hikashop_table('vote_user').' WHERE vote_user_id = '.(int)$elts[$i]->vote_id.'';
$db->setQuery($query);
$elts[$i]->total_vote_useful = $db->loadResult();

$elts[$i]->already_vote = 0; //know if the user already vote for this post
if(empty($hikashop_vote_user_id))$hikashop_vote_user_id = hikashop_getIP();
$query= 'SELECT vote_user_useful FROM '.hikashop_table('vote_user').' WHERE vote_user_id = '.(int)$elts[$i]->vote_id.' AND vote_user_user_id = '.$db->quote($hikashop_vote_user_id).'';
$db->setQuery($query);
$elts[$i]->already_vote = $db->loadResult();

if (!empty ($hikashop_vote->vote_comment)) {
$purchased = '';
$query = 'SELECT order_id FROM '.hikashop_table('order').' WHERE order_user_id = '.$db->quote($hikashop_vote->vote_user_id).'';
$db->setQuery($query);
if(!HIKASHOP_J25){
$order_ids = $db->loadResultArray();
} else {
$order_ids = $db->loadColumn();
}
if(!empty($order_ids)){
$query = 'SELECT product_id FROM '.hikashop_table('product').' WHERE product_parent_id = '.(int)$hikashop_vote_product_id.'';
$db->setQuery($query);
if(!HIKASHOP_J25){
$product_ids = $db->loadResultArray();
} else {
$product_ids = $db->loadColumn();
}
if(empty($product_ids)){
$product_ids = array(0 => 0); //if the article has no variants
}
$query = 'SELECT order_product_id FROM '.hikashop_table('order_product').' WHERE order_id IN ('.implode(',',$order_ids).') AND product_id = '.(int)$hikashop_vote_product_id.' OR product_id IN ('.implode(',',$product_ids).')';
$db->setQuery($query);
$result = $db->loadResult();
if(!empty($result))
$purchased = 1;
}
$elts[$i]->purchased = $purchased;
}
if($elts[$i]->vote_useful >10){
$row->top_ranked = $elts[$i]->vote_id;
}
$i++;
}

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

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

You don't have the latest version, replace "$elts = array();" by "$elts[$i] = new stdClass();"

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

  • Posts: 92
  • Thank you received: 0
11 years 9 months ago #87004

Are you saying to me that I have just bought the business version and it is not the last one?

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

  • Posts: 2334
  • Thank you received: 403
11 years 9 months ago #87015

Hi there,

What xavier means is that we are always working on the version so this bug is fixed on our working project and will be released in the next package.
So You will enjoy it once we do the release. By the way, the component is sometime updated without version changing (when it's for fixing multiple annoying bugs).
So if you download your business version more than 1 month ago, you should try to redownload it.
Anyway, did the solution fixed your problem?

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

  • Posts: 92
  • Thank you received: 0
11 years 9 months ago #87088

yes, I replaced what you said and I have not returned to have problems.
Thanks

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

Time to create page: 0.088 seconds
Powered by Kunena Forum