Skip to content
Pajuhaan edited this page Oct 21, 2023 · 16 revisions

Welcome to the Selldone Storefront SDK Home Wiki!

Thank you for visiting the official GitHub Wiki of Selldone Storefront SDK, your premier solution for creating intuitive, powerful, and seamless ecommerce storefronts. Our SDK is designed to empower developers, whether you are building a simple online shop for a small business or crafting a multifaceted ecommerce platform for large enterprises.

In this repository, you'll find comprehensive resources that guide you through the integration of the Selldone Storefront SDK into your application. We cover everything from basic setup and configuration to advanced customization, ensuring that you have all the tools necessary to create an engaging and functional shopping experience.

By leveraging the capabilities of the Selldone Storefront SDK, you're choosing an innovative, scalable, and secure approach to ecommerce development. Dive into our guides, explore code samples, share your insights, and join our community in redefining online commerce solutions.

Setup

StorefrontSDK.Setup(); // Set up the Shop SDK.

Fetsh products

`.
window.$storefront.products .optimize(600) .fetchProducts(dir, more ? this.products.length : 0, limit, { categories_count: categories_count,

      with_parent: with_parent,
      with_page: true, // Only return page if with_parent be true! It return linked custom page of current category (parent).

      sort: sort,
      available: available,
      search: search,
      search_type: search_type,

      dirs: dirs,

      filter: filter, //filter

      products_only: products_only, // Only products if load more!
      categories_only: categories_only,

      with_total: true,

      bounds: bounds, // Location constraints

      tags: tags, //Filter by tags
      vendor_id: vendor_id, // Show only for this vendor!

      surrounded: surrounded, // true:Show only selected categories. false: Show items inside selected categories.
    })
    .cache(handleSuccessResponse)
    .then(handleSuccessResponse)
    .catch((error) => {
      this.showLaravelError(error);
    })

    .finally(() => {
      this.prevent_refetch = false;

      this.busy_fetch = false;
      // always executed
    });

`

Clone this wiki locally