- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 19.03.24, 18:15
- Opened by: Eric Houde
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #25420 - AMP
amp somnetime not forcing to load when i use a cellulaire.
sometime amp not loading and sometime yes.
what it can be ?
Comments
another how i can limit character in amp category product ?
if the name are more then 100 character then remove and add …
wich php page are located the AMP name of product in category page ?
Where i can found php side this var name inside \themes\alysum\templates\mobile\catalog\_partials\miniaturesproduct-miniature.tpl
I want to limit character to 100 to name
Hi, Eric.
I never seen the problem with AMP loading on mobile devices. As I can see now AMP is not loading at all, have you disabled it?
As for the file, you need this one /modules/pkamp/controllers/front/ajaxFilter.php
find getProducts method there
you need to add a loop and cut your description there, like this
Force loading AMP on Smartphones the button is on
strange, how he detect ?
and your code you give not working.
I want to limit character on the name of each product on this page
https://toutpourlafete.net/mobile/category/6-costumes-filles
You can also do that with CSS
not working, because the name of product when is long its going on 3 line
example:
costume harry
poter de luxe
pas cher
i want its remove character in the third line.
that why i need to use php to limit character
just give me the page and php string who give me .tpl name
I just added that css in my browser and it works just fine, please check https://take.ms/7mVpA
he only limit character to first line. if I have 3 line he will cut all to first lane
original name:
comuste halloween
harry poter
fir kid
I want:
comuste halloween
harry poter…
Original
you want:
Sorry, but I don't see a logic, how it should be cut. Both names are the same, the only difference is in three dots
Amp not forcing to use amp when you have mobile. What it can be ?
Please update credentials in your profile https://support.promokit.eu/myprofile to access to your Back-office to let me check you configuration
done you can look now
Configuration is ok, now I need to check files, but can't connect to your FTP