Push free shipping when available – Opencart

<file name=”catalog/model/shipping/flat.php”> <operation> <search position=”before”><![CDATA[ if ($status) { ]]></search> <add><![CDATA[ if ((float)$this->cart->getTotal() >= $this->config->get(‘free_total’)) { $status = false; } ]]></add> </operation> </file>

Read More»

Dynamic fields with Contact Form 7 – WordPress plugin

1. Be sure to have jQuery script added to your theme or add it 2. Create a form with Contact Form 7 Example: 3. Create a script to hide fields Add this to some js file in your template (custom.js)    

Read More»

Category id in product

Open catalog/controler/product/product.php Find first Add after it Open catalog/view/theme/*/template/procuct/product.php Add this wherever you want

Read More»

Division by zero in weight.php

PHP Warning: Division by zero in ******\PHP\htdocs\online\system\library\weight.php on line 38 right code: public function convert($value, $from, $to) { if ($from == $to) { return $value; } if (isset($this->weights[$from])) { $from = $this->weights[$from][‘value’]; } else { $from = 0; } if (isset($this->weights[$to])) { $to = $this->weights[$to][‘value’]; } else { $to = 0; } if($from == 0){ […]

Read More»

Moving WordPress

Moving a WordPress Site from a Subdirectory to the Root This is a straightforward method that will allow you to keep your WordPress install in a subdirectory and use your root domain’s URL. 1. Back Up Your Site It’s a good idea to have a backup, just in case anything goes wrong. This includes your […]

Read More»
shared on wplocker.com