• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 14.10.20, 21:36
  • Opened by: Corentin POSTIC
  • Closed by: Fred
  • Closed on: 03.11.20, 19:06
  • Reason: Closed
  • Comment: Glad to help!

Ticket #19450 - Change link of cart icon AMP

Hello,

I would like to change the link of the div.c-out-btn (the little cart on bottom right of the screen) to the cart instead of the order process.
How can I do it ?

Thanks a lot

Comments

Fred 15 Oct 2020, 10:17

Open the file
/themes/alysum/templates/mobile/_partials/footer-bottom.tpl
find the line

<a href="{url entity='module' name='pk_amp' controller='checkout' relative_protocol=false}" class="c-out-btn" role="button" tabindex="0">

and change to

<a href="{url entity='module' name='pk_amp' controller='cart' relative_protocol=false}" class="c-out-btn" role="button" tabindex="0">
Corentin POSTIC 02 Nov 2020, 18:00

I don’t have this line..

But I have this:

<div class=”c-out-btn”{if $amp.cart.products_count == 0} hidden{/if} [hidden]=”cartList.info[0].products_count == 0”>

<a href="{url entity='module' name={$amp.global.name} controller=$btnlink relative_protocol=false}" class="c-out-btn" role="button" tabindex="0">
  <svg class="svgic"><use xlink:href="#si-checkout"></use></svg>
  <span [text]="cartList.info[0].products_count">{$amp.cart.products_count}</span>
</a>

</div>

Should I change controller=$btnlink by controller=’cart’ ?

Fred 02 Nov 2020, 23:44

I see.
Go to AMP module settings and find an option “Quick Checkout Button Page” in the Footer tab to select a link for that button

Corentin POSTIC 03 Nov 2020, 18:58

Oh I’m really sorry, I didn’t see this option …
Thanks anyway :)

Fred 03 Nov 2020, 19:06

no problem