[Skip to main content](#vessel-content)

#   Custom field value - characteristics

##

- **[sorky](/forum/user/17958-sorky "View sorky's Profile")**
- [![sorky's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17958-sorky "View sorky's Profile") Topic Author
- [ Offline](/forum/user/17958-sorky)

Less More

- Posts: 19
- Thank you received: 0
-
-

11 years 7 months ago [\#195450](#195450) by [sorky](/forum/user/17958-sorky "View sorky's Profile")  *[Custom field value - characteristics](/forum/26-product-category-display/875803-custom-field-value-characteristics#195450 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello,  I am using deposit plugin and I am displaying some text with deposit value on product layout.  Here is my code:  But it is does not work when I change product characteristic. There is still value from previous product not from the chosen characteristic.  Second issue is that I am using Hika Shop POP UP window whith code:  How can I set up width and height of POP UP window without overriding general CSS file?  Thank you in advance,  Sorky")* was created by *[sorky](/forum/user/17958-sorky "View sorky's Profile")*

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.6

Hello,

I am using deposit plugin and I am displaying some text with deposit value on product layout.

Here is my code:
Code:

&lt;?php if($this-&gt;element-&gt;deposit) echo ''.number_format((float)$this-&gt;element-&gt;deposit, 0, '.', '').'%'; ?&gt;

But it is does not work when I change product characteristic. There is still value from previous product not from the chosen characteristic.

Second issue is that I am using Hika Shop POP UP window whith code:
Code:

&lt;a onclick="return window.hikashop.openBox(this,null,false);" href="/component/content/article?id=8&amp;tmpl=component"&gt;

How can I set up width and height of POP UP window without overriding general CSS file?

Thank you in advance,

Sorky

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4MDMtY3VzdG9tLWZpZWxkLXZhbHVlLWNoYXJhY3RlcmlzdGljcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

11 years 7 months ago [\#195464](#195464) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom field value - characteristics](/forum/26-product-category-display/875803-custom-field-value-characteristics#195464 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello,  I am using deposit plugin and I am displaying some text with deposit value on product layout.  Here is my code:  But it is does not work when I change product characteristic. There is still value from previous product not from the chosen characteristic.  Second issue is that I am using Hika Shop POP UP window whith code:  How can I set up width and height of POP UP window without overriding general CSS file?  Thank you in advance,  Sorky")*

Hi,

1. You should put that code in one of the "_main" divs of the show_default (or show_tabular) layouts. For example in the DIV: Code:

&lt;div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main"&gt;

And then you need to also add such code: Code:

&lt;?php if($this-&gt;element-&gt;deposit) echo ''.number_format((float)$this-&gt;row-&gt;deposit, 0, '.', '').'%'; ?&gt;

in the "show" file of the "product" view in the variant DIV: Code:

&lt;div id="hikashop_product_quantity_&lt;?php echo $variant_name;?&gt;" style="display:none;"&gt;&lt;?php

That way, when the system switch the data from the variant DIV to the main DIV, it will also include the deposit value.

2. You should instead use such code: Code:

$popupHelper = hikashop_get('helper.popup'); echo $popupHelper-&gt;display( 'JAK VYBRAT SPRÁVNĚ VELIKOST?', 'JAK VYBRAT SPRÁVNĚ VELIKOST?', '/component/content/article?id=8&amp;tmpl=component', 'your_custom_popup_internal_name', 750, 460, '', '', 'link' );

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4MDMtY3VzdG9tLWZpZWxkLXZhbHVlLWNoYXJhY3RlcmlzdGljcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.103 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
