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

#   Finnish function with custom button

##

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile") Topic Author
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

9 years 9 months ago [\#261448](#261448) by [river](/forum/user/9591-river "View river's Profile")  *[Finnish function with custom button](/forum/9-commercial-jobs/888677-finnish-function-with-custom-button#261448 "-- HikaShop version -- : 3.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7  OK this is a very small job.  Please read this thread first:  I need help to finish a small code in the product | quantity view file.  I've created a code for a custom buttom called &quot;Gå til forhandler/Go to dealer&quot; that links from the &quot;product/brand url&quot;. I've also added code to the button that hides the standard &quot;add to cart&quot; button when the product &quot;brand url&quot; is filled out. This function works perfect and need to be kept.  So now my code looks like this:  Now I need help with one last function:  I need to write a code that hides my custom button &quot;Gå til forhandler/Go to dealer&quot; when the &quot;Brand URL&quot; of the product is NOT filled.  I can pay 25 Euro is someone can help me finnish the code. You must accept paypal.  Send me a PM here on hikashop if you can help.  Tnx")* was created by *[river](/forum/user/9591-river "View river's Profile")*

-- HikaShop version -- : 3.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 7

OK this is a very small job.

Please read this thread first: [ link to thread](https://www.hikashop.com/forum/product-category-display/888612-hide-add-to-cart-button-when-brand-url-is-filled-out.html#261447)

I need help to finish a small code in the product &#124; quantity view file.

I've created a code for a custom buttom called "Gå til forhandler/Go to dealer" that links from the "product/brand url".
I've also added code to the button that hides the standard "add to cart" button when the product "brand url" is filled out. This function works perfect and need to be kept.

So now my code looks like this: Code:

&lt;input type="button" onclick="window.location='&lt;?php echo $this-&gt;row-&gt;product_url; ?&gt;'; return false;" value="Gå til forhandler!&gt;"/&gt;&lt;br/&gt; &lt;?php if(!empty($this-&gt;element-&gt;product_url)) return; ?&gt; &lt;?php /** * @package HikaShop for Joomla! * @version 3.0.0 * @author hikashop.com * @copyright (C) 2010-2017 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */

Now I need help with one last function:

I need to write a code that hides my custom button "Gå til forhandler/Go to dealer" when the "Brand URL" of the product is **NOT** filled.

I can pay 25 Euro is someone can help me finnish the code.
You must accept paypal.

Send me a PM here on hikashop if you can help.

Tnx

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

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile") Topic Author
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

9 years 9 months ago [\#261472](#261472) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Finnish function with custom button](/forum/9-commercial-jobs/888677-finnish-function-with-custom-button#261472 "-- HikaShop version -- : 3.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7  OK this is a very small job.  Please read this thread first:  I need help to finish a small code in the product | quantity view file.  I've created a code for a custom buttom called &quot;Gå til forhandler/Go to dealer&quot; that links from the &quot;product/brand url&quot;. I've also added code to the button that hides the standard &quot;add to cart&quot; button when the product &quot;brand url&quot; is filled out. This function works perfect and need to be kept.  So now my code looks like this:  Now I need help with one last function:  I need to write a code that hides my custom button &quot;Gå til forhandler/Go to dealer&quot; when the &quot;Brand URL&quot; of the product is NOT filled.  I can pay 25 Euro is someone can help me finnish the code. You must accept paypal.  Send me a PM here on hikashop if you can help.  Tnx")*

OK job is done.

Case closed.

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

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