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 .jozef.szabo@email.cz wrote: ↑Sun Dec 11, 2022 5:22 amHow 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.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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...
- 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...
Attachments
CustomButtons.JPG (48.62 KiB) Viewed 601 times
Who is online
Users browsing this forum: Chulain and 6 guests