- Posts: 35
- Thank you received: 0
A few questions
- Soko?owski
-
Topic Author
- Offline
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.
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.
Please Log in or Create an account to join the conversation.
- Soko?owski
-
Topic Author
- Offline
- Posts: 35
- Thank you received: 0
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.
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.
- Soko?owski
-
Topic Author
- Offline
- Posts: 35
- Thank you received: 0
5. Doesnt work:
speedy.sh/vhcNy/1.jpg
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
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.
- Soko?owski
-
Topic Author
- Offline
- Posts: 35
- Thank you received: 0
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
Please Log in or Create an account to join the conversation.
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"
Please Log in or Create an account to join the conversation.
- Soko?owski
-
Topic Author
- Offline
- Posts: 35
- Thank you received: 0
4. Ok, i will try
5. THX
Please Log in or Create an account to join the conversation.
I've added some code to reinit the shadowbox system after the images are changed when changing the characteristic value selected.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
- Soko?owski
-
Topic Author
- Offline
- Posts: 35
- Thank you received: 0
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.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
- Soko?owski
-
Topic Author
- Offline
- Posts: 35
- Thank you received: 0
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.
Have you try to remove the code:
PS: I'm not sure that it's the correct solution for this plugin.
Please Log in or Create an account to join the conversation.
- Soko?owski
-
Topic Author
- Offline
- Posts: 35
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Soko?owski
-
Topic Author
- Offline
- Posts: 35
- Thank you received: 0
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.
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:
Please Log in or Create an account to join the conversation.
- Soko?owski
-
Topic Author
- Offline
- Posts: 35
- Thank you received: 0
Please Log in or Create an account to join the conversation.
The quoted characters are not escaped.
The escaped string (that you can copy/past) is:
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.