<script type="text/javascript">
{% if customer %}
{% assign customerid = '"<?php echo base_url('checkout?id='.$postdata['cart_id']); ?>' | append: '&customer=' | append: customer.id | append: '"' %}
{% else %}
{% assign customerid = '"<?php echo base_url('checkout?id='.$postdata['cart_id']); ?>' | append: '"' %}
{% endif %}
var checkouturl = {{customerid}};
window.location.replace(checkouturl);
</script>
Shopify, Shopify Apps, Magento, WordPress, Codeigniter, Joomla, Big Commerce | PHP
Monday, 24 June 2019
How to concat string and variable in Liquid Shopify in PHP with proxy URL
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment