News:

AbanteCart v1.4.4 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Recent posts

#21
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.
#22
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
#23
Upgrade / Re: 404 error trying to access...
Last post by timlight10 - October 19, 2026, 11:26:25 AM
What version of AbanteCart?
#24
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
#25
Upgrade / Re: Error upgrading, what do I...
Last post by sewnsails - October 17, 2026, 10:48:19 AM
Thanks got that sorted out.
#27
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?
#28
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?
#29
Support / Re: Blocks and Layouts
Last post by wordedge - October 15, 2026, 04:34:10 AM
The safest approach is to create a custom theme or theme extension rather than editing the default theme files directly. You can then customize the blocks and templates without worrying about losing your changes during updates. I'd also recommend testing everything on a staging site first.
#30
Tips and Tricks / Re: Associate customers to cat...
Last post by CharlotteDup - October 14, 2026, 02:24:19 PM
Hello Basara,

Thanks for the clarification! A custom extension would be a useful solution for managing product and category visibility based on customer groups in AbanteCart.

Thanks for your feedback!

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