News:

AbanteCart v1.4.3 is released.

Main Menu
support

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - gswan

#1
How-to questions / Zone not mandatory in Guest checkout
February 09, 2025, 07:50:03 PM
Current AbanteCart version: 1.3.3
I've noticed that when a Guest checks out that the zone is not being checked to ensure it is there.
As a result the correct tax code is not applied and the order is wrong.
A test with other mandatory fields (country, postcode) throw the correct error message on the form.

We have 1 country, 7 states/zones.
Create order. Guest checkout. Fill in address and leave State/Zone empty.
It proceeds to the shipping/payment pages. Expected to throw an error for missing zone.

The localization messages for zone errors are all set (default).

Any clues would be helpful.
-Geoff
#2
SEO / Adding meta keywords to content pages
November 10, 2017, 12:39:34 AM
Is there a way of adding a meta "keywords" tag to the content pages?

The keywords setup in the admin interface appear nicely on the home page, however I was hoping to add further keywords to various content pages, separately from those on the home page. 
I cannot see a way of doing this in the admin interface, and checking the resulting source of the page when rendered, there is no meta tag for keywords present.

Any advice appreciated.
#3
Once the "SEO URL's" setting was enabled (and .htaccess included) the problem is no longer present.

#4
I ended up finding this in the code (html.php), and there does not appear to be any check to see if HTTPS_SERVER is actually defined.

               
public function getURL($rt, $params = '', $encode = '') {
      if (isset($this->registry->get('request')->server['HTTPS'])
            && (($this->registry->get('request')->server['HTTPS'] == 'on') || ($this->registry->get('request')->server['HTTPS'] == '1'))) {
         $server = HTTPS_SERVER;
      } else {
         //to prevent garbage session need to check constant HTTP_SERVER
         $server = defined('HTTP_SERVER') ? HTTP_SERVER : 'http://' . REAL_HOST . get_url_path($_SERVER['PHP_SELF']);
      }

#5
Checked apache settings and .htaccess rewrite rules. Nothing there.
It looks more like a string coming from PHP, where HTTPS_SERVER is supposed to be defined somewhere, but isn't.


#6
Hi,
I am using abantecart 1.2.8, php-5.6.30.

After leaving the admin console to timeout it appears to redirect to the admin login page, however it has the string "HTTPS_SERVER" in the URL.
If I manually remove the string I get the admin login page.
Example: HTTPS_SERVERindex.php?rt=index/

The server URL's are configured and SSL is enabled in the settings. Is there anywhere else I should be looking for where this comes from?

Forum Rules Code of conduct
AbanteCart.com 2010 -