- Posts: 101
- Thank you received: 2
Does not save image
11 years 3 months ago #204243
by permsk
Does not save image was created by permsk
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
Does not save and does not add image in the characteristics
-- Joomla version -- : 3.4.1
Does not save and does not add image in the characteristics
Please Log in or Create an account to join the conversation.
11 years 3 months ago #204252
by nicolas
Replied by nicolas on topic Does not save image
Hi,
Thank you for your feedback. We've added a fix for that on our end. Please download again the install package on our website and install it on yours and that will fix the problem.
Thank you for your feedback. We've added a fix for that on our end. Please download again the install package on our website and install it on yours and that will fix the problem.
Please Log in or Create an account to join the conversation.
11 years 3 months ago - 11 years 3 months ago #204309
by permsk
Replied by permsk on topic Does not save image
Does not save brand
Last edit: 11 years 3 months ago by permsk.
Please Log in or Create an account to join the conversation.
11 years 3 months ago #204348
by Xavier
Replied by Xavier on topic Does not save image
Hi,
Please edit the file "administrator/components/com_hikashop/classes/product.php" and in the function "backSaveForm()" replace:
By:
Please edit the file "administrator/components/com_hikashop/classes/product.php" and in the function "backSaveForm()" replace:
Code:
if(!hikashop_acl('product/edit/manufacturer')) { unset($product->product_manufacturer_id); }
Code:
if(!hikashop_acl('product/edit/manufacturer')) { unset($product->product_manufacturer_id); }else{
if(!is_numeric($product->product_manufacturer_id)){
$this->db->setQuery('SELECT category_id FROM '.hikashop_table('category').' WHERE category_name = '.$this->db->quote($product->product_manufacturer_id));
$result = $this->db->loadResult();
$product->product_manufacturer_id = $result;
}
}
The following user(s) said Thank You: permsk
Please Log in or Create an account to join the conversation.
11 years 3 months ago - 11 years 3 months ago #205103
by permsk
Replied by permsk on topic Does not save image
Last edit: 11 years 3 months ago by permsk.
Please Log in or Create an account to join the conversation.
11 years 3 months ago #205140
by nicolas
Replied by nicolas on topic Does not save image
Hi,
1. Could you provide a link to the page so that we could look at the issue because we don't have it on our end ?
2. That's because the "image popup" you selected in the HikaShop configuration will count the images of each variants. you see 42 because you have 2 images times 21 variants. That's the way the shadowbox image system works. No much we can do in that case besides telling you to use the default image popup if that bothers you (it won't allow you to switch from one image to another and won't display any numbers).
1. Could you provide a link to the page so that we could look at the issue because we don't have it on our end ?
2. That's because the "image popup" you selected in the HikaShop configuration will count the images of each variants. you see 42 because you have 2 images times 21 variants. That's the way the shadowbox image system works. No much we can do in that case besides telling you to use the default image popup if that bothers you (it won't allow you to switch from one image to another and won't display any numbers).
Please Log in or Create an account to join the conversation.
11 years 3 months ago #205233
by permsk
Replied by permsk on topic Does not save image
Please Log in or Create an account to join the conversation.
11 years 3 months ago #205324
by permsk
Replied by permsk on topic Does not save image
Found a solution! In the file show_block_img.php on line 156
to change
window.localPage.images[id] = document.getElementById('hikashop_first_thumbnail<?php echo $variant_name;?>');
to
window.localPage.images[id] = document.getElementById('hikashop_first_thumbnail_<?php echo $variant_name;?>');
to change
window.localPage.images[id] = document.getElementById('hikashop_first_thumbnail<?php echo $variant_name;?>');
to
window.localPage.images[id] = document.getElementById('hikashop_first_thumbnail_<?php echo $variant_name;?>');
Please Log in or Create an account to join the conversation.
11 years 3 months ago #205338
by permsk
Replied by permsk on topic Does not save image
it's still crooked ,full of errors when browsing thumbnails in firebug
Please Log in or Create an account to join the conversation.
11 years 3 months ago #205347
by nicolas
Replied by nicolas on topic Does not save image
Hi,
That modification of the code is wrong and should not be done.
All it does on your page (for me when I look at it) is that when you click on an image, the popup starts loading and stops there. So it's even worst than before and I can't see the problem you had before.
That modification of the code is wrong and should not be done.
All it does on your page (for me when I look at it) is that when you click on an image, the popup starts loading and stops there. So it's even worst than before and I can't see the problem you had before.
Please Log in or Create an account to join the conversation.
Time to create page: 0.245 seconds