shopify continue shopping button
$10-30 USD
Pago na entrega
I wanted my continue shopping button to go to the " last collection viewed" so I followed this manual -- >>> [login to view URL]
works fine when a customer is browsing throw the store and goes from a specific collection to --> product to --> cart. BUT it doesn't work when a customer arrives from a Facebook ad that goes directly to a specify PRODUCT page.
I need it to work when a customer arrives to a product page directly from a facebook ad and no only when he has been in the collection page.
button:
<a class="btn--secondary" href="" id="continue-shopping">{{ 'cart.general.continue_shopping' | t }}</a>
script:
<script>
if(Storage !== undefined) {
{% if template contains 'collection' %}
[login to view URL] = "{{ [login to view URL] }}";
{% endif %}
if([login to view URL] === undefined){
[login to view URL] = "/collections/all";
}
{% if template contains 'cart' %}
[login to view URL]("continue-shopping").href = [login to view URL];
{% endif %}
}
</script>
ID do Projeto: #16559645
Sobre o projeto
8 freelancers estão ofertando em média $31 nesse trabalho
Hello Sir/Mam, Looking for Official Shopify Certified Expert ? MS Web Designer - As an economical Official Shopify agency, MS Web Designer is here with a sheer objective – “Ecommerce for All”. We are Shopify ex Mais