Page 1 of 1

Product definition - external web link

Posted: Sun Dec 11, 2022 5:22 am
by jozef.szabo@email.cz
How can be parametrized a button to link to external folder like mega.nz for each product separatelly.

I have a solution for twig file but common for all product.
In file \opencart/catalog/view/theme/default/template/product/product.twig

Search for button for "addthis_button_facebook_like" and insert following code before/after
</button> <a href='https://mega.nz/folder/.........'><button><b>Product files</b> </button></a>

Maybe a category common solution would be fine.

Re: Product definition - external web link

Posted: Sun Dec 11, 2022 7:57 am
by straightlight
jozef.szabo@email.cz wrote:
Sun Dec 11, 2022 5:22 am
How can be parametrized a button to link to external folder like mega.nz for each product separatelly.

I have a solution for twig file but common for all product.
In file \opencart/catalog/view/theme/default/template/product/product.twig

Search for button for "addthis_button_facebook_like" and insert following code before/after
</button> <a href='https://mega.nz/folder/.........'><button><b>Product files</b> </button></a>

Maybe a category common solution would be fine.
OC version. You may need an extension to accomplish this by using Event Triggers. Furthermore, I never thought that parametrized was a known term and not even until now; parameterized .

Re: Product definition - external web link

Posted: Sun Dec 11, 2022 10:30 pm
by jozef.szabo@email.cz
Thank's.
- version OC 3.0.8
- Sorry my english is bad. Parametrized means to set it in admin or modifying the product options, twig files, theme...