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

#   Hide paypal express button unless free shipping

##

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile") Topic Author
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

11 years 4 months ago -  11 years 4 months ago [\#205447](#205447) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  *[Hide paypal express button unless free shipping](/forum/27-checkout/877658-hide-paypal-express-button-unless-free-shipping#205447 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1  Hi There are many forum posts about the paypal express plugin not picking up the shipping cost so my solution is to only use paypal express if an order qualifies for free shipping - if it doesn't then make the user register etc then checkout with the normal paypal plugin. I have added this code to my components/com&#95;hikashop/views/checkout/tmpl/cart.php file   Find the lines approx LINE 460  Add an additional  underneath then add the following code into the ")* was created by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1

Hi
There are many forum posts about the paypal express plugin not picking up the shipping cost so my solution is to only use paypal express if an order qualifies for free shipping - if it doesn't then make the user register etc then checkout with the normal paypal plugin.
I have added this code to my **components/com\_hikashop/views/checkout/tmpl/cart.php file**

**Find the lines approx LINE 460**Code:

&lt;td class="hikashop_cart_total_value" data-title="&lt;?php echo Jtext::_('HIKASHOP_TOTAL'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_final_total"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt;

Add an additional &lt;tr&gt;&lt;td&gt; underneath then add the following code into the &lt;td&gt;
Code:

&lt;?php if ($shipping_price == "0") { echo "You may use Express Checkout";} ?&gt; &lt;/br&gt; &lt;?php if ($shipping_price &gt; "0") { ?&gt; &lt;style type="text/css"&gt;#paypal_express_button{ display:none; }&lt;/style&gt; &lt;?php } ;?&gt;

Last edit: 11 years 4 months ago by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile").

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

11 years 4 months ago [\#205451](#205451) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide paypal express button unless free shipping](/forum/27-checkout/877658-hide-paypal-express-button-unless-free-shipping#205451 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1  Hi There are many forum posts about the paypal express plugin not picking up the shipping cost so my solution is to only use paypal express if an order qualifies for free shipping - if it doesn't then make the user register etc then checkout with the normal paypal plugin. I have added this code to my components/com&#95;hikashop/views/checkout/tmpl/cart.php file   Find the lines approx LINE 460  Add an additional  underneath then add the following code into the ")*

Hi,

I suppose that you have different shipping methods between the free shipping and the non free shipping.
In your payment methods, you can select the shipping methods for which you want the payment method to display in the restrictions area.
So this shouldn't need any code modification.

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

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