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

#   multiple payment method for one product

##

- **[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")**
- [![sadaf3d's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46256-sadaf3d "View sadaf3d's Profile") Topic Author
- [ Offline](/forum/user/46256-sadaf3d)

Less More

- Posts: 221
- Thank you received: 8
-

6 years 5 months ago [\#320318](#320318) by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")  *[multiple payment method for one product](/forum/29-payment-methods/900087-multiple-payment-method-for-one-product#320318 "hi i want use multi payment method for one product. for example some product has two payment method,one is online pay and other is use manual pay and give me tracing pay code to accept his sell. i see some thing in this link:   www.hikashop.com/forum/payment-methods/8...ne-product-only.html  but it is not possible for me to use weight or volume to restrict payment method.my product has not these feature . my product is Online Course. is there any other way?")* was created by *[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")*

hi
i want use multi payment method for one product. for example some product has two payment method,one is online pay and other is use manual pay and give me tracing pay code to accept his sell. i see some thing in this link:
[ www.hikashop.com/forum/payment-methods/8...ne-product-only.html](https://www.hikashop.com/forum/payment-methods/891471-payment-method-for-one-product-only.html)
but it is not possible for me to use weight or volume to restrict payment method.my product has not these feature . my product is Online Course. is there any other way?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDAwODctbXVsdGlwbGUtcGF5bWVudC1tZXRob2QtZm9yLW9uZS1wcm9kdWN0P3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

6 years 5 months ago [\#320326](#320326) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[multiple payment method for one product](/forum/29-payment-methods/900087-multiple-payment-method-for-one-product#320326 "hi i want use multi payment method for one product. for example some product has two payment method,one is online pay and other is use manual pay and give me tracing pay code to accept his sell. i see some thing in this link:   www.hikashop.com/forum/payment-methods/8...ne-product-only.html  but it is not possible for me to use weight or volume to restrict payment method.my product has not these feature . my product is Online Course. is there any other way?")*

Hi,

Why not ? You could set a fake volume for your product (even if there is no need for it), and then use the volume restrictions on the payment methods to only display some payment methods based on whether the product is in the cart or not.
For example, if you have other products that have weight between 0 and 20 kg, you can safely set a weight of 1000Kg in the product.
Then, you configure your payment methods for that product to have a minimum weight of 999kg, and the payment methods for the other products you have a maximum weight of 999kg.
Is there a reason why this wouldn't work on your website ?

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

- **[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")**
- [![sadaf3d's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46256-sadaf3d "View sadaf3d's Profile") Topic Author
- [ Offline](/forum/user/46256-sadaf3d)

Less More

- Posts: 221
- Thank you received: 8
-

6 years 5 months ago [\#320361](#320361) by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")  Replied by *[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")* on topic *[multiple payment method for one product](/forum/29-payment-methods/900087-multiple-payment-method-for-one-product#320361 "hi i want use multi payment method for one product. for example some product has two payment method,one is online pay and other is use manual pay and give me tracing pay code to accept his sell. i see some thing in this link:   www.hikashop.com/forum/payment-methods/8...ne-product-only.html  but it is not possible for me to use weight or volume to restrict payment method.my product has not these feature . my product is Online Course. is there any other way?")*

it seems in the past you have some restriction as a product, but not now.
is there any other logical way? if i want write php code to do that (add product field in restriction to select that) have you any advise?
i want get to my shop seller a clearer way to add this payment methods to any product.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDAwODctbXVsdGlwbGUtcGF5bWVudC1tZXRob2QtZm9yLW9uZS1wcm9kdWN0P3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

6 years 5 months ago [\#320386](#320386) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[multiple payment method for one product](/forum/29-payment-methods/900087-multiple-payment-method-for-one-product#320386 "hi i want use multi payment method for one product. for example some product has two payment method,one is online pay and other is use manual pay and give me tracing pay code to accept his sell. i see some thing in this link:   www.hikashop.com/forum/payment-methods/8...ne-product-only.html  but it is not possible for me to use weight or volume to restrict payment method.my product has not these feature . my product is Online Course. is there any other way?")*

We never had restriction of the payment methods to the products. That's because HikaShop is a shopping cart system.
And thus, the customer can pay for several products at the same type.
If he has products with payment methods restricted to different payment methods, then it would mean that we would have to block the user from paying carts with products with different payment methods as you can only have one payment method for one order at the end of the checkout. So usually, you don't want that.

Now if you still want to do that, that's possible. You'll have to modify the payment plugins you want to use to add to them an extra option to select the products / categories in the backend, and check on that option's restriction during the checkout in the onPaymentDisplay function of the plugin.
The payment plugins code is located in the plugins/hikashoppayment/ of your website.

Note that if you modify directly the payment plugins and that these are payment plugins included by default in HikaShop, you'll loose your changes when you update HikaShop. So it's better to change the name of the plugin (in the xml, the filenames, the class name, the code, etc). That way, you can use your modified payment plugin instead of the default one and you won't have issues with updates.

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

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