Post by jozef.szabo@email.cz » 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.


Posts

Joined
Fri Dec 09, 2022 8:29 pm

Post by straightlight » Sun Dec 11, 2022 7:57 am

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 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by jozef.szabo@email.cz » Sun Dec 11, 2022 10:30 pm

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...

Attachments

CustomButtons.JPG

CustomButtons.JPG (48.62 KiB) Viewed 601 times



Posts

Joined
Fri Dec 09, 2022 8:29 pm
Who is online

Users browsing this forum: Chulain and 6 guests