Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

UnitySDK Add To Cart Without Checkoutlink

Discussion in 'Scripting' started by stupendousman, Mar 8, 2022.

  1. stupendousman

    stupendousman

    Joined:
    Jun 29, 2015
    Posts:
    3
    Hi,

    I am using the UnitySDK to build a Shopify cart. https://shopify.dev/custom-storefronts/tools/unity-buy
    This works flawless for use with the 'Check out via weblink' feature.

    However i don't want to go to the checkout just yet. I want to go to a Cart page, where I see all the items and still be able to edit + - quantity etc.

    Is this even possible and how so?
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,148
    Since this is a shopify plugin for Unity, you'll probably have to ask over there. I doubt Unity had any hand in the shopify plugin, and most likely they have little knowledge of that SDK.
     
  3. stupendousman

    stupendousman

    Joined:
    Jun 29, 2015
    Posts:
    3
    Thanks, i already asked the same question in their community in the SDK category.
    But 8 days with no reply i thought i might get lucky here, if somebody else made a WebGL product configurator, which can put products in the Shopify basket.

    I am also not exactly a coder myself, more of an artist ... but i am able to tweak the existing code if i get a hint in the right direction ( requires the SDK to support this of course - you are right)
     
  4. AkamaruDesign

    AkamaruDesign

    Joined:
    Dec 17, 2016
    Posts:
    13
    Hi, im working on unity Shopify SDk also, and have the understanding that the cart Object should do the trick, it contains all the line items you have added to the cart, tough it only contains the variantID, price, quantity, and options;

    im trying the same thing, whit no luck, we should be able to query the actual variant from its ID, but IDK HOWW