We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    Bwente,

    nothing in the source. No javascript.

    Oh DOH!!

    Somehow in the install I forgot to install the snippet. (Don’t I feel silly.)

    However, there is still no javascript showing in the code, although it is now showing

    <div id="shopCart" class="shop-cart">
    <div align="center">
    <b>
    Êîðçèíà
    </b>
    </div>
    <div id="cartEmpty" align="center">
    Ïóñòî
    </div>
    </div>


    So progress of sorts.

    What’s next?

    smiley

    PS Just got the javascript working.

    My call is
    [!Shopkeeper? &clshopToCart =`shop-stuff` &currency=`AUD` ⟨=`en` &orderFormPage=`9` &gotoid=`199`!]


    However I’ve yet to create my version of page 199. It’ll probably be ’10’
      Content Creator and Copywriter
      • 4385
      • 372 Posts
      Is it on your product page? So now you should be able to add an item to the shopping cart. The checkout button should take you to document 9 and the eform should take you to your document 10.

        DropboxUploader -- Upload files to a Dropbox account.
        DIG -- Dynamic Image Generator
        gus -- Google URL Shortener
        makeQR -- Uses google chart api to make QR codes.
        MODxTweeter -- Update your twitter status on publish.
        • 18367
        • 834 Posts
        Bwente,

        well something happens.

        The buttons are all in Russian, so I’m guessing what they do.

        Pressing what looks like an Add to Cart button opens up a little window, and then pressing OK makes the product move across to the top of the page.

        Pressing Очистить корзину opens up another little box and pressing that does nothing, probably cos I haven’t created that page yet.

        Or maybe I just haven’t put the correct calls on those pages.

        Anyway, I’ll be out for the rest of the afternoon.

        Will get back to this, this evening.

        Thanks

        grin

          Content Creator and Copywriter
          • 18367
          • 834 Posts
          AAARRRGGHH

          Now I’m back to nothing

          This is my call

          [!Shopkeeper? &clshopToCart =`shop-stuff` &currency=`AUD` ⟨=`en` &orderFormPage=`9` &gotoid=`10`!]


          The page just displays two words


          Êîðçèíà
          Ïóñòî

          No buttons or anything else.



          Had to add {{shopStuff}} call to get any buttons.

          Code ended up looking like this

          [!Shopkeeper? &clshopToCart =`shop-stuff` &currency=`AUD` ⟨=`en` &orderFormPage=`9` &gotoid=`10`!]</p>
          <p>
          
          
           
          Stuff
          {{shopStuff}} 


          Really struggling here.

            Content Creator and Copywriter
            • 4385
            • 372 Posts
            It looks like TinyMCE is re-writing your snippet. Try this.

            [!Shopkeeper? &clshopToCart=`shop-stuff` &currency=`AUD` &lang=`en` &orderFormPage=`9` &gotoid=`10`!]


            Also look in the "lang" directory and duplicate "lang_en.js" and rename the copy to "lang_en_utf8.js". It seems to be missing in the original distribution.

              DropboxUploader -- Upload files to a Dropbox account.
              DIG -- Dynamic Image Generator
              gus -- Google URL Shortener
              makeQR -- Uses google chart api to make QR codes.
              MODxTweeter -- Update your twitter status on publish.
              • 18367
              • 834 Posts
              Yeh,

              noticed the
              &amp;
              , already changed them but it made no difference.

              Also duped the lang_en.js" and renamed it as you suggested. Again, it made no difference. Everything’s still in Russian.

              Attached is a screenshot of how the page looks with just the call.

              IF I add {{shopStuff}} I at least get some sort of cart. See second screenshot.

                Content Creator and Copywriter
                • 4385
                • 372 Posts
                Do you have a TV named "price"? Other than that it looks like it is working. The chunks are not going to translate themselves. In my earlier post I have an example of a cart that is translated.
                  DropboxUploader -- Upload files to a Dropbox account.
                  DIG -- Dynamic Image Generator
                  gus -- Google URL Shortener
                  makeQR -- Uses google chart api to make QR codes.
                  MODxTweeter -- Update your twitter status on publish.
                  • 18367
                  • 834 Posts
                  Bwente,

                  I’m stumbling around in the dark here, how can it be working?

                  There’s no add to cart button, no price information or any links to activate anything.

                  Yes, I do have a TV named price.

                    Content Creator and Copywriter
                    • 4385
                    • 372 Posts
                    It looks like in image two that you uploaded has a button to add it to the cart. Are using the chunk for ditto or the chuck for the page.

                    Is it [+price+] or [*price*]?
                      DropboxUploader -- Upload files to a Dropbox account.
                      DIG -- Dynamic Image Generator
                      gus -- Google URL Shortener
                      makeQR -- Uses google chart api to make QR codes.
                      MODxTweeter -- Update your twitter status on publish.
                      • 18367
                      • 834 Posts
                      Bwente,

                      If you look at image1 you’ll see that there are no buttons or anything.

                      That’s what I get when I use a call based on you’re original suggestion

                      [!Shopkeeper? &clshopToCart =`shop-stuff` &currency=`AUD` ⟨=`en` &orderFormPage=`9` &gotoid=`10`!]


                      Image2 is what happens when I add {{shopStuff}} on another paragraph. That wasn’t part of your original instruction, I just added it to see what would happen.

                      Are using the chunk for ditto or the chuck for the page.

                      Is it [+price+] or [*price*]?

                      The only thing on the page is
                      [!Shopkeeper? &clshopToCart =`shop-stuff` &currency=`AUD` ⟨=`en` &orderFormPage=`9` &gotoid=`10`!]


                      Don’t know what else to tell you, this really is as far as I’ve got.
                        Content Creator and Copywriter