I "refused" to add the countries one at a time... , this vQmod saved a lot of work. Added all countries in a few seconds and removed a few that I didn't want in the list, then it's done. THANK YOU OSWorX!OSWorX wrote:Maybe you want to give this mod a try: http://home.osworx.net/en/downloads/cat ... qmod-filesVaporJedi wrote:This doesn't work in 1.5.5.1 .
Any ideas what to do? I installed the vqmod extension.. but it doesnt make the button for all zones/all countries appear.
Should work also on slower machines.
Always a pleasure to helpjsw wrote:I "refused" to add the countries one at a time... , this vQmod saved a lot of work. Added all countries in a few seconds and removed a few that I didn't want in the list, then it's done. THANK YOU OSWorX!OSWorX wrote:Maybe you want to give this mod a try: http://home.osworx.net/en/downloads/cat ... qmod-filesVaporJedi wrote:This doesn't work in 1.5.5.1 .
Any ideas what to do? I installed the vqmod extension.. but it doesnt make the button for all zones/all countries appear.
Should work also on slower machines.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
from emilpk code i modified into :
Code: Select all
<a onclick="addAllGeoZones();" class="button"><span class="button_left button_insert"></span><span class="button_middle">Add All Countries</span><span class="button_right"></span></a>
<script type="text/javascript">
function addAllGeoZones() {
for(i=1;i<=239;i++){ addGeoZone(); $("#country" + (i-1)).val(i); }
}
</script>
Hi,
Do you have an extention that can solve OC problem with counties sales tax?
In California, if shipping address is Sausalito then sales tax is 8.5% and rest of California is 7.5%.
So lets say that I want to add tax only when shipping address is from San Francisco, Sausalito and Reno.
San Francisco and Sausalito belongs to California but have different sales tax.
Hope you get my point and you have solution for this.
Thanks
Do you have an extention that can solve OC problem with counties sales tax?
In California, if shipping address is Sausalito then sales tax is 8.5% and rest of California is 7.5%.
So lets say that I want to add tax only when shipping address is from San Francisco, Sausalito and Reno.
San Francisco and Sausalito belongs to California but have different sales tax.
Hope you get my point and you have solution for this.
Thanks
Q, what you did totally makes it possible to enable clients to do it in a click. That's a great solution, but it seems nothing happens when the button is clicked (using OC v.1.5.6.1).ambrosite wrote:I am really surprised that people are trying to do this with JavaScript? That's crazy. You can set up an "All Countries" Geo Zone in a half second by running a SQL query directly against the database.
......
Code: Select all
INSERT INTO oc_zone_to_geo_zone (country_id, zone_id, geo_zone_id, date_added, date_modified) SELECT oc_country.country_id, 0, 4, NOW(), NOW() FROM oc_country WHERE oc_country.name NOT IN ('United States');
Ambrosite, you're I life saver and I feel like a freaking moron!
Thank you! Thank you! Thank you!
Attachments
Give_that_man_a_cookie.jpg (9.97 KiB) Viewed 9602 times
WIP Design Publicidade e Marketing Digital
keep in mind that method was from 1.4.x and also takes about a minute for anything to show up because it is trying to use javascript to loop 240 times and load ajax zone info for each. But yes the database insert method is just better overall since it is a one time thingEd_Rolla wrote: Q, what you did totally makes it possible to enable clients to do it in a click. That's a great solution, but it seems nothing happens when the button is clicked (using OC v.1.5.6.1).
Yeap. I clicked on it and nothing actually happened. The browser didn't even crash... almost as the button had no action. :/
But, no sweat. I went around it with SQL.
Again, great job!
But, no sweat. I went around it with SQL.
Again, great job!
WIP Design Publicidade e Marketing Digital
I just wanted to say a big thank you to @OSWorX for the great vqmod. It was exactly what I needed and was really quick to install on my end
Hi,
I have updated this great script for opencart 2.0 and created a VQMOD.
I have updated this great script for opencart 2.0 and created a VQMOD.
I put your xml file into my directory and it didn't work or do anything as far as i can see. I have opencart 2.0.1.1rch wrote:Hi,
I have updated this great script for opencart 2.0 and created a VQMOD.
I am also not able to get this to work on Opencart 2.0+. Can someone walk us through using it on the new versions?
Small Business Joomla! Website Design - Simple CMS Design
http://www.simplecmsdesign.com
The .xml that rch posted has wrong path to the file:jthrongard wrote:I am also not able to get this to work on Opencart 2.0+. Can someone walk us through using it on the new versions?
Replace:
Code: Select all
<file name="zowa/view/template/localisation/geo_zone_form.tpl">
Code: Select all
<file name="admin/view/template/localisation/geo_zone_form.tpl">
Hi, i know this is a old post, but i need it for 2.1.0.1 is there any way to get it to work? Its not working for me. I see the button but nothing happens.
Sensors for arduino http://www.arduinosensors.nl
This code below still works on 2.1.0.1
Code: Select all
<a onclick="addAllGeoZones();" class="button"><span class="button_left button_insert"></span><span class="button_middle">Add All Countries</span><span class="button_right"></span></a>
<script type="text/javascript">
function addAllGeoZones() {
for(i=1;i<=239;i++){ addGeoZone(); $("#country" + (i-1)).val(i); }
}
</script>
Sensors for arduino http://www.arduinosensors.nl
Tried and it works on 2.3.0.2. Here is the edited working file with Dana's line of customization.
Credit goes to rch and Dana. Thank you so much guys, solved me a big headache!
Credit goes to rch and Dana. Thank you so much guys, solved me a big headache!
Who is online
Users browsing this forum: No registered users and 91 guests