Originally posted by Matt Zimmermann
View Post
Announcement
Collapse
No announcement yet.
Miva 10.03
Collapse
X
-
-
Originally posted by Jim Cockerham View PostIs the the new feature "Edit Product Attributes on the Basket Page" working for most of you? I followed the instruction here: https://github.com/mivaecommerce/rea...ows/issues/127 . I am only using single attributes for my products and I am seeing the "Edit" button on the BASK page , but it does nothing. Does it only work if you have multiple attributes? I have gone over the instructions twice and it all looks good.
I have updated the instructions. There are three areas that need to be updated, edit-basket-attributes.js, Basket -> Basket Contents, and Basket -> Content.
Leave a comment:
-
Hi Jim,
I am working through a potential fix for that and will have more details a little later today.
Leave a comment:
-
Originally posted by Matt Zimmermann View PostHi Jim,
Under User Interface -> Templates -> Pages -> BASK -> Contents, replace the MVT:IF statement with this:
Code:<mvt:if expr="l.settings:group:product:productsubscriptionsettings:enabled OR miva_array_elements(l.settings:has_attributes) GT 0">
Leave a comment:
-
Kent Multer The function to apply shipping, payment or calculate tax to an order it this one:
https://docs.miva.com/json-api/funct...lculatecharges
In most cases, you're going to be calling it from a Miva page. In that case you use the helper function we provide in Runtime.js here:
Code:Runction Runtime_CalculateCharges( shipping_method, payment_method, callback, delegator ) { return AJAX_Call_JSON( callback, 'runtime', 'Runtime_CalculateCharges', { ShippingMethod: shipping_method, PaymentMethod: payment_method }, delegator ); }
Here is an example of its usage:
Code:Runtime_CalculateCharges('flatrate:overnight', 'check:check', function(response) { //update basket contents on page to reflect changes });
Leave a comment:
-
Hi Jim,
Under User Interface -> Templates -> Pages -> BASK -> Contents, replace the MVT:IF statement with this:
Code:<mvt:if expr="l.settings:group:product:productsubscriptionsettings:enabled OR miva_array_elements(l.settings:has_attributes) GT 0">
Leave a comment:
-
Originally posted by Matt Zimmermann View Post
Hi Jim,
Under User Interface -> Templates -> Pages -> BASK -> Basket Contents, insert
Code:<mvt:assign name="l.settings:has_attributes" value="0" />
Code:<mvt:assign name="g.basket_subtotal" value="0" />
Leave a comment:
-
Originally posted by Jim Cockerham View Post
Hi Matt, thank you, it does now seem to work. There is a quirk though. The edit button is shown for every product, whether or not the product has attributes. While the edit button is displayed, it does nothing if the product does not have attributes. However if there is a product in the cart that does have attributes and a product that does not have attributes the edit button will work for both products.
Under User Interface -> Templates -> Pages -> BASK -> Basket Contents, insert
Code:<mvt:assign name="l.settings:has_attributes" value="0" />
Code:<mvt:assign name="g.basket_subtotal" value="0" />
Leave a comment:
-
Originally posted by Brennan View PostI'll add the links to that page but here is the new function:
https://docs.miva.com/json-api/funct...ethodlist_load
No hurry; I don't have an immediate need for this functionality. Being a writer as well as a programmer, I tend to notice these things; and I figured I should bring it to someone's attention.
Thanks --
Leave a comment:
-
Originally posted by TheTeaTable View PostBTW Kent, I sent you an email last week.
Leave a comment:
-
Originally posted by Matt Zimmermann View PostHi Jim,
Try creating an item with:- Code: runtimejs
- Module: cmp-mv-runtimejs
Leave a comment:
-
Originally posted by Kent Multer View PostI looked at that page, and some of the pages that it links to. I found a few mentions of viewing and updating the selected payment method, but no details on how to actually do it. Sorry if I'm missing something ...
Thanks --
BTW Kent, I sent you an email last week.
Leave a comment:
-
Hi Jim,
Try creating an item with:- Code: runtimejs
- Module: cmp-mv-runtimejs
Leave a comment:
-
Originally posted by Matt Zimmermann View PostHi Jim,
Looks like I missed one step in that documentation. Apply the "runtimejs" item to the BASK page.
Thanks
Leave a comment:
-
Hi Jim,
Looks like I missed one step in that documentation. Apply the "runtimejs" item to the BASK page.
Leave a comment:
Leave a comment: