shopify continue shopping button

Encerrado Postado há 6 anos Pago na entrega
Encerrado 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>

HTML JavaScript PHP Shopify Modelos para Shopify

ID do Projeto: #16559645

Sobre o projeto

8 propostas Projeto remoto Ativo em há 5 anos

8 freelancers estão ofertando em média $31 nesse trabalho

webcast

Hello shopybay, I am good at : 1. WordPress web development 2. PSD to HTML 3. Responsive web development 4. Graphics Designing 5. Photoshop 6. PHP 7. html + CSS Styling 8. js & jQuery. you can check my wo Mais

$25 USD em 1 dia
(146 Comentários)
5.9
AuspCluster

A proposal has not yet been provided

$15 USD em 1 dia
(9 Comentários)
2.1
theshopifyexpert

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

$20 USD in 3 dias
(2 Comentários)
0.0