Prestashop

Prestashop: Add Manufacturer Description to Product Page

Posted on

Add the following code to ProductController.php @ /controllers/front/ProductController.php $id_lang = $this->context->language->id; $manufacturer = new Manufacturer($this->product->id_manufacturer, $id_lang); $manuf_description = $manufacturer->description; $this->context->smarty->assign(‘manufact_desc’, $manuf_description);     Then Add the variable $manufact_desc to the product.tpl template. Watch out with the quotation formal.   http://www.prestashop.com/forums/topic/305984-add-manufacturer-description-into-product-page/  

Ubuntu

LINUX: Running Shell Script

Posted on

  # Test your newly created Shell Script #sudo bash /home/rmalla/backup.sh   — NOTE — I spent about an hour trying to figure out why my script did not work, and the answer was that I had created the script in Notepad and uploaded it to de web and it had some hidden flags that […]

Ubuntu

Rsync: Create SSH-Key for Cron Backups

Posted on

Reference: http://www.thegeekstuff.com/2011/07/rsync-over-ssh-without-password/ 1. Create a Key on the “Origin Server” # ssh-keygen root@Asterisk:~# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory ‘/root/.ssh’. Enter passphrase (empty for no passphrase): Enter same passphrase again: Press enter to create the SSH Key without a password (not sure of the no […]

MySQL

MySQL: External Connection to Database Blocked

Posted on

Cannot establish an external MySQL connection to the server. Error 1.  Error 10061: connect to MySQL server failed Fixed it using the following solution (https://help.ubuntu.com/community/ApacheMySQLPHP) Solution 1. Set mysql bind address Before you can access the database from other computers in your network, you have to change its bind address. Note that this can be a security problem, […]

Asterisk

Asterisk: No Sound on Calls

Posted on

http://www.freepbx.org/support/documentation/howtos/howto-resolving-audio-problems On “sip.conf” localnet= nat=yes TOOLS Wireshark  — To Analize your computers (client) network card incoming packets TCPDUMP — To Analize your servers network card packets sudo tcpdump -p -n -s 0 -vvv -w /tmp/server-capture.pcap   configuring extensions.conf netstat -lup | grep 10

OpenBravo

OpenBravo: Goods Receipt & Purchase Invoice not Posting on C_Order Table

Posted on

Proposed Solution: https://issues.openbravo.com/view.php?id=11820   This issue is duplicated of 0011233. Please find below how these values are used in Procurement. This feature request is rejected because the way Openbravo manages quantities for goods receipts and purchase invoice is completely different than for sales. For procurement Openbravo uses 2 tables: 1. M_Matchpo ============ Here you match […]

Ubuntu

UBUNTU: Resize HD Size

Posted on

1 – reduce the filesystem. Ex: resise2fs /dev/vg0/lvol0 40G 2 – reduce the lv . ex : lvresise -L 30G logicalvol 3 – reduce the vg … etc..     lvreduce???       http://www.joomlaworks.net/blog/item/168-resizing-the-disk-space-on-ubuntu-server-vms   How To Create LVM Using vgcreate, lvcreate, and lvextend lvm2 Commands

Ubuntu

UBUNTU: VPS Resource Limits

Posted on

I currently have some of my business’s systems (HR, Reporting, Training) on a Server sitting on my home office; in this sense and preparing for a challenging 2014, I’m planning to move forward to a professional solution to host my systems on the web, so after some research I decided to go with 1and1 Hosting […]

PostgreSQL

PostgreSQL: Relevant Commands

Posted on

Connecting to Postgress Shell psql -U postgres -d postgres List Users select * from pg_shadow; usename | usesysid | usecreatedb | usesuper | usecatupd | passwd | valuntil | useconfig Change User Password   ALTER USER colin WITH PASSWORD ‘letmein’; Reference: http://www.davidpashley.com/articles/postgresql-user-administration/   MANAGE POSTGRES   PhpPGadmin : Install https://help.ubuntu.com/community/phpPgAdmin No se puede logear: http://www.unixmen.com/install-postgresql-and-phppgadmin-on-debian-7-wheezy/ Usuario […]

Jasper Reports

JasperReports: Server Automatic Start

Posted on

Souce: http://community.jaspersoft.com/questions/541044/auto-start-boot   Those scripts won’t work as supplied as the paths are all wrong, and the bundle doesn’t include apache anyway (it’s supplied by the OS). Since jasper does have a functional control script, I’ve rewritten the control script to use it and match the paths used by the install bundle, saved it at /etc/init.d/jasperserver and given […]