Show Posts


Messages - abolabo

Pages: [1] 2 3 ... 138
1
API Development / Re: store front api from extension
« on: January 09, 2025, 07:07:21 AM »
please post path to your controller or even part of main.php with it.
This route must be a name of your controller class

2
Templates / Re: checkout buttons
« on: January 07, 2025, 07:00:51 AM »
What versions of AbanteCart do you use?

I'm using AbanteCart v1.4.0 and php 8.3 version.

looks like some js-issues on your template.
Cannot to answer more detailed, this situation require more deep investigation and debug

3
Templates / Re: checkout buttons
« on: January 06, 2025, 09:50:49 AM »
What versions of AbanteCart do you use?

4
Tips and Tricks / Re: Database Performance for a lot of Products
« on: December 05, 2024, 03:39:01 AM »
PHP Version 8.3
AbanteCart Version 1.4.0
Template: Novator
Categories: 212 (17 parent categories, the rest childs)

The front end does ok and loads without resource spiking for the volume we get currently (4-5 concurrent users is generally the peak) but as soon as I start to edit a product in the admin section even with no current users hitting the site it causes the DB to spike in resources and often leads to 500 errors/timeouts for the front end.

can you run this sql-query in the same time with product editing?

SHOW PROCESSLIST;

It will show list of all queries and you can define what current sql-query overloads you DB.
But probably DB is not a cause.
Database connection can be expired because of some other thing's processing, for example, resizing of images. Resize works in the same http-request and connection to db is open at this point and waiting (php-lock).
You can try to enable debugging int the system->settings->system to see  timings.
Or you can use xdebug profiling (for advanced users).

Probably you have some huge images of product that cannot be resized quickly or your host disk is slow etc..
Or some 3dparty extension slow down your admin..
Also you can look into cache speedup side.. redis or memcached.

Some different causes can be there.. it's require investigation.

5
How-to questions / Re: Stripe Extension - Link Autofill
« on: November 29, 2024, 03:53:12 AM »
hi.
"Link" is a payment method.
AbanteCart Stripe Extension does not regulating payment methods. It's just displaying what stripe.js library returns.
I guess you should to check all your enabled payment method inside of your stripe account and try to turn off not needed

6
Development Help Needed / Re: Override or hook into AForm and AHtml
« on: November 13, 2024, 06:07:29 AM »
i mean like custom captcha

please take a note we added new property for all html-elements of form. it's a "template"
Since v1.4.1 you can set your own tpl file for captcha element inside your controller.

OR...
 you can create your own element class and place into your_extension/core directory:

Code: [Select]
class YourCustomCaptchaHtmlElement extends HtmlElement
{
    public function getHtml()
    {
        $data = [
            'id'       => $this->element_id,
            'name'     => $this->name,
...
        ];

        $this->view->batchAssign($data);
        return $this->view->fetch('form/your_captcha.tpl');
    }
}

Then look at line https://github.com/abantecart/abantecart-src/blob/master/public_html/core/engine/html.php#L899
You custom class will be called from it. Just use correct "type" array key ;-)
P.S. Do not forget include file with your class inside main.php of your extension.


7
Development Help Needed / Re: Override or hook into AForm and AHtml
« on: November 12, 2024, 10:18:19 AM »
What mean custom html field?

8
General Discussion / Re: Problem with the Add to Cart button
« on: October 18, 2024, 05:12:05 AM »
Here is the link allprintdeco.com Thanks

please check this solution
https://github.com/abantecart/abantecart-src/commit/5fda88727c4376097615eb0bd3cc7c3901eafdff
Just change your file via CPanel filemanager manually or replace with this file

9
General Support / Re: getting .filename.css loaded automatically
« on: October 08, 2024, 05:14:54 AM »
Hi,
looks like host have some vulnerability that allows to write css file into your folder.
Try to delete it (or even better replace vendor directory with our from release) and set permissions for "vendor" to 555 recursively.  (only for read and execute)
Also check file .htaccess inside vendor dir.
It must contains
Code: [Select]
Order Deny,Allow
Deny from all
(No one file cannot be accessible from web)

Please, let us know about results

10
General Support / Re: Contact Form
« on: October 07, 2024, 05:04:58 AM »
you have two ways:
 1. change text via hook

Code: [Select]
    public function onControllerPagesContentContact_UpdateData()
    {
        $that = $this->baseObject;
        $that->view->assign('text_address', 'Some your title');
        $that->view->assign('store', '');
        $that->view->assign('address', 'You new Address here');
    }

2. change storefront/view/****/template/pages/content/contact.tpl file (if you have specific template). NOTE: in case when you use "novator" or "default" template your changes will be overridden by future upgrades of core.

11
AbanteCart version?

12
Support / Re: can u disabling reCAPTCHA manually through the database or php
« on: September 13, 2024, 06:54:00 AM »
try to remove recaptcha site keys fron phpMyAdmin
Code: [Select]
update settings SET `value` = '' WHERE `key` LIKE 'config_recaptcha_%';

13
Support / Re: can u disabling reCAPTCHA manually through the database or php
« on: September 12, 2024, 04:41:18 AM »
to disable reCaptcha you should clear it's site and secret keys in the admin settings (see tab General)

15
General Discussion / Re: Second level breadcrumb is removed in 1.4.0?
« on: September 10, 2024, 04:06:08 AM »
why does the second level breadcrumb is removed?

It's not on purpose. You just found a bug.

Pages: [1] 2 3 ... 138

Powered by SMFPacks Social Login Mod