現在、商品ページの「カートに追加」を押下すると、チェックアウト画面に遷移します。
これをカートページにと飛ぶように変更したいと考えております。
ご教示いただけますと幸いです。
よろしくお願いいたします。
▽product-form.liquid
{% if type == 'block' and block.settings.show_payment_button %}
{% assign show_payment_button = true %}
{% elsif section.settings.show_payment_button %}
{% assign show_payment_button = true %}
{% elsif show_payment_button_quickshop %}
{% assign show_payment_button = true %}
{% else %}
{% assign show_payment_button = false %}
{% endif %}
{% assign variant = product.selected_or_first_available_variant %}
{% form 'product', product %}
{% if product.available %}
{% if settings.display_inventory_left %}
{% if variant.inventory_management != blank and variant.inventory_quantity > 0 %}
{% capture items_left_text %}
{% if variant.inventory_quantity == 1 %}
{{ 'products.product.items_left_count.one' | t }}
{% else %}
{{ 'products.product.items_left_count.other' | t }}
{% endif %}
{% endcapture %}
{% if variant.inventory_quantity <= settings.inventory_threshold %}
{{ variant.inventory_quantity }} {{ items_left_text }}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% if product.options.size > 1 %}
{% elsif product.options.size == 1 and product.variants.size > 1 or product.options.size == 1 and product.options[0] != "Title" %}
{% else %}
{% endif %}
{% if settings.product_form_style == "swatches" and product.variants.size > 1 or settings.product_form_style == "swatches" and product.options[0] != "Title" %}
{% for option in product.options %}
{% render 'product-swatch',
option: option,
product: product
%}
{% endfor %}
{% endif %}
{% if settings.display_product_quantity and product.available %}
{% endif %}
{% if settings.cart_action == 'reload_page' %}
{% elsif settings.cart_action == 'redirect_checkout' %}
{% endif %}
{% capture add_to_cart_label %}{% if collection_handles contains 'pre-order' %}{{ 'collections.general.pre_order' | t }}{% else %}{% if product.available %}{{ 'products.product.add_to_cart' | t }}{% else %}SOLD OUT{% endif %}{% endif %}{% endcapture %}
{% if show_payment_button %}
{{ form | payment_button }}
{% endif %}
{% endform %}