Limit to the number of prices selectable

Permalink Browser Info Environment
There seems to be a limit to the number of prices listed in the plan settings page. we can only seem to get the 1st 10 to display. is there a tweak i can make at my end to make it show more options?

Type: Ticket
Status: Resolved
UKSMDT
View Replies:
concrete5cojp replied on at Permalink Reply
concrete5cojp
Hi UKSMDT,

Stripe has a limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.

To extend the limit override the packages/c5j_stripe/controllers/single_page/dashboard/stripe/plans.php::getPlans() and change the following line
from
$plans = C5jStripe::stripe()->plans->all();

to
$plans = C5jStripe::stripe()->plans->all(['limit' => 100]);


We'll include this tweak in the upcoming release.

Thanks
concrete5cojp replied on at Permalink Reply
concrete5cojp
Released in v2.0.1

Thanks.

concrete5 Environment Information

n/a

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 OPR/86.0.4363.70

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.