Hello how I can get ride off decimal on opencart 1.5.6 completly for admin and fronted ?
if my price 5000 then display as it no need add 5000.0000.
I'm try to change from database product price set from 15.4 to 15.0 but its say invalid default value date added.
also already change library/currency but no luck. im out of option to solve this one.
and code for currency is like this
return $string;
change to this
return rtrim($string, '.00');
solve just export to below mysql version and change 15.4 to 15.0 or use notepad or any editor change manually
Related
I have a country table , with three column country code and country name and country phone code , and static file for all country flag also.
All flag image name same a country code in table ,how I can create a select list to Display country flag CONCATENATION with country name .
I went to apex.world and found this plug-in from Alan Arentsen that seems to fit the bill: https://apex.world/ords/f?p=100:710:::::P710_PLG_ID:COM.ADBC.APEX.JET.OJSELECTCOMBOBOX However, it doesn't currently support APEX 19.1+. If you don't mind experimenting a little, you could update the JS file in the plug-in (once installed) using the code I submitted in this PR: https://github.com/alanarentsen/plugin-apex-jet-ojselectcombobox/pull/6 Or you could wait until he's able to get a new version out, though I can't say how long that would take.
Another option would be to use the popup LOV and then modify the template using JavaScript to allow it to display images. If you take the plug-in or Popup LOV path and need more details, let me know and I'll provide them.
I'm newbee in Opencart development, so help me please. Opencart version 2.1.
http://prntscr.com/dak2kf
http://prntscr.com/dak3xi
I want to change current discounts and specials to percent type.
What files i need to change for right showing in cart and order?
I changed controller of product, on products page price already right (42% discount), but to cart sending price without 42% discount, just 42 value.
Thanks a lot.
Our suggestion is to use jquery and convert the % to fixed price before saving it to the database.
This way Opencart functionality will not be affected and you will be able to set price for special deal with ease.
You can convert % to fixed price on blur from the input field.
});
Sitecore 8.1 instance Multilist with Search field type the query included with -_name:__Standard Values does not work. However, the same query worked well in Sitecore 7.2 instance.
Here is my query:
StartSearchLocation={11111111-1111-1111-1111-111111111111}&Filter=_template:67535e3s84a5a71ab2cf8ef732819d4c|-_name:__Standard Values
When I remove this part -_name:__Standard Values, it is working fine.
Can anyone help me on how to fix this issue?
There is 1 problem as following :
You need not to have '-' after pipe and before word _name
So if you resolve this 2 error, Final string will be as follow:
StartSearchLocation={11111111-1111-1111-1111-111111111111}&Filter=_template:67535e3s84a5a71ab2cf8ef732819d4c|_name:__Standard Values
I've newly installed Open-Cart and I added my currency and deleted other currencies but when shown, the prices in the website are formatted with "decimal_point" in the middle, like this:
How can I fix this?
Add your currency in Settings → Store as it will set your currency to default and even check if you have correctly submitted your currency values such as decimals.
Check that you have a setting for $_['decimal_point'] in catalog/language/klingon/klingon.php, where "klingon" is the language to display your website in. Note that for English the file is named default.php.
(I got the same issue after an upgrade, because I forgot to add files for my language.)
i'm looking for a webservice, to be used for an autocomplete field,
where people can fill in either a postal code / city name or both
this service will need all cities in Europe, so we can use it for all country websites.
and in a later stadium we want to keep the world open for asia and america so this would be a plus.
preferably it would also return the long-lat coordinates for the locations,
Now it is a free textfield, after leaving the field, we hit the google geocoding service,
to find coordinates... preferably i would tie these two together.
so we don't have to query 2 services for one thing.
does anyone know of the existance of such a service online somewhere?
or would you suggest to build our own database with cities / postal codes / coordinates?
if so we would need to get the content from somewhere too, and i was trying to avoid that issue :)
I recently searched for a similar service, in vain.
I wanted my users to have auto-complete on entering a city name, and once a city is chosen I needed to pass the name and lat/long onto the Google API. In the end I did this: -
downloaded the geonames allcountries.zip, full extract: this
Imported it into a SQL DB via SSIS (about 7.5 million records!)
Wrote a simple query to extract just the cities (only the PPLC, PPLA and PPLA2 records).
This left me with a manageable table of 9112 records (with lat / long and country code) which covers all the cities in the world. I then wrote my own code to query the data.
Not ideal, but I needed a solution.
I know this post is very old but for thouse who are looking for a simple solution that can be integrated in 5 minutes here is the link:
Geocomplete jQuery...
For my case I followed this steps:
1 - Download the plugin from here.
2 - Add the jquery.geocomplete.js or jquery.geocomplete.min.js file into your javascript folder of your project.
3 - Call this file in script tags on the html page where you have the input field that you have to autocomplete with cities:
<script src='/PathToTheFile/jquery.geocomplete.js'></script>
4 - To convert an input into an autocomplete field, simply call the Geocomplete plugin in script tags: <script>
$("#IdOfTheInputField").geocomplete(); // Option 1: Call on element.
$.fn.geocomplete("input"); // Option 2: Pass element as argument.
</script>
5- You can check for the complete list of options on the link provided at the top.
Hope that this helped!