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
if (!empty($products_for_template)) {
foreach ($products_for_template as $key => $product) {
$products_for_template[$key]['description] = substr($products_for_template[$key]['description], 0, 100);
}
}
Configuration is ok, now I need to check files, but can't connect to your FTP
We care about your privacy.Use the list below to configure your privacy settings
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information. Read more about cookies in our Privacy Policy
The collection of information about your use of the website used to measure, understand, and report on your usage of the service, only in case of some error appearing. All collected information will be automatically removed from our server every month or immediately after your request.
Allow us to collect details to access your server and your website admin panel. This information will be requested from you only if it will be really necessary to provide requested by you an action like fix a bug or configure website. All provided information will be removed from our server by your request.
Please take a moment...
to read about the Privacy Policy we use with this website. Click "Privacy Options" to configure how we can interact with you and your device or computer.
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