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

#   how to pass the variant name and image in a modal window

##

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

Less More

- Posts: 77
- Thank you received: 1
-
-

9 years 10 months ago [\#258392](#258392) by [Denys](/forum/user/38002-denys "View Denys's Profile")  *[how to pass the variant name and image in a modal window](/forum/4-how-to/888074-how-to-pass-the-variant-name-and-image-in-a-modal-window#258392 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6  Hello! how can i pass name and picture in modal window? Main name pass with no problem, but when i try to pass variant name main product nothing happens. I see only main product name:dry: :dry: :dry:  if(!empty($variant-&gt;product&#95;name)){ ?&gt;  product&#95;name;?&gt;  php }")* was created by *[Denys](/forum/user/38002-denys "View Denys's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6

Hello!
how can i pass name and picture in modal window? Main name pass with no problem, but when i try to pass variant name main product nothing happens. I see only main product name:dry: :dry: :dry:

if(!empty($variant-&gt;product_name)){ ?&gt;
&lt;div id="hikashop_product_name_&lt;?php echo $variant_name;?&gt;" &gt;
&lt;?php echo $variant-&gt;product_name;?&gt;
&lt;/div&gt;
&lt;?php }

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

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

Less More

- Posts: 77
- Thank you received: 1
-
-

9 years 10 months ago [\#258396](#258396) by [Denys](/forum/user/38002-denys "View Denys's Profile")  Replied by *[Denys](/forum/user/38002-denys "View Denys's Profile")* on topic *[how to pass the variant name and image in a modal window](/forum/4-how-to/888074-how-to-pass-the-variant-name-and-image-in-a-modal-window#258396 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6  Hello! how can i pass name and picture in modal window? Main name pass with no problem, but when i try to pass variant name main product nothing happens. I see only main product name:dry: :dry: :dry:  if(!empty($variant-&gt;product&#95;name)){ ?&gt;  product&#95;name;?&gt;  php }")*

False alarm ![=)](/smile.gif "=)"))))i to do this on ajax ![=)](/smile.gif "=)")))))):woohoo: :woohoo: :woohoo: :woohoo:

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4ODA3NC1ob3ctdG8tcGFzcy10aGUtdmFyaWFudC1uYW1lLWFuZC1pbWFnZS1pbi1hLW1vZGFsLXdpbmRvdz90bXBsPW1hcmtkb3du) 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.040 seconds

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