I use shopkeeper3 with Paykeeper, when a order is payed the status is set to paid directly in the database by paykeeper, But the mail is not send in shopkeeper, is there a way to invoke this?
Сообщение от участника Dimmy
Is it possible to set the price dynamically?
But my question is : is there a way to not use a tv as price? but hook in the add to basked to change the price?
This makes no difference, Do you know how and where the basket is saved? maybe I cab figger it out from there.
This is my chunk: as tou can see both have the same numer:
<div class="shop-cart" data-shopcart="2"> <div class="shop-cart-head"><b>Mandje</b></div> <div class="empty"> <div class="shop-cart-empty">Mandje is leeg - [[+order_page_url]]</div> </div> </div> <!--tpl_separator--> <div class="shop-cart" data-shopcart="2"> <div class="shop-cart-head"><a name="shopCart"></a><b>Mandje - [[+order_page_url]]</b></div> <div class="full"> <form action="[[+this_page_url]]#shopCart" method="post"> <fieldset> <div style="text-align:right;"> <a href="[[+empty_url]]" id="shk_butEmptyCart">Mandje legen</a> </div> <table width="100%"> <colgroup> <col width="40%" /> <col width="25%" /> <col width="25%" /> <col width="10%" /> </colgroup> <tbody> [[+inner]] </tbody> </table> <div style="text-align:right;"> Verzending: [[+delivery_name]] ([[+delivery_price]] [[+currency]]) </div> <div style="text-align:right;"> totaal bedrag: <b>[[+price_total]]</b> [[+currency]] </div> <noscript> <div><input type="submit" name="shk_recount" value="recalculate" /></div> </noscript> <div class="cart-order"> <a href="[[+order_page_url]]" class="button hollow" id="shk_butOrder">Betalen</a> </div> </fieldset> </form> </div> </div>
And as I understand this is only for the propertyset that is used, in my case 1 and 2 are the same. I changed them to 1 and to to 2 with the same results.
this is my snippet call: [[!Shopkeeper3@sk-nl]]
this is my propertyset:
allowFloatCount No animCart Yes cartRowTpl @FILE shopCartRow.tpl cartTpl @FILE shopCart.tpl changePrice Yes className modResource counterField No counterFieldCart Yes currency EUR debug Yes excepDigitGroup Yes fieldPrice product.price flyToCart helper fromParentHeight 1 fromParentList goToOrderFormPage No groupBy hideOn jsScript 1 lang nl noConflict Yes noCounter No noJQuery Yes noLoader No orderDataTpl @FILE orderData.tpl orderFormPageId 6430 packageName pluralWords processParams 0 prodCont div.shk-item savePurchasesFields style default tplPath ../core/components/shopkeeper3/elements/chunks/nl/
And this are my system settings (set in context settings its a multy languange site)
shk3.currency shk3.currency EUR — shk3.currency_default shk3.currency_default 1 — shk3.first_status shk3.first_status 1 — shk3.mail_contacts_row_tpl shk3.mail_contacts_row_tpl mailContactsRow — shk3.mail_order_data_row_tpl shk3.mail_order_data_row_tpl orderDataRow — shk3.mail_order_data_tpl shk3.mail_order_data_tpl orderDataOuter — shk3.property_sets shk3.property_sets sk-nl,sk-nl
I have a problem when I add a product to my cart, i see the product fly in the cart and the cart is filled.
when I refresh the page (f5) then the cart is empty, when i add another product the BAM the items are in the basket again, on refres all gone again, BUT when I switch off js and add them directly while in the same session I get 2 differend cart contents, one when I use ajax and another when I refresh the page!
try it here: https://tinyurl.com/shopkeeper3
I use the same propertyset for ajax and non ajax.
On my test site it works as expected:
So I was wondering, How does shopkeeper know what cart to use? how is the cart stored?
And what could cause this issue?
Ok, thank you, I tryed that also but then I see I need to set a setting:" shk3.property_sets " what property set to use for Ajax?
I hope that we can start an English part here, I do not speak Russian, and used google translate a lot to get more info on this modx extra,
I am trying to use Shopkeeper more flexible and on multiple contexts. I see some limitations.
When updating the cart or when you add a product using ajax, shopkeeper only looks if there is a propertyset. I used this snippetcall:
[[!Shopkeeper3? &orderFormPageId=`46` &lang=`en` ]]
This works on init but not when the basket is updated, then these settings are ignored, maybe these options could be transfered to the ajax call?