1.1.9 • Published 2 years ago

fundpop-app-blocks v1.1.9

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

1.0.0

2 years ago