Show Posts


Messages - dvagner

Pages: 1 2 3 [4] 5
46
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.

47
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.

48
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">

49
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.

50
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.

51
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

52
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

53
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
     }
}

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

55
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

56
Check Database Connection settings

57
Templates / Re: product list add new collumn
« on: August 13, 2019, 01:48:22 AM »
You can hook ControllerCommonListingGrid via extension and change: $this->data[''colNames'']  $this->data[''colModel'']

58
Customization help / Re: send welcome email error
« on: July 18, 2019, 02:47:41 AM »
Provide more details in which file made changes in which place, what information in the logs. Check if your code is running

59
General Support / Re: Mail sending issues
« on: July 12, 2019, 01:41:25 AM »
Check file permissions

60
Support / Re: Unknown storage engine 'InnoDB' Error No: 1286
« on: April 30, 2019, 02:31:24 AM »
check your my.cnf parameter default-storage-engine

https://dev.mysql.com/doc/refman/5.5/en/storage-engines.html

Pages: 1 2 3 [4] 5

Powered by SMFPacks Social Login Mod