We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for <a href="http://modxcms.com/extras/package/527">Shopkeeper 0.9 beta6+-beta</a> by andchir.

    Brief Description:
    Snippet displays two types of shopping basket (extended or simple). Data for selected goods is kept in a cookie. Message with order details can be emailed and sent to the Shopkeeper module (recommended). Additional parameters can be attached to goods for the user to select. The eForm snippet is required for creation of the order form.
    Demo: http://shopkeeper.wdevblog.net.ru/shopkeeper_demo.html
      • 26931
      • 2,314 Posts
      hey andchir,

      that’s great - thanks for sharing! smiley i’ll install it ( when i got some spare time ) and report back
        • 26931
        • 2,314 Posts
        btw. this site ( in progress ) http://bit.ly/2EKWrg uses Shopkeeper...is VAT, Delivery calculation a built in feature of shopkeeper, or customized on that site?
          • 26931
          • 2,314 Posts
          Hi andchir,

          i managed to install Shopkeeper successfully on my laptop. On the product page i got a simple Shopkeeper call and one product item:
          [!Shopkeeper? &lang=`en` &currency=`USD` &orderFormPage=`55` &flyToCart=`helper` &cartType=`full` &cartTpl=`shopCart`!]
          
          <div class="shop-stuff shk-item">
            <div class="shop-stuff-b">
              <h3>[*title*]</h3>
              <div class="shs-descr">
                <img class="shk-image" src="[*image*]" alt="" height="130" width="130" />
                [*introtext*]<br />
                <a href="[~[*id*]~]">More ›</a>
              </div>
              <form action="" method="post">
                <input type="hidden" name="shk-id" value="[*id*]" />
                <input type="hidden" name="shk-name" value="[*title*]" />
                <input type="hidden" name="shk-price" value="[*price*]" />
                <input type="hidden" name="shk-count" value="1" size="2" maxlength="3" />
                <div class="shs-price">
                  <button type="submit" name="shk-submit" class="shk-but">Add to cart</button>
                  <div>Currency: <span class="shk-price">[*price*]</span> USD</div>
                </div>
              </form>
            </div>

          on the orderFormPage ( ID 55 ) eForm & Shopkeeper are called like this:
          [!Shopkeeper? &lang=`en` &currency=`USD` &orderFormPage=`55` &gotoid=`54` &flyToCart=`helper` &cartType=`full` &cartTpl=`shopCart`!]
          [!eForm? &formid=`shopOrderForm` &tpl=`shopOrderForm` &report=`shopOrderReport` &vericode=`1` &ccsender=`0` &gotoid=`54` &subject=`Order` &eFormOnBeforeMailSent=`populateOrderData` &eFormOnMailSent=`sendOrderToManager`!]

          i don’t use ccsender because it’s not on a remote server and i can’t send emails to "real" e-mail addresses anyways

          everything works well, i’m able to add items to the cart, submit the order -> redirected to the order form page ( basket with item is displayed on top of the order form ) and when i submit the order form, the item is displayed correctly in my module, but the cart isn’t emptied although i use "&gotoid" which should empty the basket - any ideas what i might have done wrong?

          thanks a lot, j
            • 26931
            • 2,314 Posts
            Hey Andchir,

            On page ID 54 should also be called a snippet with these parameters (&gotoid=`54`). Or one parameter &cartType=`empty`
            great - that worked!
            btw., can you tell me what the parameter &linkAllow=`0` is for?

            thanks, j
              • 26931
              • 2,314 Posts
              Hi Andchir,

              me again smiley

              i got another question...i know that i can empty the cart when javascript is disabled, but when i want to delete an item, it just adds "?shk_action=del&n=0" to the URL and the cart isn’t emptied - any ideas?

              thanks, j
                • 26931
                • 2,314 Posts
                When you delete the last item from the shopping cart is not cleared
                with javascript turned off
                с JavaScript отключены smiley

                on your example website it’s also working with javascript turned off
                на примере веб-сайт "также работает с JavaScript отключены

                thanks / Спасибо

                *edit: i got it, it’s working with friendly URLs enabled!
                Я получил ее, она работает с URL дружественные включен
                  • 26931
                  • 2,314 Posts
                  can you tell me what the parameter &linkAllow=`0` is for?
                  Можете ли вы сказать мне, что параметр &linkAllow=`0` для?

                  thanks / Спасибо

                  i think i found it in the russian forum, apparently that parameter overrides links to items in the cart (need to play around with that to check what it means exactly smiley )
                    • 8522
                    • 145 Posts
                    hi

                    I try to add extra cost to the whole price, depending on a select box. If the options are some specific regions there should be 10$ additional cost to the price.

                    Do I have to write a custom plugin that gets executed after the eform. I’m not sure how to achieve this. undecided

                      • 26931
                      • 2,314 Posts
                      Hi eerne,
                      I try to add extra cost to the whole price, depending on a select box. If the options are some specific regions there should be 10$ additional cost to the price.
                      this functionality should already bedoable "out of the box" -> have a look at the more advanced demos:
                      http://shopkeeper.wdevblog.net.ru/shopkeeper_demo/primer_2.html
                      http://shopkeeper.wdevblog.net.ru/shopkeeper_demo/primer_3.html
                      using the widget & ditto extender