maciey_b

1

votes
0

answer
29

views

SugarCRM 7.9 - removing custom fields while uninstalling package

I've created installable package, where I create some custom user fields through my manifest.php: $installdefs = [ 'custom_fields' => [...], [...] ] I've added post uninstall too: 'post_uninstall' => [ [ 0 => '/post_uninstall.php' ] ] In my post_uninstall.php I've added: $fieldsByModule = array( 'U...
maciey_b
1

votes
1

answer
162

views

Shopify - get customer email from customer object? (js - scripttag)

I need to create a cookie with clientID(need email to create it), when customer register/login on shopify shop. How can I get email during register/login? Is it possible to get it from Customer object(js injected via script-tag) and how? The only possible way I see at the moment is to create onclic...
maciey_b
1

votes
0

answer
119

views

PrestaShop module front controller

My prestashop module has couple of moduleFrontControllers and everything seems to work fine, but: PrestaShop >= v1.6.1.20 (PHP >= 5.6.37) on my local dev_platform and on production test platform - everything works fine. Couple of clients use it without any problems too. (example front controller url...
maciey_b
1

votes
1

answer
466

views

Prestashop - REST endpoints for my module

I'm developing Prestashop module, it will export customer data and orders, it will contain hooks for customer synchronization, cart and order events - generally module which will be an integration with CRM-like service. My module contains it's own views, made in vue.js - single page, async. There ar...
maciey_b
2

votes
1

answer
79

views

SugarCRM Enterprise 7.9.2.0 - SugarQuery just won't work. [php]

Ok so I'm trying to use SugarQuery for extracting data from SugarCRM in my custom plugin. Sugar is installed locally. When I use Sugar DbManager I'm able to get data from DB as shown below, my $result contains first_name: $GLOBALS['db']; $db = DBManagerFactory::getInstance(); $query = 'SELECT first_...
maciey_b
1

votes
1

answer
55

views

SugarCRM7.9 - instaling composer packages via module manifest?

I've built custom module for SugarCRM7, but I need to use custom libs (guzzlehttp and psr/http-message) which are not present in SugarCRM. Is there any way to add my own composer.json to installable package so the composer file would be executed after module install or maybe should I do it using man...
maciey_b