Header image

The Recipe for a Perfect Shopify Store

07/08/2023

481

written by Logan Johnson

The Recipe for a Perfect Shopify Store

I’m not a chef, but I love food and like to think that using Shopify to build an online store is like cooking in a professional kitchen. The kitchen (Shopify) is equipped with state-of-the-art knives, ingredients and spices, and all the pots and pans you could ever need (don’t judge my lack of kitchen vocabulary!) These tools and ingredients are what Shopify and Shopify Plus make available to everyone in their ecosystem. Just sign in, grab a cutting board and some fresh herbs, then start cooking – er, I mean selling!

However, unlike a restaurant with a pre-determined menu from which everyone orders their meal, Shopify stores need to be one-of-a-kind, bespoke solutions.

For most recipes, there’s nothing stopping you from creating a Michelin-starred online store immediately. But what if your vision requires something a little different – something with a little more pizazz?

Unlike a restaurant with a predetermined menu, the same Shopify store can’t be reused for customers.

Like a flavorful new recipe, online businesses sometimes require unique, out-of-the-box ingredients or adjustments to create the perfect solution. That’s what SupremeTech does for our Shopify and Shopify Plus projects.

We provide the extra spice!

Shopify Store Recipe: Makuake Storefront

After working on Makuake’s admin page, we developed an understanding of their business model and demonstrated the ability to build a quality product. It was then that we were approached with a second opportunity: help develop the Makuake storefront. 

The way the storefront works is pretty simple. The merchant submits their business or project to the Makuake team, which approves it in the admin system. After review, the product can be listed and sold on the storefront. Easy.

Most of the features needed for this project were readily available through Shopify Plus public applications. However, after adding the necessary applications, we realized that a few key ingredients were missing.

Shopify Public Apps: Not Everything Needs to be Made From Scratch

We started by finishing the UI/UX of the storefront. This task was relatively easy; to stick with the gourmet kitchen theme, we were just slicing onions and cracking eggs. We implemented most of the UI/UX using Shopify Plus tools and received the desired images and themes from the client. We were able to use PageFly, one of Shopify’s public apps, to create the store’s landing page with ease. There is no reason to go to all the extra effort to build an app from scratch if a perfectly acceptable one already exists; sometimes canned tomatoes are better for the recipe than fresh ones.

Although this part of the project was not the most labor-intensive, it was incredibly valuable. After all, the beautiful UI/UX is what our end users see when they make a purchase, so it requires extra attention.

Makuake has a unique way of presenting its products on its Shopify Plus-powered store. Users can search for their favorite products by filtering by features or special tags attached to each product. Users can also search for the most recently added products, which is especially helpful for repeat customers of the Makuake store who want to keep up with the latest gadgets and inventions.

A Dash of Spice: Shopify Custom Solutions

A Dash of Spice: Shopify Custom Solutions

While the UI/UX was built using available Shopify tools, there was one particular challenge that could not be solved with those tools alone. Makuake Store is a wonderful platform that supports entrepreneurship. It gives people a way to sell their unique creations, including craft spirits and alcohol. However, like most parts of the world, Japan has a legal drinking age (20 and up). Therefore, Makuake Store needed a way to distinguish between age-restricted products and normal products.

The goal was to prohibit the purchase of age-restricted products with a credit card. We did this by adding a custom attribute to shopping cart items. This allows users to add different products to their shopping carts but prevents them from purchasing age-restricted products along with regular items. Not every online store sells age-restricted products, but in this case it was a necessary feature. Without it there would be no way to legally sell delicious craft spirits on the site.

Season to Taste: Shopify Development Allows for Trial and Error

One of the most significant technical challenges for this project was the product ranking list. Users can choose to view the most popular products for the week or month by clicking on the ranking list. The challenge, however, was to display only the top 20 ranked products out of a list of over 1,000 found in the admin server. This means that each time the API is called 1,000 products are processed but only 20 are displayed. Displaying the 20 products is not an issue, but the amount of load time is nearly 10 seconds. This is far too long to be waiting for a screen to load.

We tried several different solutions to reduce the loading time of the ranked list, and we finally managed to reduce the time from 10 seconds to 5 seconds. We were able to do this by implementing pagination and breaking a large amount of information into smaller, bite-sized chunks. 

There is also a rankings page on the Makuake storefront home page, but it only displays the top 5 products in a banner. As with the full rankings page, the long load times were detrimental to the overall user experience of the store. However, because the banner is on the home page, long load times are even more inexcusable. The longer the user has to wait for the information to load, the more likely they are to lose interest or click away from the page altogether.

“A Shopify store is rarely seasoned to perfection on the first try.”

Again, we tested several different methods to speed up the process of loading the ranking banner. We found that when the banner took 5 seconds to finish loading, the rest of the page was also backed up. No one likes to look at a bland, white screen when trying to quickly browse products in an online store. 

After some trial and error, we decided to apply the lazy loading technique to the banner. No matter what, the banner would take some extra time to load. Therefore, we used this technique to load the banner last and avoid having an unloaded page below it. 

A Shopify store is rarely seasoned to perfection on the first try. Most of the time, all you need is a little extra salt. However, sometimes you need to add more acidity or sweetness to create a perfectly balanced creation. Although the Makuake storefront was not a project chock-full of difficulties, finding and implementing the perfect set of solutions required time and patience. 

After about half a year of development, we completed and released the storefront. The constant trial and error may have been tedious at times, but the end product was well worth it.  At the end of the day, customer, or user, satisfaction with their experience is what truly matters.

Create a Shopify online store users will love!

Project Technical Stack

  • Programming languages: JavaScript, liquid
  • Server & Databases: Shopify
  • Applications connected via APIs: Shopify Storefront’s API, 3rd party app’s API

Contact us to get custom solutions for your Shopify business. We offer custom development services to streamline your store management and more!

Related Blog

integrate-iap-in-react-native

How-to

Software Development

+0

    Integrating IAP with Other Features in React Native

    Following the series about React Native IAP (In-App Purchases), in this article we will discover how to integrate IAP with other features. Integrating In-App Purchases (IAP) with other features in a React Native application can enhance user engagement and maximize revenue. This article will explore how to combine IAP with other monetization methods, sync IAP data with backend services, and use IAP data to personalize user experiences. We'll provide examples and code snippets to illustrate these integrations. Let's explore other articles in this series. Implementing IAP (In-App Purchases) in a React Native App Best Practices for React Native IAP (In-App Purchases) Combining IAP with Other Monetization Methods To diversify revenue streams, you can combine IAP with other monetization methods like ads and affiliate marketing. Example: Combining IAP with Ads You can offer an ad-free experience through IAP while still generating revenue from users who prefer the free version with ads. Integrate Ad SDK: Use a library like react-native-google-mobile-ads to display ads. import { BannerAd, BannerAdSize, TestIds } from '@react-native-google-mobile-ads'; const AdComponent = () => ( <BannerAd unitId={TestIds.BANNER} size={BannerAdSize.FULL_BANNER} requestOptions={{ requestNonPersonalizedAdsOnly: true, }} /> ); 2. Offer Ad-Free Purchase: Create an in-app purchase for removing ads. const productIds = ['com.example.remove_ads']; const buyRemoveAds = async () => { try { await RNIap.requestPurchase(productIds[0]); } catch (err) { console.warn(err.code, err.message); } }; // Example button to trigger purchase <Button title="Remove Ads" onPress={buyRemoveAds} />; 3. Conditional Rendering: Check if the user has purchased the ad-free version and conditionally render ads. const [adsRemoved, setAdsRemoved] = useState(false); useEffect(() => { const checkPurchase = async () => { const purchases = await RNIap.getAvailablePurchases(); setAdsRemoved(purchases.some(purchase => purchase.productId === productIds[0])); }; checkPurchase(); }, []); return ( <View> {!adsRemoved && <AdComponent />} {/* Other app components */} </View> ); Syncing IAP Data with Backend Services Syncing IAP data with a backend service helps maintain user purchase records, validate transactions, and provide a seamless experience across devices. Backend Setup: Create a simple backend to handle receipt validation and store purchase data. Here’s an example using Node.js and Express: const express = require('express'); const bodyParser = require('body-parser'); const app = express(); app.use(bodyParser.json()); app.post('/validate-receipt', async (req, res) => { const { receipt } = req.body; // Validate receipt with Apple/Google servers const isValid = await validateReceiptWithStore(receipt); if (isValid) { // Store purchase data in database await storePurchaseData(receipt); res.json({ success: true }); } else { res.json({ success: false }); } }); const validateReceiptWithStore = async (receipt) => { // Placeholder for actual validation logic return true; }; const storePurchaseData = async (receipt) => { // Placeholder for storing data logic }; app.listen(3000, () => console.log('Server running on port 3000')); 2. Client-Side Validation: Send the receipt to your backend for validation after a purchase. const validateReceipt = async (receipt) => { try { const response = await fetch('https://your-server.com/validate-receipt', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ receipt }), }); const result = await response.json(); return result.success; } catch (error) { console.warn('Validation error', error); return false; } }; useEffect(() => { const purchaseUpdateSubscription = RNIap.purchaseUpdatedListener(async (purchase) => { const receipt = purchase.transactionReceipt; if (receipt) { const isValid = await validateReceipt(receipt); if (isValid) { // Complete the purchase await RNIap.finishTransaction(purchase, false); } } }); return () => { purchaseUpdateSubscription.remove(); }; }, []); Using IAP Data for Personalized User Experiences IAP data can be leveraged to personalize the user experience, making the app more engaging and tailored to individual preferences. Unlocking Features: Use IAP to unlock premium features. const [premiumUser, setPremiumUser] = useState(false); useEffect(() => { const checkPurchase = async () => { const purchases = await RNIap.getAvailablePurchases(); setPremiumUser(purchases.some(purchase => purchase.productId === 'com.example.premium')); }; checkPurchase(); }, []); return ( <View> {premiumUser ? ( <PremiumContent /> ) : ( <RegularContent /> )} </View> ); 2. Personalized Offers: Provide special offers based on past purchase behavior. const [specialOffer, setSpecialOffer] = useState(null); useEffect(() => { const fetchSpecialOffer = async () => { const purchases = await RNIap.getAvailablePurchases(); if (purchases.length > 0) { // Fetch special offer from backend based on purchase history const response = await fetch('https://your-server.com/special-offer', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ userId: user.id }), }); const offer = await response.json(); setSpecialOffer(offer); } }; fetchSpecialOffer(); }, []); return ( <View> {specialOffer && <Text>{specialOffer.description}</Text>} </View> ); Conclusion Integrating IAP with other features in a React Native app can greatly enhance user engagement and revenue. By combining IAP with ads, syncing purchase data with backend services, and using IAP data for personalization, you create a more dynamic and user-friendly experience. Following these practices ensures that your app not only generates revenue but also provides value to your users, leading to higher satisfaction and retention.

    04/06/2024

    43

    How-to

    +1

    • Software Development

    04/06/2024

    43

    Integrating IAP with Other Features in React Native

    troubleshoot issues in react native iap

    How-to

    Software Development

    +0

      Troubleshooting Common Issues in React Native IAP

      Hi tech fellows, this is the third article in the React Native IAP series. Using in-app purchases (IAP) in a React Native app can be complex. Despite careful planning, various issues can arise during development and after deployment. This guide will help you troubleshoot issues in React Native IAP, ensuring a smoother experience for your users and fewer headaches for you. Implementing IAP (In-App Purchases) in a React Native App Best Practices for React Native IAP (In-App Purchases) 1. Network Issue Network issues are common, especially in mobile environments. These problems can interrupt purchase flows and frustrate users. Solution: Implement Retry Mechanisms Ensure your app can handle network disruptions gracefully by implementing retry mechanisms. For instance, if a purchase fails due to network issues, inform the user and provide an option to retry. 2. Interrupted Purchases Purchases can be interrupted for various reasons, such as app crashes or users closing the app mid-transaction. Solution: Handle Pending Transactions Check for and handle pending transactions when the app restarts. This ensures that any interrupted purchases are completed or properly reverted. 3. Receipt Validation Receipt validation is crucial to ensure that purchases are legitimate. However, developers often face issues with validation, leading to rejected transactions or fraud. Solution: Implement Server-Side Validation While client-side validation can be a quick check, server-side validation provides an additional layer of security. Here's a basic example of how you might handle this: Client-Side: Server-Side: 4. Product Configuration Issues Sometimes, products do not appear in your app because of misconfigurations in the app stores. Solution: Double-Check Configurations Ensure that your product IDs match exactly between your app and the store. Also, confirm that the products are approved and available for purchase. 5. Platform-Specific Bugs Bugs can be platform-specific, affecting either iOS or Android but not both. Solution: Test on Both Platforms Always test your IAP functionality on both iOS and Android. Utilize device simulators and real devices to cover a range of scenarios. Keep an eye on the library's GitHub issues page, as many common bugs are reported and discussed there. 6. User Cancellations Users might cancel purchases midway, leading to incomplete transactions. Solution: Handle Cancellations Gracefully Detect and manage canceled transactions by informing users and reverting any app state changes made in anticipation of the purchase. 7. Debugging Tools Debugging IAP issues can be challenging without the right tools. Solution: Use Debugging Tools Utilize debugging tools like Reactotron or Flipper for React Native. These tools help you log and inspect API calls, including those made by the react-native-iap library. 8. Updates and Deprecations Libraries and APIs are frequently updated, which can lead to deprecated methods and breaking changes. Solution: Keep Your Library Updated Regularly update the react-native-iap library and other dependencies. Check the library's documentation and changelog for updates and breaking changes. This ensures that your implementation remains compatible with the latest versions of React Native and the app stores' requirements. Conclusion Troubleshooting issues in React Native IAP involves addressing network issues, handling interrupted purchases, ensuring proper receipt validation, and managing platform-specific bugs. By implementing robust solutions and using appropriate tools, you can resolve common issues effectively, ensuring a smoother and more reliable purchase experience for your users. Regular updates and thorough testing across both iOS and Android platforms are key to maintaining a successful IAP system in your app.

      28/05/2024

      85

      How-to

      +1

      • Software Development

      28/05/2024

      85

      Troubleshooting Common Issues in React Native IAP

      best practices for react native iap

      Knowledge

      Software Development

      +0

        Best Practices for React Native IAP (In-App Purchases)

        Hi coders, this is the second article in a series about React Native IAP (In-App Purchases). In the first article, we've gone through how to implement IAP in a React Native App. It's essential to implement IAP carefully to ensure a seamless user experience and maintain compliance with platform guidelines. In this article, we will explore the best practices for React Native IAP, covering aspects such as user experience, security, compliance, and optimization strategies to help you get the most out of your in-app purchase implementation. By following these guidelines, you can create a robust and effective IAP system for your app. Choose the Right Library Choosing a reliable library is the first step in implementing IAP in your React Native app. The react-native-iap library is a popular choice due to its comprehensive features and support for both iOS and Android platforms. This library simplifies the process of adding in-app purchases, managing subscriptions, and handling transactions. User Experience and Flow A seamless user experience is vital for successful in-app purchases. Here are some best practices to ensure a smooth purchase flow: Clear and Concise UI: Design a straightforward and intuitive purchase interface. Use clear labels and descriptions for each product, and make sure users understand what they are buying.Pre-Purchase Information: Provide all necessary information before the purchase. This includes the price, benefits, and any recurring charges for subscriptions. Transparency helps build trust with users.Error Handling: Handle errors gracefully. Inform users if something goes wrong during the purchase process and provide steps to retry or contact support. Compliance with App Store Guidelines Both the Apple App Store and Google Play Store have strict guidelines for in-app purchases. Here’s how to ensure compliance: Product Approval: Ensure all products and subscriptions are approved by the respective app stores before making them available for purchase. Unapproved products can lead to app rejections.Subscription Management: Allow users to manage their subscriptions easily. Include options to view, cancel, or modify subscriptions directly within the app or through links to the app stores.Consistent Pricing: Ensure that the pricing of products and subscriptions is consistent with what is listed in the app stores. Any discrepancies can lead to user dissatisfaction and potential compliance issues. Security Considerations Security is paramount when dealing with financial transactions. Implementing secure practices protects both your app and its users. Receipt Validation: Validate purchase receipts to ensure they are legitimate. This can be done on the client-side for initial verification and on the server-side for additional security.javascript Secure Storage: Store sensitive information, such as receipts and purchase tokens, securely. Use secure storage solutions provided by React Native or third-party libraries.Handle Fraud: Implement measures to detect and prevent fraudulent purchases. Monitor purchase patterns and use server-side validation to verify transactions. Handling Edge Cases Edge cases can occur due to various reasons, such as network issues, interrupted purchases, or device compatibility problems. Here’s how to handle them: Network Issues: Ensure your app can handle network disruptions. Implement retry mechanisms for failed purchases and inform users about the issue.Interrupted Purchases: Handle cases where a purchase is interrupted, such as app crashes or user cancellations. Check the purchase status upon app restart and complete any pending transactions. Device Compatibility: Test your IAP implementation on various devices and operating system versions to ensure compatibility and a smooth user experience. Optimizing Monetization To maximize revenue, optimize your in-app purchase offerings and strategies. Product Variety: Offer a range of products and subscriptions to cater to different user needs and budgets. Include consumables, non-consumables, and subscription options.Promotions and Discounts: Run promotional campaigns and offer discounts to attract new users and retain existing ones. Use the app store’s promotional tools to manage these offers.Analytics: Use analytics to track purchase behavior and user engagement. This data helps you understand what works and allows you to refine your offerings and strategies. Regular Updates and Testing Regular updates and thorough testing are crucial for maintaining a robust IAP system. Frequent Updates: Keep your IAP implementation up to date with the latest versions of the react-native-iap library and other dependencies. Regular updates ensure compatibility and security.Testing: Test your IAP functionality thoroughly in a sandbox environment before releasing it to users. This helps catch and fix any issues early on. What's more after best practices for React Native IAP? Implementing React Native IAP effectively requires careful attention to user experience, security, compliance, and monetization strategies. By following best practices, you can ensure a smooth purchase process for users and boost your app's revenue. To further enhance your app, explore advanced features and customizations, such as promotional offers and branded purchase flows. Focus on security to prevent fraud and validate receipts securely. Troubleshooting common issues can improve user satisfaction. Address bugs, use debugging tools, and leverage community solutions. Also, consider localization to support multiple currencies and languages, comply with regional regulations, and tailor offerings to local preferences. Stick around! We will be back soon for the next episode in this series.

        23/05/2024

        83

        Knowledge

        +1

        • Software Development

        23/05/2024

        83

        Best Practices for React Native IAP (In-App Purchases)

        Implementing-React-Native-IAP

        How-to

        Software Development

        +0

          Implementing IAP (In-App Purchases) in a React Native App

          Hi coders, this is the first article in a series about React Native IAP (in-app purchases). Implementing in-app purchases (IAP) in a React Native app can significantly enhance your app's monetization strategy. This guide will walk you through the process of setting up IAP in a React Native application, providing an overview of popular libraries, and detailing how to handle different types of purchases. Setting Up In-App Purchases in React Native To begin with, you need to choose a reliable library that facilitates IAP in React Native. One of the most popular options is react-native-iap. This library supports both iOS and Android, making it a versatile choice for cross-platform apps. Step 1: Installing react-native-iap First, you need to install the react-native-iap library. You can do this using npm or yarn: After installing the library, link it to your project: For React Native 0.60 and above, auto-linking takes care of this step. Step 2: Configuring Platforms iOS Configuration: Open your project in Xcode.Go to your project settings, and under the "Capabilities" tab, enable "In-App Purchase".Make sure your app's bundle identifier is registered with Apple, and your IAP products are configured in App Store Connect. Android Configuration: Make sure your app's package name is registered with Google Play.Configure your IAP products in the Google Play Console.Add the following permission to your AndroidManifest.xml: Step 3: Implementing IAP in Your App With the library installed and platforms configured, you can now implement IAP in your React Native app. Import the library: 2. Initialize the library and fetch products: This code initializes the IAP connection and fetches product details from the store. Handling Purchases: To handle purchases, you need to set up purchase listeners and manage the purchase flow. Making a Purchase: You can trigger a purchase using the product ID. Handling Different Types of Purchases Consumable Products: Consumable products are items that can be purchased multiple times, such as coins or gems. After the purchase is verified and processed, you need to call RNIap.finishTransaction to finalize it. Non-Consumable Products: Non-consumable products are items that can only be purchased once per user account, such as a "Pro" upgrade. The purchase flow is similar, but you should ensure that users cannot repurchase the same item. Subscriptions: Subscriptions are recurring purchases. To handle subscriptions, you'll need to check the subscription status periodically and provide appropriate access based on the subscription state. Conclusion Implementing in-app purchases in a React Native app involves several steps, from installing and configuring the react-native-iap library to handling various types of purchases. By following the steps outlined above, you can add a robust IAP system to your app, enabling new monetization opportunities. Remember to thoroughly test your IAP implementation and handle all edge cases to provide a seamless experience for your users. Throughout your implementation process, adapt where necessary to get the best result. Or contact us for in-app purchase solutions in a mobile app.

          21/05/2024

          80

          How-to

          +1

          • Software Development

          21/05/2024

          80

          Implementing IAP (In-App Purchases) in a React Native App

          Customize software background

          Want to customize a software for your business?

          Meet with us! Schedule a meeting with us!