• Closed by: Fred
  • Closed on: 30.05.20, 00:01
  • Reason: Closed
  • Comment: Glad to help!

Ticket #18103 - AMP how to remove stuff

how can i remove the messege field in shipping step of checkout ? (see image)
and how can i remove the promocode in cart ? (see image)

Attachments:

cartpromo.PNG (63.9 KiB)

Comments

Fred 27 May 2020, 12:33

Hi, Thomas.
I also has to find it to let you know where it is.
I recommend you to use code editor tool what allows to to find in the code any theme element you need. For example this one https://code.visualstudio.com

Thomas Blauenfeldt 27 May 2020, 12:41

yea i also did that for other stuff.
I found code for shipping messege and removed it but dosent seam to reamove it in frontend :s
image for code location

Attachments:

remove.PNG (88.5 KiB)
Fred 27 May 2020, 23:31

please check this file /themes/alysum/templates/mobile/customer/_partials/order-messages.tpl

Thomas Blauenfeldt 28 May 2020, 07:49

i removed everything in that file now, but both fileds is still there ?

Fred 28 May 2020, 17:04

maybe a cache issue?
Try CSS

.order-options {display:none}
Thomas Blauenfeldt 28 May 2020, 17:07

no its not a cache issue, you can also see it in frontend ?

Fred 28 May 2020, 17:08

yes, I can, try css

Thomas Blauenfeldt 28 May 2020, 17:10

that seams to work.. :) How about the promo code in https://test.svane-el.dk/da/module/pk_amp/cart do you also have a way for that ?

Fred 28 May 2020, 17:20

the same way, try CSS

Thomas Blauenfeldt 28 May 2020, 17:50

is using hide with css not bad practice, and bad performance wise ?

Fred 28 May 2020, 17:54

yes, would be better to remove it from code

Thomas Blauenfeldt 28 May 2020, 17:54

and why is that not possible ?

Fred 28 May 2020, 17:57

I have no idea, that question is definitely not about the theme

Thomas Blauenfeldt 28 May 2020, 17:59

its the theme that adds it tho ?

Fred 28 May 2020, 20:21

that is so small piece of html so you can hide it with CSS with no problems

Thomas Blauenfeldt 29 May 2020, 08:44

okay i understand, ticket can be closed thanks :)