Post by xbyte » Thu Nov 14, 2013 6:40 am

I have looked through the shipping methods and can't find which is the one that will give what I am looking for. I need flat rate shipping for 3 zones, ie, UK, Europe and Rest of the World. Which shipping method should i use? Thanks
Last edited by xbyte on Thu Jan 23, 2014 1:39 am, edited 3 times in total.

Active Member

Posts

Joined
Wed Dec 19, 2012 2:02 am

Post by butte » Thu Nov 14, 2013 9:15 am

Flat rate. You'll need to go into System / Localizations to set up geo zones.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by Johnathan » Thu Nov 14, 2013 10:40 pm

You can use the built-in Weight Based Shipping to set up multiple flat rates, as I describe here:

http://www.opencartnews.com/tutorials/h ... lat-rates/

However, that requires you to set up a "Rest of the World" zone, which means you need to add every country not in Europe. If you want to set it up faster, you can use Multi Flat Rate Shipping, which includes an "All Other Zones" geo zone which serves this purpose.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by xbyte » Fri Nov 15, 2013 6:42 am

butte wrote:Flat rate. You'll need to go into System / Localizations to set up geo zones.
Hello, Butte. You have been such a kind soul. Really appreciate your help. Thanks, Butte for your help once again! Cheers

Active Member

Posts

Joined
Wed Dec 19, 2012 2:02 am

Post by butte » Fri Nov 15, 2013 12:06 pm

You're very welcome. When this seems ready for it, go ahead and edit your opening title Solved, for others' benefit.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by xbyte » Fri Nov 15, 2013 5:38 pm

O sorry I though this is solved, this is driving me nuts. This morning I logged on to the countries in Localization > GEO, added the countries and I got this message.

Notice: Undefined index: zone_id in /home/www/domainname.com/admin/model/localisation/geo_zone.php on line 24Notice: Undefined index: zone_id in /home/www/domainname.com/admin/model/localisation/geo_zone.php on line 24Warning: Cannot modify header information - headers already sent by (output started at /home/www/domainname.com/admin/index.php:83) in /home/www/domainname.com/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/www/domainname.com/admin/index.php:83) in /home/www/domainname.com/vqmod/vqcache/vq2-system_engine_controller.php on line 29

What does then mean? I don't use vqmod but looks like it is something to do with that. Any idea why that is?
Thanks.

Active Member

Posts

Joined
Wed Dec 19, 2012 2:02 am

Post by butte » Sat Nov 16, 2013 12:07 am

(1) On a production box turn error reporting off, error logging on.

(2) What do you mean, you don't use vqmod? Is vqmod installed but just has no extensions other than the mandatory /vqmod/xml/vqmod_opencart.xml file for it to work, or instead have you been under the impression that vqmod is not installed? Do you have a /vqmod/ directory, with at least one /vqmod/xml/ file and with a /vqmod/mods.cache file and at least one /vqmod/cache/ file? I'm unaware of any convenient way to make vqmod show up when it is completely absent.

(3) Somewhere along the line you or that installation had used vqmod, because the /vqmod/cache/ is apparently active. If vqmod is old, you may need to upgrade vqmod itself -- give it a fresh pair of index.php files and run its /vqmod/install/. However, do not simply delete /vqmod/ without also putting back original index.php files -- /vqmod/install/ rewrites the upper portions of them.

(4) Flush /vqmod/mods.cache, /vqmod/cache/, system/cache, and for good measure flush your browser cache and restart browser.

(5) Look in your /vqmod/logs/ and your /system/logs/ for explicit errors.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by xbyte » Sat Nov 16, 2013 2:40 am

Hi,
(1) What do mean in point 1? What do you mean 'production box turn error reporting off, error logging on'? Where is the production box?
(2) Maybe I didnt understand vqmod and what it does. I do have the folder with all the files.
(3) I upgraded vqmod once and had countless and endless of problems. I deleted the all files and restart everything. Not sure if I want to go through it again. Not sure if it was vqmod that cause it or something else. But, that was the last thing I installed before I had the problems.
(4) How do I flush /vqmod/mods.cache?
(5) Look but make no sense to me Last message: PHP Warning: Cannot modify header information - headers already sent by (output started at /home/www/domainname.com/admin/index.php:83) in /home/www/domainname.com/vqmod/vqcache/vq2-system_engine_controller.php on line 29

Thanks.

Active Member

Posts

Joined
Wed Dec 19, 2012 2:02 am

Post by butte » Sat Nov 16, 2013 3:26 am

(1) A production box is a computer that is publically visible on-line ("box" refers to the tower or rack housing drives where webite files reside). You do not want to display errors publically unless you are actively testing something that makes looking at the logs too tedious, and then only for a short while. In admin, System / Settings / Store / Edit / Server change two settings. Uncheck error reporting (which goes onto the screen). Check error logging (which goes into a file, /system/logs/error.txt unless the filename was changed in admin). Save.

(2) Okay, then you do have vqmod but didn't realize it. A file may have reached the server corrupted. Simplest is to reinstall vqmod, using the most recent version. I think it's still at https://code.google.com/p/vqmod/wiki/Install_OpenCart .

(3) When installing vqmod, simplest is . . .
(a) Wipe it out -- delete all /vqmod/ files EXCEPT the /xml/*.xml files to keep those handy,
(b) Make a subdirectory, /vqmod/xml/setaside/ and move your own .xml files into that so that they are out of the way, but delete the vqmod_opencart.xml file (it will be replaced).
(c) Then get the newest vqmod version (https://code.google.com/p/vqmod/wiki/Install_OpenCart).
(d) upload that,
(e) AND upload a fresh virgin pair of OC index.php files (from the OC .zip file's /upload/ tree),
(f) THEN run http:// [full_shop_address]/vqmod/install/ in the address bar. It will immediately say vqmod is installed.

(4) Delete the mods.cache file. Same for the two cache/ directories, delete the files in them.

(5) Possibly or likely a session problem. If you delete the caches listed and then methodically reinstall vqmod, then that might cure the problem. Initially, you'll need the required single .xml file, /vqmod/xml/vqmod_opencart.xml, for it to work. Retry. Your /system/logs/ and /vqmod/logs/ will hold any errors thrown.

THEN you can bring in your other .xml files from the setaside/ and retry. A /vqmod/xml/setaside/ (or similar) helps in sorting out which if any extensions don't work together or with OC.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by xbyte » Sat Nov 16, 2013 7:00 pm

I have done Point 1. Hopefully it answered some of my questions.
Point 2: O man it sounds so complicated. The last time I installed Vqmod it breaks my site. It stops working properly and I am too scare to do it again. What is the purpose of Vqmod and do i need fresh installation?
Point 3: I have live update xml in the xml folder in Vqmod. If Vqmod is corrupted then why is my live update working fine? Sorry, too many questions. I don't understand the function of Vqmod to know what it does.
Thanks

Active Member

Posts

Joined
Wed Dec 19, 2012 2:02 am

Post by butte » Sun Nov 17, 2013 12:17 am

The .xml extensions read core files to find particular segments of code, and substitute something else to do, without rewriting core files. What drives that is vqmod. When vqmod installs it rewrites the tops of the two index.php files so that it can run. That is normally a quick done deed.

Installing vqmod breaks your site but then live update is working okay, how does that fit together design-wise? If the installation of vqmod itself broke your site, then live update should not have suddenly made everything okay, and if live update is working okay, then vqmod is working okay. The only sensible exception would be if you used an old version of vqmod itself.

Make a subdirectory along the lines of /vqmod/xml/setaside/ and put all of your .xml files there EXCEPT vqmod_opencart.xml and your live update. Presumably all will be hunky-dory. Whatever "broke your site" may be one of the extensions still set aside, so slip those back into place (/vqmod/xml/) one by one to see what happens (works or conflicts).

Please tell us you do not have "free" hosting.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by xbyte » Sun Nov 17, 2013 8:57 am

Hi Butte. Thanks for your suggestion. I will try that. No, I do not have free hosting. I do not believe in free hosting. There is something else I would like to ask. Not sure if I should open a new request. When I try to register there is an option to subscribe to newsletter. Where can I remove that? I am not offering newsletter. Thanks.

Active Member

Posts

Joined
Wed Dec 19, 2012 2:02 am

Post by butte » Sun Nov 17, 2013 1:30 pm

Version and theme? I don't see those above, they were skipped over.

You can think of the newsletter option as customer consent to be informed of whatever might be appropriate to say to all customers at once. It doesn't mean that you'll send out newsletters. You could change the language/[English]/account/registrer.php file (back it up first), so that 'Newsletter'; reads 'Occasional Customer Notices'; instead (only to the right of the = separator, keeping the single quote marks and the semicolon). Otherwise, . . .

Back up register.tpl, then look for something along these lines (here in 1.5.6.0):

<div class="content">
<table class="form">
<tr>
<td><?php echo $entry_newsletter; ?></td>
<td><?php if ($newsletter) { ?>
<input type="radio" name="newsletter" value="1" checked="checked" />
<?php echo $text_yes; ?>
<input type="radio" name="newsletter" value="0" />
<?php echo $text_no; ?>
<?php } else { ?>
<input type="radio" name="newsletter" value="1" />
<?php echo $text_yes; ?>
<input type="radio" name="newsletter" value="0" checked="checked" />
<?php echo $text_no; ?>
<?php } ?></td>
</tr>
</table>
</div>

Select the entire div. Then try with one key what first makes immediate sense.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by xbyte » Mon Nov 18, 2013 6:16 am

Thanks again, Butte. You have been a great help. I wish I know the system like you do!! What a gift! Where do I remove the menu link on the right that says 'Newsletter'?
Cheers

Active Member

Posts

Joined
Wed Dec 19, 2012 2:02 am

Post by butte » Mon Nov 18, 2013 12:16 pm

You're welcome. Familiarity with it follows from paying attention to it.

Near bottom of account.tpl you should see something along the lines of:

<h2><?php echo $text_my_newsletter; ?></h2>
<div class="content">
<ul>
<li><a href="<?php echo $newsletter; ?>"><?php echo $text_newsletter; ?></a></li>
</ul>
</div>

Select All, and knock your socks and hat off.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by malrubaie » Mon Nov 18, 2013 6:03 pm

butte wrote:Flat rate. You'll need to go into System / Localizations to set up geo zones.
I used this method with Weight based shipping and it worked. I used to have the same problem.

I created 3 new geo zones then went back to Extentions > shipping > wieght based shipping. And set it up to use the new zones

Thank you

Opencart Version 1.5.5.1


Newbie

Posts

Joined
Sun Nov 17, 2013 7:53 am
Who is online

Users browsing this forum: No registered users and 1 guest