A few questions

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

1. How to disable in User Control Panel "Partners box"?
2. Can i add next, prev to multi image on product page?
3. How to add "enter" between prize with VAT and prize with no VAT?
4. Can i add access level to prize? for eg: prize with VAT for public and register users and prize with no VAT for only register users.
5. Where i can add text after prize with no VAT. For prize with VAT i already changed text , eg: 100 zł cena netto, 123 zł cena brutto.

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

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

1. You can disable the Affiliate plugin of HikaShop via the joomla plugins manager.

2. Sure: www.hikashop.com/en/support/documentatio...ox-media-player.html

3. You can use a translation override to add a <br/> tag in the PRICE_BEFORE_TAX translation key:
www.hikashop.com/en/download/languages.html#modify

4. You can add access level restrictions to prices via the "access level" column of the prices listing of your products.
You can also add access level restrictions to tax rules when you edit them via the menu System>Taxes.

5. There is no translation key for that. You will have to directly edit the view file you need via the menu Display->Views and add your text at the correct place in it. I would need more information on which page you want to do that to tell you more precisely.

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 #112467

1. THX
2. Doesn't work. I downloaded plugin, activated, added file in /mytemplate/html and nothing...
3. THX
4. I still have a problem. Because each product has two prices (with access level). Higher price for public users and the lower price for register users. Register users are ok, they see the price with VAT and price with no VAT. In the case of Public users want to see them just price with VAT.
5. On product page.

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

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

2. It's working for everyone else. So it has to work for you too. Please double check the instructions.

4. I don't see the problem ? If you don't want public users to see the price without VAT, you can set an access level to the price without VAT so that it displays only for the registered users.

5. In that case, edit the file listing_price of the view product via the menu Display>Views and add the code:
if($price->price_value_with_tax==$price->price_value){
echo 'my text';
}

after the line:
$end = JText::_('PRICE_ENDING_'.$i);

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

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

2. Ok it work, but now characteristic doesnt work... It show pictures only from "main" colour... I disabled plugin, reinstalled show.php from my private backup and still nothing. ;/
5. Doesnt work:
speedy.sh/vhcNy/1.jpg

Last edit: 11 years 5 months ago by Soko?owski.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #112502

Hi,

It's actually working for me, did you done it through "Hikashop->Display->View" by editing the "listing_price" file of your "product" view of your front-end template that you're actually using ?

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

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

2. Shadowbox works. But another problem appeared. It doesnt show the photos attached to the characteristic. When I change the characteristics (color) shows all the time the same pictures, despite the fact that the back-end are set to other images. Of course, I reinstalled the shadowbox, I restored from backup show.php file, and still doesnt work.

4. I'm not sure if I understand you correctly. So I will show you how I do it.
First i set "registered access" here(23% VAT):
http://ifotos.pl/zobacz/4jpg_nnrawpp.jpg/
Secondly i set visible price for public users and registered users:
http://ifotos.pl/zobacz/5jpg_nnrawpa.jpg/
And it works. Registers users see lower price, public users higher price. But public users see price with VAT and no VAT.

5. Yes, Hikashop->Dispay->View. My template, listing_price, product. And still doesnt work
http://ifotos.pl/zobacz/6jpg_nnrawsn.jpg/

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

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #112602

Ok, can you send me a temporary access to your back-end for testing purpose ?

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

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

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

1. I looked at your product/show view file and I can see that you removed the display of the images of the variants:
matogrosso.pl/administrator/index.php?op...hop|product|show.php
(there is no call to the view file show_block_img like there is by default).
So that explains why you don't see the different images of the variants when you change the characteristic. It's not linked to shadowbox.

4. You shouldn't do it like that. You should set the access level restriction on the tax rules by editing them via the menu System>tax, and not to the tax categories.

5. Ok, I see what you want now.
You should not change the cod eof that file, but simply add a translation override like that:
PRICE_ENDING_0=" cena netto"

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 #113264

1. Characteristic works. Shadowbox works, but not quite right. When I click on the image in the main color, it doubles / triples the amount of these photos and show them a few times. If you choose not default color and click on the image, shadowbox not working.

4. Ok, i will try

5. THX

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

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

1. Can you try to use this hiakshop_image.php file instead ?
I've added some code to reinit the shadowbox system after the images are changed when changing the characteristic value selected.


File Attachment:

File Name: hikashop_i...7-11.zip
File Size:0 KB

Attachments:
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 #113445

1. Nice work! Now shadowbox works good, when i change color.

But it is small problem, eg:
In product "X" i have 4 colors and 12 picture(3 on every color). When i open first time gallery i see: "1 of 20". So shadowbox duplicate some picture. When i change color and i click on picture i see now "X of 24", next time "Y of 28".

(Ofc X,Y-random numbers)

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

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

Can you try with that version then:

File Attachment:

File Name: hikashop_i...7-12.zip
File Size:1 KB

Attachments:
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 #113649

Now it is much better. It doesnt add new photos all the time and now in color "X", i see only pictures "X"(rly good work!)

But still small problem:
If I have 3 pictures, I see now 8 pictures in the characteristic (4 copies of the first image, and the 2 copies of the rest of the pictures).

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

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

Hi,

Have you try to remove the code:

$this->setLayout('show_block_img');
echo $this->loadTemplate();
like explained in that documentation: www.hikashop.com/fr/support/documentatio...ox-media-player.html

PS: I'm not sure that it's the correct solution for this plugin.

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 #113992

Ok, ur solution work in 90%. Now duplicate only first picture :).

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

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

Yes, This solution isnt good for this plugin. I deleted this code and firstly duplicate only first picture, but characteristic didnt work.

So still i have a problem
"If I have 3 pictures, I see now 8 pictures in the characteristic (4 copies of the first image, and the 2 copies of the rest of the pictures). "

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

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

That's not what I see on your product page.
I see 1 image for each image displayed of the default variant.
Then, when you select another variant of the product, I get 2 images for each image of the variant.
That's actually normal since the image data is copied from a hidden location on the page and when the shadowbox javascript load the gallery, it sees both the copied images and the original images of the variants on the page.
The only solution would be to dynamically change the group of the images each time the characteristic is changed but that can't be done with the plugin.

It would require a hack of the file: administrator/components/com_hikashop/types/characteristic.php
and change the line:
if(el && el2) el.innerHTML=el2.innerHTML;

to:

if(el && el2) el.innerHTML=el2.innerHTML.replace(/rel="shadowbox[/gi,'rel="shadowbox[copy_');
so that the variant images copy don't get in the same group as the originals

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

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

I tried your solution. If I change the lines in the file that you have provided, the products not displayed(blank, white page)

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

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

Hi,

The quoted characters are not escaped.
The escaped string (that you can copy/past) is:

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

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.111 seconds
Powered by Kunena Forum