Announcement

Collapse
No announcement yet.

Different payment options for different products

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Different payment options for different products

    Is it possible to limit payment methods to certain products?

    That is to say, exclude PayPal as a payment option on certain products.

    Customer also uses a separate card PSP.

    Thank you!
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    I don't think there's a standard setting that can do this so you'd have to create a bit of javascript for the checkout that would block / allow payment options based on a condition.

    I can't remember what variables are available at the checkout but I'm sure Norman knows. If you're not using weight for shipping that would be an option. The other option would be to add something to the product name such as (Card Payments Only) that could be tested for as the condition.
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      If you're able to alter product ID's you could have a prefix (e.g. "NP-") that indicates a product is "Not PayPal".

      Amend the line that displays the product ref in Cart Product Details With Thumbnails RWD from:
      Code:
      <span class="floatLeft"><Actinic:Variable Name="ProdRef"/></span>
      to be:
      Code:
      <span class="floatLeft cartproductref" data-ref="<Actinic:Variable Name="ProdRef"/>"><Actinic:Variable Name="ProdRef"/></span>
      Then have some JavaScript that runs at the bottom of Checkout Page 2 like:
      Code:
      <script type="text/javascript">
      $(document).ready(function(){
      	// count all Prod Ref lines that start with "NP-"
      	if ( $( ".cartproductref[data-ref^='NP-']" ).length )
      		{
      		// remove Paypal Website Payments from list
      		$( "select[name='PAYMENTMETHOD']" ).find( "option[value='900']" ).remove();
      		}
      });
      </script>
      Lightly tested on a standard (not Swift) SD 2018 site.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Awesome - thank you!
        Jonathan Chappell
        Website Designer
        SellerDeck Website Designer
        Actinic to SellerDeck upgrades
        Graphicz Limited - www.graphicz.co.uk

        Comment


          #5
          Originally posted by NormanRouxel View Post
          If you're able to alter product ID's you could have a prefix (e.g. "NP-") that indicates a product is "Not PayPal".
          Adding something to the product code is a much better way than my suggestion. Keeps it hidden from the customer.

          -----------------------------------------

          First Tackle - Fly Fishing and Game Angling

          -----------------------------------------

          Comment

          Working...
          X