Recent Posts

Pages: [1] 2 3 ... 10
1
Hello,

As a user of AbanteCart 1.2.11, I am currently testing Abantecart 1.3.4 on localhost with PHP 8.2.12.

The storefront had a totally blank page, apart from the welcome message.
(No change if adding a category, a product, and clearing the cache.)

I the template in use was "bootstrap5" instead of "default" one.

I switched the template from "bootstrap5" to the default one, and the storefront displays OK.

Likely are some additional requirements for the bootstrap5 template to display, but this is very confusing for beginners.

I would suggest keeping only the default template in the initial installation, and let people download alternative templates if they want.

Cheers.
2
Quote
I think 1.2.16 and 1.3.0 can run on PHP 7.1 why did you choose 1.2.11?

Quote
Because for AbanteCart 1.2.16 the minimal PHP version was not mentioned.
(...)
I believe that a similar PHP compatibility chart would be very useful fo AbanteCart.

See this link for AbanteCart's PHP compatibility chart:
https://abantecart.atlassian.net/wiki/spaces/AD/pages/3768390/AbanteCart+System+Requirements#AbanteCartSystemRequirements-PHPcompatibilitychart

Many thanks to the developers, testers, and editors fo the documentation.
3
News and Announcements / PayPal Commerce onboarding
« Last post by Basara on February 26, 2024, 07:13:43 AM »
PayPal updated its onboarding configuration on Friday 23 without prior notification.
We apologize for any inconvenience caused by this unexpected change. Here is the quick fix you can apply to 1.3.4 PayPal Commerce extension files.
4
Extension Support / Re: Solved --- Translation problem
« Last post by Basara on February 26, 2024, 03:11:23 AM »
Hello.
If you change database make sure to clean AbanteCart Cache
5
General Support / Re: How to know which layout a product is using?
« Last post by Basara on February 26, 2024, 03:08:44 AM »
Hello.
The common layout for products is "Default Products Page"
6
Support / Re: HOw to show product proce range in fgrid and on product detail page
« Last post by ninadobrev on February 25, 2024, 10:01:44 PM »
You can achieve this by customizing the theme templates using PHP code or a plugin.
7
Thank you Nuno.

So here's my quick implementation of a price beautifier.

In 'storefront/view/default/template/pages/product/product.tpl', after line 94 (i.e. after the "if ($display_price){}" sandwich), add:
Code: [Select]
// Remove decimals for prices ending with ".00", for both special and normal prices.
           if (strpos($special,'CHF')) {
                $special=  str_replace('.00','.–',$special);
              } else {
                $special = str_replace('.00','',$special);
              }
          if (strpos($price,'CHF')) {
                $price=  str_replace('.00','.–',$price);
              } else {
                $price = str_replace('.00','',$price);
              }

How does it work
If the product price contains "CHF" (Swiss Franc), it will replace ".00" by ".–".
For all other currencies, it will replace ".00" by nothing.
This assumes you are only using the dot as separator for the trailing decimals".

Suggestion for a better implementation
Similar code should be applied at other locations to beautify other prices displayed.
A better implementation would be creating an method, or modifying existing method, so that the same code can be re-used for all price formatting.


@llegrand: Sorry, but my question was about if the ".–" was international or used only in some countries like Switzerland.
Furthermore, setting the decimals to 0 is not what I wanted to do : 99.95 CHF must remain unchanged. Only 99.00 CHF should be displayed as 99.– CHF.
8
Development Help Needed / Re: (Solved) How to set blurb as meta description
« Last post by OneMore on February 25, 2024, 06:04:23 AM »
Thank you fanteamgear.
I have access to the database, but decided to further explore how AbanteCart was getting the value of "meta_description", in order to not create additional database connection and query for a single field.

As in "product_description", AbanteCart was able to extract the value "meta_description", I searched for that string.
The missing part, was adding "$this->document->setBlurb($product_info['blurb']);" in product.tpl.
I edited my original post, so that everyone can benefit from the procedure.

Cheers.
9
Just edit your CSS file and hide it.
10
Development Help Needed / Re: How to set blurb as meta description?
« Last post by fanteamgear on February 24, 2024, 11:18:14 PM »
If you have access to your DB, you can write an external file to query what you need directly from the database from product_descriptions table and simply use include 'your metatag file'; in the head of the document. It works faster than having to pine through Abantecart or modify core files and process which may be overridden when you do an update.  Contact me if you still need help with this.
Pages: [1] 2 3 ... 10

Powered by SMFPacks Social Login Mod