1.1.9 • Published 12 months ago

fundpop-app-blocks v1.1.9

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

Add your FundPop Campaign to your Hydrogen storefront

Step1: Install package

  • Using npm
$ npm i fundpop-app-blocks
  • Using yarn
$ yarn add fundpop-app-blocks

Step2: Go to your product page file on Hydrogen project

  • For Demo Template, go to: app/routes/($locale).products.$productHandle.tsx

Step3: Import FundPop Component

import {FundPop} from "fundpop-app-blocks"

Step4: Add FundPop Component to somewhere you like

  • Example for Demo Template
export default function Product() {
  const {product, shop, recommended} = useLoaderData<typeof loader>();
  const {media, title, vendor, descriptionHtml, id} = product;
  const {shippingPolicy, refundPolicy} = shop;

  return (
    <>
      <Section>
        <div>
          <ProductGallery
            media={media.nodes}
          />
          <Heading as="h1" className="whitespace-normal">
            {title}
          </Heading>
          <ProductForm />
          <FundPop productID={id}/>
        </div>
      <Section>
    </>
  )

NOTE:

The format of parameter productID is something like this: "gid://shopify/Product/6923088920642"

1.1.9

12 months ago

1.1.8

12 months ago

1.1.7

12 months ago

1.1.6

12 months ago

1.1.5

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago

1.0.0

12 months ago