Show terms and conditions on checkout if enterprise has an associated PDF file

This commit is contained in:
Luis Ramos
2020-08-17 22:27:49 +01:00
parent 16a475d8af
commit b9511d4f07
3 changed files with 6 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
= render "checkout/shipping", f: f
= render "checkout/payment", f: f
= render "checkout/already_ordered", f: f if show_bought_items?
= render "checkout/terms_and_conditions", f: f
%p
%button.button.primary{type: :submit}
= t :checkout_send

View File

@@ -0,0 +1,2 @@
%p
= t('.message_html', terms_and_conditions_link: link_to( t( '.link_text' ), current_order.distributor.terms_and_conditions.url, target: '_blank')) if current_order.distributor.terms_and_conditions.present?

View File

@@ -1224,6 +1224,9 @@ en:
already_ordered:
cart: "cart"
message_html: "You have an order for this order cycle already. Check the %{cart} to see the items you ordered before. You can also cancel items as long as the order cycle is open."
terms_and_conditions:
message_html: "By placing this order you agree to the %{terms_and_conditions_link}"
link_text: "Terms of Service"
failed: "The checkout failed. Please let us know so that we can process your order."
shops:
hubs: