News:

AbanteCart v1.4.4 is released.

Main Menu

Recent posts

#11
General Discussion / Re: Can't upload images via HT...
Last post by StellaEverett - October 20, 2026, 04:08:26 AM
Please check whether the HTML code you entered is complete. AbanteCart's HTML resource requires a full <img> tag, for example:

<img src="http://your-image-url.jpg" />

Entering only the image URL will not work and will result in an empty image being mapped. Change it to the complete tag and try again.
#12
Support / Re: I want to move to another ...
Last post by VictorFoster - October 20, 2026, 03:57:44 AM
You should not simply upload the backed-up files to the new hosting. AbanteCart's migration has specific requirements. The official recommended approach is: first install a fresh copy of AbanteCart on the new hosting (without demo data, and with the database prefix matching the original site), then import the backup from the old site, and finally modify the key configuration in config.php.

Recommended Migration Steps
Install a fresh copy on the new hosting: Run the normal installation process on the new host, be sure not to load demo data, and you must select the same database prefix as the original site .

Back up the old site: In the AbanteCart admin panel of the old site, go to System → Data → Backup, and back up the database, code, and resource library. Do not include system/config.php .

Download and upload: Download the backup file from the backup history, then upload it to the new hosting and extract it .

Replace key configurations: Open system/config.php on the new site, and copy the ENCRYPTION_KEY and UNIQUE_ID from the old site's config.php (older versions may be SALT) into the new file, while also checking that SERVER_NAME is correct .

Clear the cache: Log in to the admin panel of the new site and clear the AbanteCart cache; otherwise, products may not display properly .

Why Not Recommend "Direct Upload"
AbanteCart's built-in backup feature primarily targets data recovery within the same environment, and does not directly generate a complete migration package that can be deployed on a new host. Directly uploading files and importing the database may cause configuration mismatches or cache issues due to the lack of proper key replacement and installation environment initialization .

If you encounter insufficient PHP memory or execution timeouts during backup, you can use cPanel or phpMyAdmin to export the database, and use FTP to download all files, then handle it manually .
#13
General Discussion / Re: When a user submits a form...
Last post by Donysterling UK - October 20, 2026, 03:46:45 AM
This requirement is very common: the form is embedded on the product page, and you want to know which product the user was viewing when they submitted the form. The core approach is to use "hidden fields" plus frontend JavaScript to write the current page URL or product name into the form before submission.

However, the specific implementation depends entirely on which form tool you are using. The capabilities and extension methods vary greatly across different platforms.

General Universal Solution (With Code Control)
If your website allows you to add JavaScript, this is the most reliable method:

Add a hidden field to the form (e.g., page_url, product_name).

Before page load or form submission, use JavaScript to obtain window.location.href (page URL) or product information from the page, and assign it to the hidden field.

Example code:

javascript
// Execute after form is loaded
document.addEventListener('DOMContentLoaded', function() {
    var hiddenField = document.querySelector('input[name="page_url"]');
    if (hiddenField) {
        hiddenField.value = window.location.href;
    }
});
Note: If the form is dynamically loaded via a popup or AJAX (loaded only when the user clicks), the above code may not capture it. In such cases, you need to use MutationObserver to monitor the form being inserted into the DOM, or bind the assignment logic to the form's submit event.

Built-in Features of Common Form Tools
If you are using a SaaS form builder, check whether it has built-in capabilities:

Form Tool    Built-in Feature    Notes
Jotform    "Get Form Page URL" Widget    Built-in, no coding required, automatically captures the embedding page URL
Gravity Forms    gform_source_id_pre_save_entry Hook    Can obtain the page ID where the form is located via PHP, suitable for WordPress
Constant Contact    Modify embed code + custom fields    Need to manually add var url = document.location.href; to the embed code
Microsoft Forms    Not supported    Officially confirmed no native capability to obtain the submission page URL
Product Name Acquisition
If you want product name instead of the URL, you need to read it from the page structure. For example, extract it from the product title element on the page, or use Liquid/template variables on e-commerce platforms (such as Shopify's {{ product.title }}).

Key Pitfalls
HTTP_REFERER is unreliable: Relying on server-side Referer may result in empty values or lost data due to browser privacy settings or AJAX popups.

Iframe embedding complications: If the form is embedded via iframe, window.location.href in the parent page is not directly accessible; you need to pass it through URL parameters or postMessage.
#14
Upgrade / Re: 404 error trying to access...
Last post by sewnsails - October 19, 2026, 09:21:48 PM
I believe I was installing 1.4.1
#15
Upgrade / Re: 404 error trying to access...
Last post by timlight10 - October 19, 2026, 11:26:25 AM
What version of AbanteCart?
#16
Upgrade / 404 error trying to access adm...
Last post by sewnsails - October 17, 2026, 10:51:33 AM
A critical server error triggered while attempting upgrade. Now I can't access admin panel. I get a 404 error when I try to login
#17
Upgrade / Re: Error upgrading, what do I...
Last post by sewnsails - October 17, 2026, 10:48:19 AM
Thanks got that sorted out.
#19
Upgrade / Error upgrading, what do I nee...
Last post by sewnsails - October 16, 2026, 07:25:36 PM
Trying to go from 1.2.16 to 1.3.0 on the road to 1.4.4 and I get this error message.

7.1.0+ Required for AbanteCart to work properly! Please contact your system administrator or host service provider.

What 7.1.0+ is it referring to?
#20
Built-in Features / Can't turn off small order fee...
Last post by timlight10 - October 16, 2026, 08:13:04 AM
I had a small order charge enabled on my main store, and then created a second store. I have since disabled the small order charge on my main store, but my second store is still charging the small order charge. Since there is no store selection available in Extensions > Order totals, how do I disable the small order charge on my second store?

Forum Rules Code of conduct
AbanteCart.com 2010 -
Powered by SMFPacks Social Login Mod