Shadowbox Media Viewer a duplicate images!
12 years 10 months ago #132326
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Shadowbox Media Viewer a duplicate images!
Hi,
So, once again, you still have a plugin which made the override.
Well, it is ugly but I guess it will be the only solution, you will have to edit the view in order to bypass the plugin which create the override...
In the view "product | show_block_img" you will find this code:
In this block, just replace
By:
And it won't use anymore the override of the plugin but the original content of the view.
Regards,
So, once again, you still have a plugin which made the override.
Well, it is ugly but I guess it will be the only solution, you will have to edit the view in order to bypass the plugin which create the override...
In the view "product | show_block_img" you will find this code:
Code:
<?php
if($this->image->override) {
echo $this->image->display(@$image->file_path,true,@$image->file_name,'id="hikashop_main_image'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"', $width, $height);
} else {
if(empty($this->popup))
$this->popup = hikashop_get('helper.popup');
$image_options = array('default' => true);
$img = $this->image->getThumbnail(@$image->file_path, array('width' => $width, 'height' => $height), $image_options);
if($img->success) {
$attr = '';
if (!empty ($this->element->images) && count($this->element->images) > 1) {
$attr = 'onclick="return window.localPage.openImage(\'hikashop_main_image\');"';
}
$html = '<img id="hikashop_main_image'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" title="" src="'.$img->url.'"/>';
echo $this->popup->image($html, $img->origin_url, null, $attr);
}
}
if(!empty($this->element->badges))
$this->classbadge->placeBadges($this->image, $this->element->badges, '0', '0');
?>
Code:
if($this->image->override) {
Code:
if(false) {
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
12 years 10 months ago #132398
by neviqimka
Replied by neviqimka on topic Shadowbox Media Viewer a duplicate images!
Yes, it's working now, but I must replace code on 2 places:
and
Please tell me where there was a problem, with HikaShop, with Shadowbox Media Viewer or with Gavickpro template? I realy dont understand...
Code:
<div class="hikashop_product_main_image_thumb" id="hikashop_image_main_thumb_div<?php echo $variant_name;?>" <?php echo $style;?> >
<div style="<?php if(!empty($divHeight)){ echo 'height:'.($divHeight+20).'px;'; } ?>text-align:center;clear:both;" class="hikashop_product_main_image">
<div style="position:relative;text-align:center;clear:both;<?php if(!empty($divWidth)){ echo 'width:'.$divWidth.'px;'; } ?>margin: auto;" class="hikashop_product_main_image_subdiv">
<?php
if(false) {
echo $this->image->display(@$image->file_path,true,@$image->file_name,'id="hikashop_main_image'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"', $width, $height);
}
Code:
if (!empty ($this->element->images) && count($this->element->images) > 1) {
$firstThunb = true;
foreach ($this->element->images as $image) {
if(false) {
echo $this->image->display($image->file_path, 'hikashop_main_image'.$variant_name, $image->file_name, 'class="hikashop_child_image"','', $width, $height);
}
Please tell me where there was a problem, with HikaShop, with Shadowbox Media Viewer or with Gavickpro template? I realy dont understand...
Please Log in or Create an account to join the conversation.
12 years 10 months ago #132450
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Shadowbox Media Viewer a duplicate images!
Hi,
You still have the plugin for HikaShop-Shadowbox, unless I asked you several time to remove/unpublish it.
Regards,
The problem does not have changed since the last time. You have a HikaShop plugin which create the override for the images.So, once again, you still have a plugin which made the override.
You still have the plugin for HikaShop-Shadowbox, unless I asked you several time to remove/unpublish it.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
12 years 10 months ago #132487
by neviqimka
Replied by neviqimka on topic Shadowbox Media Viewer a duplicate images!
Ok, but where is this plugin witch I want to disable? I have only plg_shadowbox_40 (Shadowbox Media Viewer) and some HikaShop plugins, but I don't see nothing like on HikaShop-Shadowbox.You still have the plugin for HikaShop-Shadowbox, unless I asked you several time to remove/unpublish it.
Please Log in or Create an account to join the conversation.
12 years 10 months ago #132519
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Shadowbox Media Viewer a duplicate images!
Hi,
You have installed template overrides :
www.hikashop.com/support/documentation/6...tation.html#override
Using the file coming from there:
www.hikashop.com/support/documentation/1...ox-media-player.html
And you have to remove these override files.
Clear enough ?
You have installed template overrides :
www.hikashop.com/support/documentation/6...tation.html#override
Using the file coming from there:
www.hikashop.com/support/documentation/1...ox-media-player.html
And you have to remove these override files.
Clear enough ?
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
12 years 10 months ago #132548
by neviqimka
Replied by neviqimka on topic Shadowbox Media Viewer a duplicate images!
If I have characteristics on product page I need override HikaShop file, if I don't use characteristics I don't need intalled override. Do I understand correctly?
Please Log in or Create an account to join the conversation.
12 years 10 months ago #132592
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Shadowbox Media Viewer a duplicate images!
No you don't understand correctly.
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
12 years 10 months ago #132619
by neviqimka

Thank you in general, the problem was solved
Replied by neviqimka on topic Shadowbox Media Viewer a duplicate images!
Jerome wrote: No you don't understand correctly.
Thank you in general, the problem was solved
Please Log in or Create an account to join the conversation.
Time to create page: 0.221 seconds