Finally the help of IT is here

Blog of computer solutions.

Show only products on Prestashop Product List

Created by Xaus Xavier Nadal on November 29th, 2014

Show alone products in product listings Prestashop oddly it should be easy and there should be a specific configuration for that, is not it.

In the current version to 29 / 11 / 2014 we not have this functionality and we touch the code to get our current issue that only products we have available are visible to the public.

What we want to show only products available?

For only so that potential buyers do not have to be sailing and discarding products you will not be able to buy, it is true, the known and may purchase or request the customer of the store, but also can do if are the product, the SEO by this configuration will not be affected because the products through search engine also continue to exist only modify the view of products within a category.

Surely there are several methods to perform the same action, but I'll leave that I have implemented some of my stores and if you have a better solution please Send it, or write a comment in the article.

We will explain how to do this little modification.

How to show available products only on Prestashop.

The first thing to get is access to FTP and edit the file product-list.tpl

We look for the following string:

{Foreach from = $ products = product item name = products}

We add this line right below the following code:

{If $ product.quantity> 0}

Now we seek the end of foreach and add the following line just before the {/ foreach}

{/ If}

With this we will make in the product list only the available products are displayed.

One drawback of this solution is that if we have several product pages settings pages where products should be visible but have hidden will still appear. If someone comes and fix the prestashop community will thank you.

Greetings and see you soon MegaCracks.

By the way I leave the link to one of my new store online where we have applied this functionality. We hope you like and we buy some some article.

Created in Prestashop | No Comments »

How to install .NET Framework in Windows Server 3.5 2012 R2

Created by Xaus Xavier Nadal on November 19th, 2014

Install .NET Framework in Windows Server 3.5 2012 R2 gives the following error:


In this article, we show how to solve the error: Error while enabling Windows feature: NetFx3, Error Code: -2146498298

It's simple, we only have the windows cd and run a command.

Megacrack read »

Created in Windows, windows server 2012 | No Comments »

404 Error Found in Magento Admin Login after Upgrade Hosting

Created by Xaus Xavier Nadal on July 6th, 2014

good morning

Yesterday I found this problem when migrating from an online store with Magento to another hosting, we migrated database, we migrated files, check routes and everything worked fine until we entered the admin panel Magento where the error appeared 404 Error Page Not Found in Magento admin.

To solve this problem all you have to do is execute the following SQL statement from your PHPMyAdmin.

UPDATE SET core_store store_id = 0 WHERE code = 'admin';
UPDATE SET core_store_group group_id = 0 WHERE name = 'Default';
UPDATE SET core_website website_id = 0 WHERE code = 'admin';
UPDATE SET customer_group customer_group_id = 0 WHERE customer_group_code = 'Not logged in';

I hope you have been helpful.

See you soon.

Created in Online store | No Comments »

Detect free space on Centos directory and check fuller

Created by Xaus Xavier Nadal on May 25th, 2014

When we run out of free space on Centos there are several ways to detect where we use space but we will show you which is the fastest and most effective for us and also with tidy result.

For example we will see that the folder is normally occupies the / Backup folder / home (where the email and files of the websites and the / var where they reside databases and log files are stored.

First we show the command to be used to detect free space is as follows:

df -h

How to see free space on Centos

With this command we see that we have room Total, used, available and percentage in use.

And the command for detecting that the directory is used is as follows:

du -chs / * | sort -h

Megacrack read »

Created in Centos, Linux, VPS | No Comments »

As cancel import duties on Amazon AWS of

Created by Xaus Xavier Nadal on May 18th, 2014

As we discussed in the previous article we can migrate virtual environments to Amazon AWS a fairly simple, but there are times that the task of migration to AWS failure and different instantiated Amazon EC2 in our environment we can not eliminate. The error that appears when you remove an instance EC2 is similar to the following.

Error terminating instances


Operation TerminateInstances is denied for the instance (s): i-0321dc43 (. Instance is being used by VM Import task import-i-ffx1u0r0 No charges are Incurred by stopped instances.)

To cancel tasks import in Amazon AWS and not wait for the expiration time of the task (which are usually 7 days) we access the command line of our AWS client and run several commands that I will explain below to stop the migration tasks and to finish the EC2 instance normally.

The first is to know the region where we have done the work of import or export, I remind you that with the command ec2-describe-regions or short command ec2dre we can see the list below and ensure a little nomenclature of each region

REGION us-east-1
REGION eu-west-sa-REGION 1-1 REGION east-northeast-ap-northeast ec1.ap 2-1.amazonaws. com REGION west-us-us-REGION 2-1 west ap-southeast REGION-1 ec2.ap-southeast-1.amazonaws .com

In our case the region where we have test servers we use to make the migration from VMware virtual environment is Ireland and will look there if we find a slope of finish work to remove instances work EC2 blocked by import

Run the command ec2-describe-conversion-tasks or the short name ec2-dct

C: \ AWS \ CLI \ bin>-region ec2dct eu-west-1
TaskType ImportInstance TaskId import-i-fflbhk06 ExpirationTime 2014-05-24T18: 09: 03Z Status active StatusMessage Pending InstanceID i-5d33ce1d Diskimage DiskImageFormat VMDKs DiskImageSize 6436109312 VolumeSi ze 30 AvailabilityZone eu-west-1c ApproximateBytesConverte d 0 Status active StatusMessage Pending: Downloaded 650117120 TaskType ImportInstance TaskId import-i-fh5aml6s ExpirationTime 2014-05-24T19: 22: 39Z Status active StatusMessage Pending InstanceID i-2e21dc6e Diskimage DiskImageFormat VMDKs DiskImageSize 6436109312 VolumeSi ze 30 AvailabilityZone eu-west-1c ApproximateBytesConverte d 0 Status active StatusMessage Pending: Downloaded 0 TaskType IMPORTINSTANCE TaskId import-i-ffx1u0r0 ExpirationTime 2014-05-24T19: 24: 04Z Status active StatusMessage Pendin g InstanceID i-0321dc43 Diskimage DiskImageFormat VMDKs DiskImageSize 6436109312 VolumeSi ze 30 AvailabilityZone eu-west-1c ApproximateBytesConverte d 0 Status active StatusMessage Pending: Downloaded 0 TaskType ImportInstance TaskId import-i-fg2jd969 ExpirationTime 2014-05-24T19: 27: 35Z Status completed InstanceID I-5021dc10 DISKIMAGE DiskImageFormat VMDK DiskImageSize 6436109312 VolumeId vol-abba0bac VolumeSize 30 AvailabilityZone eu-west- 1c ApproximateBytesConverted 6436102752 Status completed

We can see that we have many tasks with active status and status message is Pending (This means that work is on-hook)

Now knowing which of these migration tasks we want to eliminate use the command ec2-cancel-conversion-task or the short name ec2cct TaskId and name together with the region.

The command is used as follows:

ec2cct -region <region> TaskID


Let's see the outcome.


C: \ AWS \ CLI \ bin>-region ec2cct eu-west-1 import-i-fflbhk06

CONVERSION-TASK import-i-fflbhk06


If we check the status of migration with ec2dct -region eu-west-1 we can see that the state instead of active and puts canceling canceled after a while.

We do the same procedure with all pending tasks and migration and can eliminate the EC2 quietly outstanding instances.

I hope you have been useful article.

Greetings and until next time.

Created in Amazon AWS | No Comments »