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

#   Product with custom fields - insertion in article

##

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 8 months ago -  10 years 8 months ago [\#229243](#229243) by [Roizman](/forum/user/40630-roizman "View Roizman's Profile")  *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#229243 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")* was created by *[Roizman](/forum/user/40630-roizman "View Roizman's Profile")*

-- Joomla version -- : 3.4
-- PHP version -- : 2.6.1

Hello,

I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press "choose options" button to go to the product page and I'd need to access this page directly.
I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).
[ ![product&#95;choose&#95;options.png](/forum/attachment/29408) ](/forum/attachment/29408 "...se&#95;options.png")

Thank you

- [ ![product&#95;choose&#95;options.png](/forum/attachment/29408) ](/forum/attachment/29408 "...se&#95;options.png") [ ](/forum/attachment/29408?download=1 "...se&#95;options.png")
- [ ![product&#95;choose&#95;options&#95;2.png](/forum/attachment/29409) ](/forum/attachment/29409 "...&#95;options&#95;2.png") [ ](/forum/attachment/29409?download=1 "...&#95;options&#95;2.png")

Last edit: 10 years 8 months ago by [Roizman](/forum/user/40630-roizman "View Roizman's Profile"). Reason: adding info

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODIxNzItcHJvZHVjdC13aXRoLWN1c3RvbS1maWVsZHMtaW5zZXJ0aW9uLWluLWFydGljbGU/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago [\#229245](#229245) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#229245 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

Hi,

Please make sure that the "Display custom item fields" setting of the HikaShop configuration is activated.

The following user(s) said Thank You: [Roizman](/forum/user/40630-roizman "View Roizman's Profile")

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 8 months ago -  10 years 8 months ago [\#229386](#229386) by [Roizman](/forum/user/40630-roizman "View Roizman's Profile")  Replied by *[Roizman](/forum/user/40630-roizman "View Roizman's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#229386 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

That really helped, thank you!
Could you also advice on how to show original uploaded image instead of thumbnail?
Now, a custom filed of Date type is also not working anymore. Some suggestion?
Thanks

Last edit: 10 years 8 months ago by [Roizman](/forum/user/40630-roizman "View Roizman's Profile"). Reason: more doubts

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODIxNzItcHJvZHVjdC13aXRoLWN1c3RvbS1maWVsZHMtaW5zZXJ0aW9uLWluLWFydGljbGU/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago -  10 years 8 months ago [\#229391](#229391) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#229391 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

Hi,

1. Change the line:
echo '&lt;img class="hikashop_product_tag_image" title="'.$this-&gt;escape(@$image-&gt;file_description).'" alt="'.$this-&gt;escape(@$image-&gt;file_name).'" src="'.$img-&gt;url.'"/&gt;';

to:
echo '&lt;img class="hikashop_product_tag_image" title="'.$this-&gt;escape(@$image-&gt;file_description).'" alt="'.$this-&gt;escape(@$image-&gt;file_name).'" src="'.$img-&gt;origin_url.'"/&gt;';
in the file plugins/system/hikashopproductinsert/hikashopproductinsert_view.php and remove the CSS width:200px; from it and that should do it.

2. Change it to the type "advanced date picker".

Last edit: 10 years 8 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 8 months ago [\#229517](#229517) by [Roizman](/forum/user/40630-roizman "View Roizman's Profile")  Replied by *[Roizman](/forum/user/40630-roizman "View Roizman's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#229517 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

The image issue is solved, Thanks!

Still, the custom field was already of the "Advanced Data Picker" type. In back end it seems ok but in front end the calendar doesn't appear. I've chosen as default day "today" and it appears. Please see print screen.
[ ![adv&#95;data&#95;picker.png](/forum/attachment/29444) ](/forum/attachment/29444 "...ata&#95;picker.png")

- [ ![adv&#95;data&#95;picker.png](/forum/attachment/29444) ](/forum/attachment/29444 "...ata&#95;picker.png") [ ](/forum/attachment/29444?download=1 "...ata&#95;picker.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#229695](#229695) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#229695 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

Hi,

I suppose that you should have some javascript issues in your page.
The "advanced **date** picker" is using jQuery and jQuery UI to work ; if you have javascript issues, the initialization of the date picker might not be done correctly.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 8 months ago [\#230028](#230028) by [Roizman](/forum/user/40630-roizman "View Roizman's Profile")  Replied by *[Roizman](/forum/user/40630-roizman "View Roizman's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#230028 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

Hi,
I installed Jquery easy to see if I can discover where the problem is but with no success. Do you have some suggestion?

Thanks

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 8 months ago [\#230188](#230188) by [Roizman](/forum/user/40630-roizman "View Roizman's Profile")  Replied by *[Roizman](/forum/user/40630-roizman "View Roizman's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#230188 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

I have changed template, disabled other plugins, used Jquery easy but still have the same problem... Advanced date picker not working, calendar icon not even appearing...
What can I do?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#230252](#230252) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#230252 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

Hi,

Can you please restore your template and provide us a link to the page ?
You only provide your domain name but we do not know the page with the issue.
Because we can't see the issue, we can't provide you any precise answer.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 8 months ago [\#230517](#230517) by [Roizman](/forum/user/40630-roizman "View Roizman's Profile")  Replied by *[Roizman](/forum/user/40630-roizman "View Roizman's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#230517 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

Please see page with mentioned problem:
[ bemvindoaisrael.com/index.php/servicos/8...-massada-e-mar-morto](http://bemvindoaisrael.com/index.php/servicos/8-tours-diarios/29-tour-massada-e-mar-morto)
Thanks,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODIxNzItcHJvZHVjdC13aXRoLWN1c3RvbS1maWVsZHMtaW5zZXJ0aW9uLWluLWFydGljbGU/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago [\#230532](#230532) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#230532 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

Hi,

Please try to add the code: Code:

foreach($doc-&gt;_custom as $custom) { if($custom_already){ $custom_already--; continue; } $custom = preg_replace('#&lt;script .*type="text/javascript" src=".*"&gt;&lt;/script&gt;#iU', '', $custom); $custom = preg_replace('#&lt;script .*type=[\'"]text/javascript[\'"]&gt;#iU', '&lt;script type="text/javascript"&gt;', $custom); $custom = str_replace( array('&lt;script type="text/javascript"&gt;', '&lt;/script&gt;'), array('&lt;script type="text/javascript"&gt;setTimeout(function(){', '},20);&lt;/script&gt;'), $custom); echo $custom; } foreach($doc-&gt;_script as $script) { if($script_already){ $script_already--; continue; } echo '&lt;script type="text/javascript"&gt;'."\r\n".$script."\r\n".'&lt;/script&gt;'; }

after the code: Code:

$add_to_cart = hikashop_getLayout('product','add_to_cart_listing',$params,$js); echo $add_to_cart;

in the file plugins/system/hikashopproductinsert/hikashopproductinsert_view.php and see if that helps.

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 8 months ago [\#230722](#230722) by [Roizman](/forum/user/40630-roizman "View Roizman's Profile")  Replied by *[Roizman](/forum/user/40630-roizman "View Roizman's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#230722 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

Unfortunatelly I don't see any change.

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 8 months ago [\#230899](#230899) by [Roizman](/forum/user/40630-roizman "View Roizman's Profile")  Replied by *[Roizman](/forum/user/40630-roizman "View Roizman's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#230899 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

Do you have another suggestion? Without the advanced date picker I don't really needed the business version...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODIxNzItcHJvZHVjdC13aXRoLWN1c3RvbS1maWVsZHMtaW5zZXJ0aW9uLWluLWFydGljbGU/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago [\#230900](#230900) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#230900 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

Hi,

Ok, let's try differently.

Change the code: Code:

$add_to_cart = hikashop_getLayout('product','add_to_cart_listing',$params,$js); echo $add_to_cart;

with the code: Code:

$scripts_already = count($doc-&gt;_scripts); $css_already = count($doc-&gt;_styleSheets); $add_to_cart = hikashop_getLayout('product','add_to_cart_listing',$params,$js); echo $add_to_cart; foreach($doc-&gt;_scripts as $script =&gt; $v) { if($scripts_already){ $scripts_already--; continue; } echo '&lt;script src="'.$script.'" type="text/javascript"&gt;&lt;/script&gt;'; } foreach($doc-&gt;_styleSheets as $css =&gt; $v) { if($css_already){ $css_already--; continue; } echo '&lt;style type="text/css"&gt;'."\r\n@import url(".$css.");\r\n".'&lt;/style&gt;'; } foreach($doc-&gt;_script as $script) { echo '&lt;script type="text/javascript"&gt;'."\r\n".$script."\r\n".'&lt;/script&gt;'; }

I've tried it on my end and it works.

The following user(s) said Thank You: [Roizman](/forum/user/40630-roizman "View Roizman's Profile")

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 8 months ago [\#230971](#230971) by [Roizman](/forum/user/40630-roizman "View Roizman's Profile")  Replied by *[Roizman](/forum/user/40630-roizman "View Roizman's Profile")* on topic *[Product with custom fields - insertion in article](/forum/30-integrations/882172-product-with-custom-fields-insertion-in-article#230971 "-- Joomla version -- : 3.4 -- PHP version -- : 2.6.1  Hello,  I have a product with custom fields that I would like to access directly through product insertion in article. When calling the article with insertion there is a need to press &quot;choose options&quot; button to go to the product page and I'd need to access this page directly. I've attached prints of the first page and second page (the second is the one that I'd like to appear in article).  Thank you")*

Yesssss!! It solved the problem! Thank you very much!

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

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

[](#top)
