Re: Special Price Discount Percentage
That did it! Thank you very much.opencartboost wrote:Try use roundRef :Code: Select all
<h3><?php echo round((($priceInt[0]-$specialInt[0])/$priceInt[0])*100, 0); ?>% Discount</h3>
http://php.net/manual/en/function.round.php

- Thu Mar 10, 2016 3:28 pm
- Replies 2
- Views 1651
Special Price Discount Percentage
I am wanting to show the discount percentage amount between price and special price so added: <?php preg_match('/\d+\.?\d*/', $price, $priceInt); preg_match('/\d+\.?\d*/', $special, $specialInt); ?> <h3><?php echo (($priceInt[0]-$specialInt[0])/$priceInt[0])*100 ?>% Discount</h3> to /catalog/view/th...
Jump to post- Thu Mar 10, 2016 12:14 am
- Replies 2
- Views 1651
Re: Guest post sale item form
Thanks @IP_CAM
Jump to post- Wed Feb 10, 2016 5:53 pm
- Replies 2
- Views 1561
Re: Easy Way to Add All Filters to All Categories
There are several extensions that do this - search for "filters" in the extension store. I use one for v1.5 but am sure I saw one for v2 as well. There appears to be extension(s) that automatically show filters in categories where they have been added to the products within a category, Bu...
Jump to post- Wed Feb 10, 2016 2:13 am
- Replies 6
- Views 4381
Re: Easy Way to Add All Filters to All Categories
Found an even simpler solution: 1. Go to a category in which the required filters have been set. 2. Open web inspector 3. Find "<div id="category-filter" class="well well-sm" style="height: 150px; overflow: auto;">...</div>" 4. Right click and "Copy as HT...
Jump to post- Wed Feb 10, 2016 2:01 am
- Replies 6
- Views 4381
Re: Autocomplete limit - Edit Product > Links > Categories
You need to edit this value in /admin/controller/catalog/filter.php not product.php.
Jump to post- Wed Feb 10, 2016 1:42 am
- Replies 7
- Views 38890
Re: Easy Way to Add All Filters to All Categories
As a work around to help make the existing assignment method a little easier I have changed /admin/controller/catalog/filter.php public function autocomplete() { $json = array(); if (isset($this->request->get['filter_name'])) { $this->load->model('catalog/filter'); $filter_data = array( 'filter_name...
Jump to post- Wed Feb 10, 2016 1:41 am
- Replies 6
- Views 4381
Re: Easy Way to Add All Filters to All Categories
There are several extensions that do this - search for "filters" in the extension store. I use one for v1.5 but am sure I saw one for v2 as well. There appears to be extension(s) that automatically show filters in categories where they have been added to the products within a category, Bu...
Jump to post- Wed Feb 10, 2016 1:13 am
- Replies 6
- Views 4381
Easy Way to Add All Filters to All Categories
Is there an easy was to add all filters to all categories? Perhaps a sql query in phpmyadmin? The autocomplete and add is so uneconomical a clickable/selectable list would be much more convenient. If you've got 50-100 filters and the same number of categories, it's going to take a couple of hours to...
Jump to post- Tue Feb 09, 2016 10:08 pm
- Replies 6
- Views 4381
Guest post sale item form
Is there such an extension?
Allowing guests to post a sale item via a form outside of the admin area?
Thanks for any suggestions.
- Tue Feb 09, 2016 7:28 pm
- Replies 2
- Views 1561
Re: Royal Mail Help International not working
Bump for answers also seeing this issue in 2.0.2.0
Royal mail enabled for all zones but no shipping options available for international (outside UK) delivery.
Bump bump bump
- Mon May 25, 2015 8:40 pm
- Replies 2
- Views 674
Re: OpenCart 2.0.2.0 Available Now
Opencart 2.0.2.0 clean install. I was getting the following error when going through checkout SyntaxError: json parse error: unexpected EOF OK Having checked error logs: PHP Notice: Error: E-Mail to required! in /home/public_html/system/library/mail.php on line 61 So I tried this solution: Fixed it ...
Jump to post- Tue May 19, 2015 9:48 pm
- Replies 231
- Views 266991
Re: White page on upgrade to 2.0
Do it yourself via WHM...
WHM > Easy Apache > Customise profile > Check mySQLi in Exhaustive Options List > Build and Recompile
- Thu Oct 30, 2014 3:11 am
- Replies 9
- Views 3006
Re: Warning: ZIP extension needs to be loaded
Hi uksb,
Thanks for taking the time to reply.
Its a dedicated / not managed server but managed to figure it out.
WHM > Easy Apache > Customise profile > Checked ZIP in Exhaustive Options List > Build and Recompile
Hope this helps someone else in the future.
- Thu Oct 30, 2014 2:56 am
- Replies 7
- Views 14589
Warning: ZIP extension needs to be loaded
During step 2/4 of OpenCart Pre-Installation i'm getting...
Warning: ZIP extension needs to be loaded for OpenCart to work!
How do I install the ZIP extension?
Can this be done via WHM or cPanel as i'm not really clued up on shell.
Thanks in advance.
- Thu Oct 30, 2014 12:52 am
- Replies 7
- Views 14589
Re: 3D Secure - Centinel_ErrorNo = 8030
I appreciate this thread is a couple of months old but figured I would provide our solution as I found this when searching for solutions. I had this exact same problem using the SRS Paypal Pro 3D Secure module V-2.0, went to Cardinal but they unsure as to what the issue was. After a lot of digging ...
Jump to post- Thu Feb 27, 2014 1:09 am
- Replies 4
- Views 1893
Re: Show stock status on categories page?
It's exactly the same process as adding to category (as above). Jump to postv-v wrote:Hi, any idea how to adapt it for special?
Thank you.
- Sat Jan 11, 2014 5:26 pm
- Replies 22
- Views 23452
Re: 3D Secure - Centinel_ErrorNo = 8030
I have added 216.150.133.245 (paypal.cardinalcommerce.com) to csf.allow
Tried to ping via ssh, packets transmitted, 0 received, 100% loss.
It's a VPS but also contacted my host who confirm no restrictions are placed on this type of hosting package.
Any ideas?
- Fri Dec 20, 2013 8:02 pm
- Replies 4
- Views 1893
Re: 3D Secure - Centinel_ErrorNo = 8030
Just received the following reply from Cardinal support: I can confirm that you have everything setup correctly to reach out to Cardinal, but you are being restricted to sending the initial lookup into Cardinal which is creating the timeout error. Since you have not made any changes on your end and ...
Jump to post- Fri Dec 20, 2013 5:44 am
- Replies 4
- Views 1893
3D Secure - Centinel_ErrorNo = 8030
I am using SRS Paypal Pro 3D Secure module V-2.0. Since the beginning of December all transactions are been completed without 3D Secure. Having activated the log files to try and establish the problems, it is reporting; Centinel_ErrorNo = 8030## Centinel_ErrorDesc = Communication Timeout Encountered...
Jump to post- Fri Dec 20, 2013 5:32 am
- Replies 4
- Views 1893