Show Posts


Messages - dvagner

Pages: [1] 2
1
Support / Re: FastCheckout Error: Unexpected error has occurred.
« on: June 05, 2020, 02:54:07 AM »
We need more information how replicate issue.
Store settings, product properties, payments, shippings etc.

2
Support / Re: FastCheckout Error: Unexpected error has occurred.
« on: June 04, 2020, 02:31:13 AM »
Hello, please provide more details:
what led to this bug, enabled shippings, enabled payments

when you insert code or log message please use "Insert Code" in forum message editor.

3
Tips and Tricks / Re: How to add customerid to email templates
« on: June 01, 2020, 09:54:36 AM »
You can manually update AMail class from 1.2.17 branch
and create hooks.
For example:
Code: [Select]
public function onAMail_ProcessData($method, $params)
    {
        $that = &$this->baseObject;
        if ($this->baseObject_method === 'setTemplate' && $params['text_id'] === 'admin_new_transaction_notify') {
            $that->setPlaceholder('user_id', 'Jon');
        }
    }

4
Tips and Tricks / Re: How to add customerid to email templates
« on: June 01, 2020, 01:54:16 AM »
To add additional data to email template, you should:
1. Add to php code variables with needed data. (Hooks, direct change)
2. Add variables to "Allowed Placeholders".


5
New Features Discussion / Re: Search by Model
« on: May 21, 2020, 01:46:43 AM »
Hi,
I think the best solution to searching in the Abantecart is ElasticSearch Extension https://marketplace.abantecart.com/elastic_search

For default search you should add hook to enable search by model.

6
General Support / Re: Maximum Length of custom field
« on: May 06, 2020, 03:09:57 AM »
You can change tpl (for custom JS validation) or create extension with hook's to add php validation.

7
General Support / Re: Maximum Length of custom field
« on: May 05, 2020, 05:06:43 AM »
Verify start after click on "Add to Cart"
On typing used html attribute 'pattern'
<input type="text" name="option[354]" id="option354" value="" placeholder="" class="form-control " data-attribute-value-id="" pattern="^.{1,100}$" title="Some error text">

8
General Support / Re: Maximum Length of custom field
« on: May 05, 2020, 02:22:09 AM »
I try your regex - they work fine.
Provide more information: Abantecart Version, browsers for test, have you errors in browser console? errors in abantecart log or php? etc.

9
Support / Re: Problem with firewall?
« on: May 01, 2020, 01:48:52 AM »
Login on your Router and check firewall rules and black list (if exists)
Some routers can block sites by keyword from own library.

10
Customization help / Re: Need to limit a Category to a Customer Group
« on: April 22, 2020, 02:10:18 AM »
Best way - create extension with hook's in Storefront Category controller.
To prevent direct access to product you need hooks:
 Storefront Product controller, Storefront Search controller, Block controllers (if used)

Doc: https://abantecart.atlassian.net/wiki/spaces/DOC/pages/17793156/Hooks

11
Support / Re: Error on 2nd language
« on: April 16, 2020, 04:36:25 AM »
1. Clear cache.
2. If Step1 not solved your issue -   Show result of query

SELECT DISTINCT table_name
                FROM information_schema.columns
                WHERE column_name = 'language_id' AND table_schema='DB_DATABASE';

Where DB_DATABASE - your DB name

12
General Support / Re: Zip code min length
« on: January 27, 2020, 01:22:32 AM »
You can create extension with Hook method like this:

public function onModelAccountCustomer_ValidateData()
{
$that = $this->baseObject;
 if ($this->baseObject_method !== 'validateRegistrationData') {
            return;
  }
if (!$that->request->is_POST()) {
return;
}
if ((mb_strlen($that->request->post['postcode']) !=5)) {
            $that->error['postcode'] = $that->language->get('error_postcode');   //Your custom error message here
     }
}

13
Hello,
You can use https://github.com/laracasts/PHP-Vars-To-Js-Transformer
or any i18n for JS solution.

14
Support / Re: One order per customer
« on: October 18, 2019, 02:29:34 AM »
You can check exists orders in Cart Controller Hook: storefront/controller/pages/checkout/cart.php:26
for check email registration create hook for Registartion Controller: storefront/controller/pages/account/create.php:24

15
Check Database Connection settings

Pages: [1] 2

Powered by SMFPacks Social Login Mod