Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 10-22-2018 14:21:02

Shopper
Member
Registered: 09-10-2007
Posts: 84

remote add of recurring service

I want to add a recurring service from a remote page but get the following error message in the shopping cart

An error was encountered while adding the selected item. Required information was not completed. Please try again.

I have the following form element

<form action="index.php" method="post" id="remoteadd" />
        <input type="hidden" name="app" id="app" value="gbu0" />
        <input type="hidden" name="ns" id="ns" value="addcart" />
        <input type="hidden" name="cart_api" id="cart_api" value="Y" />
        <input type="hidden" name="recurprice" id="recurprice" value="8.00" />
        <input type="hidden" name="quantity" id="quantity" value="1" />
        <input type="hidden" name="name" id="name" value="membership" />
        <input type="hidden" name="number" id="number" value="M001" />
        <input type="hidden" name="delivery_method" id="delivery_method" value="N" />
        <input type="hidden" name="taxcountry" id="taxcountry" value="STANDARD" />
        <button>add to cart</button>
    </form>

When I change name and id to "price" instead of "recurprice", the product is accepted.

Is there a possibility to add a recurring service from a remote page or is there something missing?

Offline

 

#2 10-22-2018 14:46:04

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19124
Website

Re: remote add of recurring service

You will need both a price and a recurprice field (even if price is zero).  View the source of this page to view all available options:

https://kryptronic.com/media/ecom/examp … tform.html


Nick Hendler

Offline

 

#3 10-22-2018 16:39:11

Shopper
Member
Registered: 09-10-2007
Posts: 84

Re: remote add of recurring service

Thank you, it's working. Now I understand what it means in the description "This is the portion of the price ...."

Offline

 

Board footer