1

Cart Drawer Not Updating on Add to Cart from Quiz Result Page

Kushal Gandhi

Last Update 5 maanden geleden

The Quizify app does not support cart drawers for themes other than Shopify's free themes. This limitation arises because custom or premium themes often have unique cart drawer and notification structures, which are beyond the scope of Shopify app support.


If you are using a custom or premium theme, you will need assistance from a theme developer to enable cart drawer updates after adding products to the cart from the quiz result page.

Instructions for Theme Developers

To ensure the cart drawer or cart bag counter icon updates correctly after adding a product from the quiz result page, you can use the quizifyAddToCart event in your theme's JavaScript file.


Steps to Implement:


  • Identify Your Theme's Cart Drawer Code: Locate the JavaScript code in your theme that handles the cart drawer or cart bag counter updates.

  • Listen for the quizifyAddToCart Event: Add an event listener to your theme's JavaScript file that listens for the quizifyAddToCart event.

  • Add Custom Code to Reload the Cart Drawer: Within the event listener, add the necessary custom code to reload the cart products or update the cart icon.

  • Example Code: Below is a sample code snippet demonstrating how to use the quizifyAddToCart event:

  • Test the Integration: After implementing the code, thoroughly test the functionality to ensure the cart drawer updates correctly when products are added through the Quizify app.

Notes:
  • Developer Expertise Required: This task requires familiarity with your theme's structure and JavaScript implementation.
  • Scope Limitation: As the structure of cart drawers varies significantly between custom themes, our support team cannot assist with this implementation.
  • Recommended Approach: Contact your theme developer if you are unfamiliar with the necessary modifications.


For further assistance, feel free to reach out to your theme development team or a Shopify expert.

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us