Re: Wrong discount percentage calculation in categories page
This forum is about OpenCart, not basic math. (100 * (mainprice - discountprice)) / mainprice I am not primary school student too, i would use this for discount label in opencart. I was getting error with calculate numbers after . decimals. I found my solution from other extension. (https://www.ope...
Jump to post- Thu Aug 06, 2020 12:37 am
- Replies 2
- Views 704
[SOLVED]Wrong discount percentage calculation in categories page
Hi, I am trying to show discount percentage on my categories page (opencart 3.0.3.2). I know extensions but tried myself. My problem is it is calculating wrong. Where am i doing wrong ? on theme/default/template/product/catalog.twig {% set mainprice= product.price %} {% set discountprice= product.sp...
Jump to post- Wed Aug 05, 2020 11:36 pm
- Replies 2
- Views 704
Re: Multiplication for product qty
Our Instant Option Price Calculator should be able to do that for your pipe products. For example, assuming you have a product option named 'Pipe Length' and a basic product price for 1m, then the option price calculation could be configured for the pipe products like this: product_price() * option...
Jump to post- Thu Jul 23, 2020 8:25 pm
- Replies 5
- Views 866
Price calculation
Hi, I need an extension for explanation below; The product is pipe. I need an extra field at product add panel for adding number for pipe length. I will enter the length meter from panel. For example Pipe Length : 4 Meter Price : 20 In frontend product page price will be (meter price*pipe length) . ...
Jump to post- Thu Jul 23, 2020 2:01 am
- Replies 7
- Views 1027
Re: Multiplication for product qty
I mean Product price is 5$, customer added 8 quantities to cart , i have to add 8x4 (meters) = 32 pieces. Just put in the pipe in lengths of 4m with an option to extend by 2m and increase the price accordingly. Thanks but it is so long work for all pipes (80 types of pipes) I am thinking a calculat...
Jump to post- Tue Jul 21, 2020 11:08 pm
- Replies 5
- Views 866
Multiplication for product qty
Hi, I am using 3.0.3.2 opencart version. I have product as pipe 4 or 6 meters. I want to calculate quantity with product price for adding to cart. I mean Product price is 5$, customer added 8 quantities to cart , i have to add 8x4 (meters) = 32 pieces. Can i do this calculation for some products onl...
Jump to post- Tue Jul 21, 2020 2:12 am
- Replies 5
- Views 866
Re: Turkish characters problem for pagination
The HTTP_SERVER and HTTP_CATALOG settings in both your config,php files are wrong. The URLs need to start with: https:// The double encoding is caused by you redirect from http to https. https://www.akvaryumyemi.com/index.php?route=product/search&search=gran%C3%BCl&description=true&cate...
Jump to post- Mon May 04, 2020 8:47 pm
- Replies 21
- Views 3306
Re: Turkish characters problem for pagination
you are double encoding your search term. ürün encodes to %C3%BCr%C3%BCn encodes to %25C3%25BCr%25C3%25BCn %25C3%25BCr%25C3%25BCn decodes to %C3%BCr%C3%BCn and that is where you are. either find the double encode or also double decode. Understood i think. I will check search and pagination files ag...
Jump to post- Mon May 04, 2020 3:52 pm
- Replies 21
- Views 3306
Re: Turkish characters problem for pagination
Please post your .htaccess, config.php and admin/config.php files without database information. .htaccess Options +FollowSymlinks Options -Indexes <FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))"> Require all denied </FilesMatch> RewriteEngine On RewriteBase / RewriteRule ^s...
Jump to post- Mon May 04, 2020 4:37 am
- Replies 21
- Views 3306
Re: Turkish characters problem for pagination
Checking it now. Thanks Jump to postADD Creative wrote: ↑Mon May 04, 2020 4:08 amAlso looks like your page links are http and not https and your redirect from http to https could be the cause.
- Mon May 04, 2020 4:31 am
- Replies 21
- Views 3306
Re: Turkish characters problem for pagination
That's not fully disabling the extension. Disabled from extensions, removed from modifications. And for exact solution changed header search from default template. Still same. It was not enough for me, backed up my catalog folder and uploaded default template catalog folder. It didn't changed. Remo...
Jump to post- Mon May 04, 2020 4:21 am
- Replies 21
- Views 3306
Re: Turkish characters problem for pagination
That's not fully disabling the extension. Disabled from extensions, removed from modifications. And for exact solution changed header search from default template. Still same. It was not enough for me, backed up my catalog folder and uploaded default template catalog folder. It didn't changed. Remo...
Jump to post- Mon May 04, 2020 2:54 am
- Replies 21
- Views 3306
Re: Turkish characters problem for pagination
Changed {{autosearch}} to {{search}} for default search . Still same problem.ADD Creative wrote: ↑Mon May 04, 2020 12:58 amTry disabling your search extension to see if the problem goes away.
I think there is bug there. Search box input sends not encoded characters Jump to post
- Mon May 04, 2020 1:11 am
- Replies 21
- Views 3306
Re: Turkish characters problem for pagination
Let's try this (untested since I don't use the Turkish language). In your catalog/controller/product/search.php file, find all instances of: urlencode replace all with: utf8_encode See if that solves the issue. Unfortunately it didn't solved. My web link is below. You can see search word is "g...
Jump to post- Sun May 03, 2020 10:42 pm
- Replies 21
- Views 3306
Re: Turkish characters problem for pagination
Checked php.ini, htaccess , files utf-8 without bom but couldn't solve this. have you checked .user.ini file and ensure, either, php.ini or .user.ini file do not end with semi-colon at the end of each lines? Is the: default_charset = UTF-8 also implicit in your php.ini or .user.ini file? Exactly ch...
Jump to post- Sun May 03, 2020 10:06 pm
- Replies 21
- Views 3306
[Solved] Turkish characters problem for pagination
Hi, I am using 3.0.3.2 version opencart and not default template. I have a problem for search page. When i search a word includes Turkish characters like "ürün" first search page is working exactly but pagination links goes to not coded utf-8 link. Checked php.ini, htacess, files utf-8 wit...
Jump to post- Sun May 03, 2020 9:00 pm
- Replies 21
- Views 3306
Re: [vQmod] - Full Option Price
which codes did you used for 3.0.2.0 ?
ı cant integrate the module to my site
Thanks Jump to post
- Thu Apr 02, 2020 1:37 am
- Replies 76
- Views 103503
Re: Help for Division by zero in category.php
I can't understand what you really want. You are wasting your time to say me i will fail but you dont tell the right solution. Am i asking wrong question or choosing wrong place ? Another developer gave a solution that may cause wrong prices in certain circumstances. I don't have time to code this ...
Jump to post- Fri Mar 13, 2020 1:22 am
- Replies 16
- Views 2127
Re: Help for Division by zero in category.php
I can't understand what you really want. You are wasting your time to say me i will fail but you dont tell the right solution. Am i asking wrong question or choosing wrong place ? Jump to post
- Thu Feb 27, 2020 8:23 pm
- Replies 16
- Views 2127
Re: Help for Division by zero in category.php
But the algorithm is changed so specials won't work now. Than please help for make it work. You are only saying it is simple. I think it is simple for you but not for me. I have edited my first post. So code little bit changed. Statement $special is added. This is solved for me. I didnt see any pro...
Jump to post- Thu Feb 27, 2020 4:49 pm
- Replies 16
- Views 2127