The current default template is rather poor. I propose adding two new items to this.
A checkout link and a quantity added to the cart.
I've created a patch to add both of these basic functions. The checkout url is pretty simple. The quantity ensures that it won't say '1 items'.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | improve-base-template-2.patch | 3.57 KB | derekcresswell |
Comments
Comment #2
subhojit777Thank you. I have added some suggestions:
Use
@var float|nullUpdate this, so that
#checkout_urlis added only ifcartproperty is not null.`#quantity_added` should be added only if `quantity` property is not null.
Use
{% trans %}{{ quantity_added }} items added to your cart{% endtrans %}for better translation supportComment #3
subhojit777Use
@var \Drupal\commerce_order\Entity\OrderInterface|nullComment #4
derekcresswell commentedHere you are
Comment #5
derekcresswell commentedApologies, I must not be choosing the right test version.