Kévin
But nothing happened after the click. Of course, the page is reloaded but nothing in the cart.
Kévin
Except the tpl cart_empty with just:
Kévin
<div data-commerce-cart="[+hash+]"> <p>[%cart.no_items%]</p> </div>
Kévin
But only <p></p> because [%cart.no_items%] is not configure and I don't know where I can do this
Marc
maybe with [[if?]] if count =0 then [%cart.no_items%] is blabla
EVO bot Лёшка
Marc
[[if? &is=`[%cart.no_items%]:=:0` &then=`no products` &else=`[%cart.no_items%]`]]
Marc
maybe in lang files
Marc
https://shop.contentblocks.nl/cart
Marc
All I have there is: [!Cart &instance=`products` &theme=`` !]
Marc
'noneTPL' => '@FILE:' . $theme . 'cart_empty',
Multi
change "a" on button type="submit"
Kévin
I though it was a default language, but nothing. So, where I configure the language?
Marc
assets/plugins/commerce/templates/front/ cart_empty.tpl
Marc
assets/plugins/commerce/lang
Kévin
https://shop.contentblocks.nl/cart
Great this! I understand why nothing happened: I don't see in the documentation page that I have to use <script src="/assets/plugins/commerce/js/commerce.js?0.6.8"></script>
Kévin
assets/plugins/commerce/lang
I found this indeeed. But where I configure: english or french or what else
Marc
Not sure. M
Marc
If you copy english and rename to french-utf8 you should see something
Kévin
I try
Dmytro
in 3.0 all lang : en fr
Marc
Or translate and put a pull request on Github
Marc
Are you on 3.0 Kevin?
Marc
You have to do some settings on the Commerce Plugin
Marc
I think that <script will be put automatic on the page
Marc
Ah oke
Kévin
Marc
I think you have to set the plugin Commerce. Tab config
Marc
The IDs need to be correct and you also need the product (detail) pages. Set a TV price.
Kévin
Marc
Product templates IDs
Marc
You can have a look in my demo if you like.
Marc
Its not much work done on it but it has some basics
Marc
francais-utf8
Kévin
You're demo is great. Can I have the access to the manager or at least to eah template?
Kévin
I found my mistake for to add to the cart. But still nothing with the language.
Marc
pm
Kévin
Marc you're help was very helpful
Kévin
thanks
Marc
What can be the issue with FormLister? All fields are oke but still get theerror: Message could not be sent.
EVO bot Лёшка
What can be the issue with FormLister? All fields are oke but still get theerror: Message could not be sent.
Читай документацию ©(Pathologic) http://docs.evo.im/03_extras/formlister.html
Anonymous
Доработка курса валют Mod X Evo ТЗ по ссылке Пишите в лс предложения по ценам и срокам. Спасибо.
Marc
https://github.com/Pathologic/FormLister/blob/master/assets/snippets/FormLister/core/lang/russian-UTF8/form.inc.php#L18
Marc
Could not instantiate mail function. Array ( [mb_language] => UNI [encode_header_method] => [PluginDir] => /www/manager/includes/controls/phpmailer/ [Priority] => [CharSet] => UTF-8 [ContentType] => multipart/alternative [Encoding] => base64 [ErrorInfo] =>
Marc
Guess I need [(email_method)] --> SMTP ?
Timoffey
<img src="{{\Helper::phpThumb($item['picture'], 'w=180,h=180')}}
2frags
Guess I need [(email_method)] --> SMTP ?
Try an older version of FormLister. I run into same trouble. Version 1.5.1 or so must fix this.
Marc
Thanks, will try that too. debugmail.io works as SMTP host but rather have it working normally
Marc
1.14.0 seems to be the latest 😮
Marc
https://github.com/Pathologic/FormLister/releases
Marc
Ah, it seems to work when the sender_email is from the same domainname 🙂
Marc
My [(emailsender)] was "custom" and not from the same domain
Kévin
Hi again! I discover multifields and it's amazing, so powerfull. Just one thing: the path /lang/ doesn't exist. Someone know how to create the files inside?
Dmytro
Can you send full error ?
Timoffey
<img src="{{\Helper::phpThumb($item['picture'], 'w=180,h=180')}}
Почему не получается обратиться к классу Helper? его надо импортировать?
Timoffey
Как мне в шаблонах зажать картинки?
Timoffey
Не, в 2
Timoffey
Я пытался и через runSnippet делать и через @evoParser
Timoffey
Но у меня никак не получилось
Dmytro
Не, в 2
В 2 этого нету ж еще
Timoffey
А, а как в 2 сделать? Чтоб в итераторе блейда?
Dmytro
$modx->runSnippet(‘phpThumb
Иван
Ребята, привет. Подскажите у нас есть доска объявлений?
Иван
Или аналог какой-нибудь
Aleksandr
объявления тут так швыряют с задачами
Иван
сервис или решение в коде?
Модуль думаю готовый или что-то похожее, чтобы потом под задачи переделать.
Dmytro
http://modx.im/blog/addons/2883.html
Иван
@Dmi3yy реализовывали этот модуль в 1.4?
Dmytro
Должен работать
Timoffey
<img src="{{$item['tv.picture']}}" title="{{$item['pagetitle']}}" alt="{{$item['pagetitle']}}"> превращается в <img src=«{{$modx->runSnippet(‘phpthumb’, [‘input’=>$item[’tv.picture’], ‘options’=>’w=200,h=200’])}}» title="{{$item['pagetitle']}}" alt="{{$item['pagetitle']}}"> Верно?