Show Posts


Messages - Marklawrence

Pages: [1]
1
Upgrade / Re: upgrading from V.1.4.1 to V. 1.4.2
« on: May 30, 2025, 01:39:40 PM »
You may have the same issue I had.

The webserver wouldn't serve index.php as the default index file, so any call to javascript would return 404, which was the wrong file type since it was expecting javascript, and it would get blocked.

The solution was go to the .htaccess file in the root folder of your AbanteCart installation and add this line:
DirectoryIndex index.php

2
Embedding / Embed code doesn't work - Solved
« on: May 30, 2025, 12:41:48 PM »
I updated AbanteCart to 1.4.2 the update critically failed. After that the embeded code wouldn't work no matter what I tried, even rolling back to a fresh install of 1.4.1. When you go to the admin control panel, then select products, then select a product, then get embed code, the preview wouldn't appear. Furthermore if you went to a page with embeds in it and opened dev mode you would get an error.
In Chrome it's:
Cross-Origin Read Blocking (CORB) blocked a cross-origin response.
In Firefox it's:
The resource from was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)

After working on this error for more than I day I figured out the problem. The webserver wouldn't serve index.php as the default index file, so any call to javascript would return 404, which was the wrong file type since it was expecting javascript, and it would get blocked.

The solution is go to the .htaccess file in the root folder of your AbanteCart installation and add this line:
DirectoryIndex index.php

3
Templates / Order Invoice Payment Method
« on: January 29, 2024, 11:53:56 AM »
A few years ago I made a customization to my order_invoice.tpl which I used for book keeping purposes. At the bottom of the file I added the following:

<?php echo $order['date_added']; ?>#
<?php echo $order['payment_method']; ?>#
<?php echo $total['text']; ?>#
<?php echo $order['payment_address']; ?>#
<?php echo $order['customer_telephone']; ?>#
<?php echo $order['customer_email']; ?>!#
<?php foreach ($order['product'] as $product) { ?><?php echo $product['name']; ?><?php } ?>

This created a text line at the bottom of the invoice with the date, payment method, total price, customer address, phone, email, and what they ordered. It all worked fine.

I recently updated to a newer version of AbanteCart and the payment_method stopped working. I used the following line to see what options I had:

<?php echo '<pre>'; print_r($order); echo '</pre>'; ?>

Much to my dismay, I found that payment_method is no longer in the array order at all. I would like to know how I can reenable payment_method so that my bookkeeping isn't lacking that information.

4
Support / Migrating from Agora
« on: January 10, 2019, 01:34:55 PM »
I have several hundred products. Can I produce a text file in some particular format and load up my database, rather than add products one at a time?

Pages: [1]

Powered by SMFPacks Social Login Mod