Skip to main content

Hello Shahjahan JewelΒ Ripon SarkarΒ 
Do you plan add billing_document field in checkout page?

Friends, the second month is coming to an end, as I am developing a payment module for FlentKart in the RU zone. There are enough problems.

Now we are faced with the quick purchase feature. If you click on the "Buy now" button, then everything that was in the shopping cart disappears. There's only one product left that we need to buy NOW.

Is this how it should work? Or are we doing something wrong in the program code?

Thanks for the support response and maybe someone has already encountered a similar problem.


How can I correctly add a product to the cart using JavaScript without removing the items that are already there? Currently, when I click the β€˜Buy Now’ button, the existing products are removed from the cart.

Thanks!

Currently there's an option to limit the order amount for a product to 1 per order.

Please enhance this feature to make it possible to set a custom maximum amount per order that can be purchased of a product, on a per product basis.

I wanted to check if FluentCart already supports (or plans to support) role-based purchase restrictions β€” for example, preventing certain roles like administrator from buying specific products or all products.

I couldn’t find a built-in setting or filter for this, so I implemented it using FluentCart hooks and the Cart API.

This is the approach I’m currently using β€” just want to confirm:

  1. Whether there’s an official/native way to do this
  2. If not, whether this approach is considered correct/safe
  3. And if role-based purchase restriction is something that might be added natively in the future

define('BLOCKED_PURCHASE_ROLES', ['administrator']);
define('MEMBERSHIP_PRODUCT_IDS', [1, 2, 3]);

add_action('fluent_cart/cart/item_added', 'block_roles_from_purchasing', 10, 1);
add_action('fluent_cart/cart/cart_completed', 'block_roles_from_purchasing', 10, 1);

function block_roles_from_purchasing($data) {

if (!is_user_logged_in() || empty($data['cart'])) {
    return;
}

$user = wp_get_current_user();

if (!array_intersect((array) $user->roles, BLOCKED_PURCHASE_ROLES)) {
    return;
}

$cart = $data['cart'];

foreach ($cart->getItems() as $item) {
    $product_id = (int) $item['product_id'];

    if (in_array($product_id, MEMBERSHIP_PRODUCT_IDS, true)) {
        $cart->removeItem($product_id, [], true);
    }
}

}

I'm trying to create a product template, are there tutorials for this?

I know I can use a block theme to change the default template, but I actually want to keep using Kadence, since I use this for all my sites.

I am using etch builder and need shortcodes for all parts of the product page, so I can properly design all stuff.

Shahjahan JewelΒ any ideas if and when full list of shortcodes are coming?

is it possible to send a PDF receipt to a certain mailaddress?

I've created a custom fluentform for updating the fluentcrm profile for logged in users. I've also mapped an image upload field to the fluentcrm profile image which works great!

When logged in as a fluentcart customer I noticed the fluentcart profile image inside the customer portal doesn't sync with the profile image in fluentcrm.

I'd really love to see this addressed in an upcoming release.

Fluent cart has the feature that allow sell without login as a customer? And link the order via email? Or similar.

To avoid login in the checkout

I see it is blocked in the code to support annual or installment bumps. can anyone explain why this is the case? after investigating more I noticed that installment and annual products have no add to cart button, only buy it now. I am guessing there is some reason behind why ltd is handled so differently than annual and installment purchase / checkout.