Fabian Christen

Fabian Christen

С нами с 08 марта 2017; Место в рейтинге пользователей: #127

MODX DIGITAL SNOW UP 2021

MODX DIGITAL SNOW UP 2021
Prepare for the MODX Digital SnowUp on March 4th and 5th 2021!

Yes, that's right!
In less than a month, the MODX Digital SnowUp begins. It has obviously been a long time since the last MODX Community event, and many have been wondering what has been going on with MODX and Co.
Let this event give us a chance to catch up and reboot!
Save the evening of March 4th and the day of March 5th if you can.
More Info coming soon!

www.meetup.pixmill.ch
https://vi.to/hubs/modx-meetup

Fabian Christen
05 февраля 2021, 11:23
modx.pro
3
1 767
+22

Minishop2 and Office: additional fields (gender, building, fullname)

Dear MODX Community,

I some questions about using fields in minishop2 with the Extra «Office».

1. user field «gender»
I added a select field for the gender of a customer. I want to use it for the salutation (Mr. / Ms.).
It works within the Office form chunk (tpl.Office.Profile.form)
<!-- gender: {$gender} -->
    <div class="form-group">
        <label class="col-md-2 control-label" for="gender">Anrede</label>
        <div class="col-md-2">
            <select class="form-control" name="gender" id="gender">
              <option value="0">-- Anrede --</option>
              <option value="2" {if $gender == "2" }selected{/if}>Frau</option>
              <option value="1"{if $gender == "1" }selected{/if}>Herr</option>
            </select>
        </div>
    </div>
    <!-- end gender -->
But on registration (in the chunk «tpl.Office.auth.login» it does not save the gender. How do I activate it?

2. Gender in a order of minishop2
How can I add the field «gender» (see above) in the address fields in a order? Chunk «tpl.msOrder».

3. Email addresses with errors
Sometimes new customers do write their email address with errors. Is there a way to add a second field for the email address where they have to enter the email address again to verify it?

thank you for your help.
Fabian
Fabian Christen
03 июня 2019, 13:23
modx.pro
1
993
+1

minishop2 - Minimum order amount: possible?

Is there a way to set a minimum order amount in minishop2?
I want that customers must reach a minimum amount before they can send a order.

Thank you for your help.
Fabian
Fabian Christen
21 января 2019, 16:19
modx.pro
736
0

Extra Office: Randomly blocked users

Hi all,

I'm using the Extra Office along with minishop2.

Sometimes users are blocked without a reason. There are 0 failed logins.


The error log mentions sometimes entries like that
(ERROR @ /home/tabakfab/public_html/core/components/office/controllers/auth.class.php : 495) [Office] unable to login user ronald@xxxxyy.ch. Message: You are blocked by an administrator.
But no administrator ever blocked a user.

Any idea why this is happening?

Best
Fabian
Fabian Christen
17 декабря 2018, 19:13
modx.pro
732
0

Minishop2 - msOrder - Флажок для условий

Hello MODXers

как я могу включить флажок как «обязательный» в Chunk tpl.msOrder?
(How can I add a checkbox into tpl.msOrder and make it required?)

<input id="agb" type="checkbox" name="agb" value="agb" >
Thank you
Fabian Christen
02 октября 2018, 10:01
modx.pro
1 115
0

Minishop2: german umlauts (ä, ö, ü)

When saving a new contact/customer german umlauts (ä, ü, ö) are filtered out.
Can I change this?
Is it in the class
msorderhandler
, function
validate($key, $value)
?

case 'receiver':
                // Transforms string from "nikolaj -  coster--Waldau jr." to "Nikolaj Coster-Waldau Jr."
                $tmp = preg_replace(
                    array('/[^-a-zа-яёЁ\s\.]/iu', '/\s+/', '/\-+/', '/\.+/'),
                    array('', ' ', '-', '.'),
                    $value
                );
                $tmp = preg_split('/\s/', $tmp, -1, PREG_SPLIT_NO_EMPTY);
                $tmp = array_map(array($this, 'ucfirst'), $tmp);
                $value = preg_replace('/\s+/', ' ', implode(' ', $tmp));
                if (empty($value)) {
                    $value = false;
                }
                break;
Thank you for your help.
Fabian Christen
29 июня 2018, 13:18
modx.pro
856
0

Minishop2 + msOptionsPrice: strange outpt

Hi all!

I use Minishop2 (2.4.12) and msOptionPrice (2.5.8-beta).

With
[[!msCart? &tpl=`pix.msCart`]]
and pix.msCart chunk
...
 {if $product.options?}
       <div class="small">
           {$product.options | join : '; '}
      </div>
{/if}
...
product options output is as shown in the image.
How can I fix this?

Best regards
Fabian
Fabian Christen
20 июня 2018, 08:30
modx.pro
884
0

Minishop2 - msOption add field style "color" or "tags"

Adding a field to Minishop2 I followed this article:
Docu

But I have problems to get it work like the option fields «color» or «tags».

Is
xtype: 'minishop2-combo-autocomplete',
wrong?
Or something in the map-file
, 'fieldMeta' => array(
        'material' => array(
            'dbtype' => 'text',
            'precision' => '255',
            'phptype' => 'string',
            'null' => true,
            'default' => NULL
Every help is appreciated.
Fabian
Fabian Christen
12 июня 2018, 12:50
modx.pro
1 291
+1

Extra Office: how to save a extended field?

Hi all,

The documentation here explains how to show a extended field of a user.

But how can I save it the first time a user is filling a form?

[[!Office?
            	&action=`Auth`
            	&groups=`Customers`
            	&loginResourceId=`3`
            	&logoutResourceId=`22`
            	&HybridAuth=`0`
            	&profileFields=`username:50,email:50,fullname:50,mobilephone:12,address:20,city,zip,extended[company]`
            	&tplLogin=`shop.Office.auth.login`
            	&tplRegister=`shop.Office.auth.register`
            	&tplLogout=`shop.Office.auth.logout`
            	&tplActivate=`shop.Office.auth.activate`
            	&loginResourceId=`45`
            	
            ]]
and in the form:

<input type="text" name="extended[company]" placeholder="" class="form-control" id="extended.company" value=""/>

does not work.

Do I have to write a plugin that save this extended field?
Fabian Christen
14 марта 2018, 17:19
modx.pro
1 633
+1

MODX Meetup @ Grünenwald, Switzerland

Date: February, 8th — 11th 2018
Location: Gasthaus Grünenwald, Grünenwald 1, 6390 Engelberg, Switzerland

The Gasthaus Grünenwald is situated outside the mountain village of Engelberg. A quite famous ski ressort in Switzerland. Located centrally, about 30 kilometres from Lucerne.

It was built a 100 years ago an run, since 20 years, by some music addicted guys and gals. A lot of bands come here to rehearse, but now we want to invite MODX addicts for a few days of tech and snow.
Fabian Christen
06 декабря 2017, 02:02
modx.pro
1 769
+1