A few questions

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #114478

If i change this line, then images work fine, but characteristic dont...

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

  • Posts: 83025
  • Thank you received: 13404
  • MODERATOR
11 years 5 months ago #114727

Do you get a javascript error ? Can you look in your browser javascript log console ?

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

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #114814

I'm not sure if I'm looking in the right place. I'm using firebug and the "script". I dont see any errors. I tested with the changed code in characteristic.php and with default code.

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

  • Posts: 83025
  • Thank you received: 13404
  • MODERATOR
11 years 5 months ago #115139

I checked your website but I couldn't see the change so I couldn't see if there was a problem and what kind of problem it could be.
Can you try like that please:

if(el && el2) el.innerHTML=el2.innerHTML.replace(\'rel="shadowbox[\',\'rel="shadowbox[copy_\');

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

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #115144

I added ur code.
Characteristics work, but now duplicate picture.

Now I left your code, so you can check it.

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

  • Posts: 83025
  • Thank you received: 13404
  • MODERATOR
11 years 5 months ago #115172

Ok, that's great !

Let's try with that then:

if(el && el2) el.innerHTML=el2.innerHTML.replace(new Regex(\'rel="shadowbox\[\', g),\'rel="shadowbox[copy_\');

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

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #115177

Now characteristics dont work. And duplicate first picture.

I left your code, so you can check it.

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

  • Posts: 83025
  • Thank you received: 13404
  • MODERATOR
11 years 5 months ago #115179

Try like that:

if(el && el2) el.innerHTML=el2.innerHTML.replace(new Regexp(\'rel="shadowbox\[\', 'g'),\'rel="shadowbox[copy_\');

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

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #115182

Now product page doesnt display


I left your code, so you can check it.

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

  • Posts: 83025
  • Thank you received: 13404
  • MODERATOR
11 years 5 months ago #115234

I forgot escaping the quotes.
Try like that:\

if(el && el2) el.innerHTML=el2.innerHTML.replace(new Regexp(\'rel="shadowbox\[\', \'g\'),\'rel="shadowbox[copy_\');

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

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #115240

Characteristics dont work. Now duplicate only first picture.

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

  • Posts: 83025
  • Thank you received: 13404
  • MODERATOR
11 years 5 months ago #115265

Try like that:

if(el && el2) el.innerHTML=el2.innerHTML.replace(new RegExp(\'rel="shadowbox\[\', \'g\'),\'rel="shadowbox[copy_\');
Apparently, the case is important.

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

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #115309

Characteristics dont work. Now duplicate only first picture.

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

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
11 years 5 months ago #115319

Hi,

What does "Characteristics dont work" mean ?

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: 35
  • Thank you received: 0
11 years 5 months ago #115335

If i change color of product,pictures dont change(i still see default pictures).

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

  • Posts: 83025
  • Thank you received: 13404
  • MODERATOR
11 years 5 months ago #115381

The

[
character is causing some issues now.
do it like that and that will avoid the issue with it:
if(el && el2) el.innerHTML=el2.innerHTML.replace(new RegExp(\'rel="shadowbox.\', \'g\'),\'rel="shadowbox[copy_\');

The following user(s) said Thank You: Soko?owski

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

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #115403

Your solution is great! The characteristics of work, only duplicates the first image(is it possible to correct it?).


I'm very grateful for the help.

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

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #115434

hmm,
Firstly pictures dont duplicate, if i wait few minutes with open web browser and click on picture then pictures duplicate.

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

  • Posts: 83025
  • Thank you received: 13404
  • MODERATOR
11 years 5 months ago #115531

Hi,

It's not possible to change the duplication for the first image. It will require to rewrite the whole image display handling.
It's on the todo list, but it's a lot of work.

I couldn't get any other picture duplication on your page.

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

Time to create page: 0.093 seconds
Powered by Kunena Forum