Post by mikki » Tue Oct 28, 2008 10:08 pm

Hey Everyone,

I'm sure this is a painfully obvious question, but I couldn't really find anything that directly answered my question with a search.

When you get to the "shipping method" I just want there to be 3 seperate shipping options. ie:

1) Jewellery ONLY UK Purchase P&P £3.95
2) All other standard UK P&P £4.95
3) All non-UK orders P&P £6.99

The customer just selects which one is approprite to their order. In the back-end can i just make 3 copies of the Flat Rate module each with a different price?

Thanks.

New member

Posts

Joined
Mon May 19, 2008 11:01 pm

Post by jty » Tue Oct 28, 2008 10:23 pm

.... mmmm .... I can't see a way to have more than one flat rate shipping so I resorted to lateral thinking.
You could triplicate the Flat Rate shipping module but that's too hard for those of us who are non techos
The other way I'm thinking is to use Zone Based shipping and create your 3 zones as 1. Jewellery 2. Standard 3. Non-Standard
Zone Based shipping requires weights so just make them up to suit your requirements if you aren't using weight.
Of course, the customer can buy pink lemons and still choose jewellery but them be the hazards of our trade  ::)
Maybe someone else has a better answer. I'm just taking a coffee break so I could be very wrong  :D

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Tue Oct 28, 2008 10:30 pm

The problem with the zone shipping is there's no easy to include ALL "non-uk" zones without adding each of the remaining 250+ countries 1 by 1. Zone shipping really needs a reverse method to mean all zones except the defined one.

But for now, I'd say triplicating would be the only way. Flat rate really needs to be modified to allow multiple rates, kinda like zone shipping and usps shows multiple rates.

I'll add it to the list.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by jty » Tue Oct 28, 2008 10:47 pm

Qphoria wrote: without adding each of the remaining 250+ countries 1 by 1.
:o That's gonna need alot of coffee. Yikes.
But for now, I'd say triplicating would be the only way.
This option needs brain cells. More coffee.
Flat rate really needs to be modified to allow multiple rates, kinda like zone shipping and usps shows multiple rates.
But flat is flat. How can flat be non-flat
Is this like how the world use to be flat and then the developers went and made it round by adding more countries :D

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Wed Oct 29, 2008 12:06 am

jty wrote: But flat is flat. How can flat be non-flat
Is this like how the world use to be flat and then the developers went and made it round by adding more countries :D
Flat will still be flat... just multiple flat dimensions :)

Perhaps a new shipping module called Pick-a-Ship :)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mikki » Wed Oct 29, 2008 1:34 am

Right. So still need a little help with this one. Thanks for all your replies so far.

http://www.vootrunner.com/oc-shipping.jpg

I've duplicated the falt rate shipping extension 3 times and named them (although this doesn't seem to effect the displayed text in the order!?). However, the problem now is they are all exactly the same. A change to one will be mirrored by the others. I can't change the code because that makes things break. Can i make flat2.php, flat3.php so they are writting to different files? But then i don't know if the cart is going to be looking specifically for flat.php and it will all mess up again.

How hard can it be to just have 3 payment options listed? :]

New member

Posts

Joined
Mon May 19, 2008 11:01 pm

Post by Qphoria » Wed Oct 29, 2008 1:45 am

You need to have diff codes, filenames, and controllers too.
Code:
flat
flat2
flat3

filenames:
flat.php
flat2.php
flat3.php

controllers:
shipping_flat
shipping_flat2
shipping_flat3

which means you need to also clone the corresponding files
Last edited by Qphoria on Wed Oct 29, 2008 1:47 am, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mikki » Wed Oct 29, 2008 1:57 am

Ahh. That would make sense.

One last before i try and see how wrong it will all go:

Which versions of the files do i need to duplicate? Both flat.php and shipping_flat exist in multiple locations.

New member

Posts

Joined
Mon May 19, 2008 11:01 pm

Post by Qphoria » Wed Oct 29, 2008 2:35 am

all of them

/catalog/extension/module/shipping/flat.php
/catalog/language/english/extension/shipping/flat.php
/admin/controller/shipping_flat.php
/admin/language/english/controller/shipping_flat.php
/admin/template/default/content/shipping_flat.tpl

All need to be cloned twice and named accordingly
Last edited by Qphoria on Thu Oct 30, 2008 7:44 pm, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mikki » Wed Oct 29, 2008 4:38 am

Now the fun begins.

All instances of flat.php and shipping_flat.php have been duplicated from their specific folders and named with 2 and 3.

However, I now get:

Fatal error: Cannot redeclare class ShippingFlat in /home/mikki/public_html/foxy/oc/catalog/extension/shipping/flat2.php on line 52
On the actual site.

And also if i try and install the extensions in admin I get:
Permission Denied!
You do not have permission to access this page, please refer to your system administrator.


Once again re-afirming why I enjoy being a graphic designer and not a web developer :]

New member

Posts

Joined
Mon May 19, 2008 11:01 pm

Post by Qphoria » Wed Oct 29, 2008 5:31 am

mikki wrote: However, I now get:

Fatal error: Cannot redeclare class ShippingFlat in /home/mikki/public_html/foxy/oc/catalog/extension/shipping/flat2.php on line 52
On the actual site.
In catalog/extension/shipping/flat2.php Be sure you change the class name at the top of each file from:
class ShippingFlat extends Shipping {
to
class ShippingFlat2 extends Shipping {
same in flat3.php

Same deal in:
admin/controller/shipping_flat2.php & 3

mikki wrote: And also if i try and install the extensions in admin I get:
Permission Denied!
You do not have permission to access this page, please refer to your system administrator.
If you got the latest 0.7.9 you wouldn't have this problem :)
But since you do have this problem, you just need to goto
Admin->Configure->User Groups
and give the top admin access to the new files for modify and access

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mikki » Wed Oct 29, 2008 7:13 am

When i started this I did have the latest version of OC :)


flat2.php (and 3) changed. I also changed the language->load url.

address  =& $locator->get('address');
$this->config  =& $locator->get('config');
$this->currency =& $locator->get('currency');
$this->database =& $locator->get('database');
$this->language =& $locator->get('language');
$this->session  =& $locator->get('session');
$this->tax      =& $locator->get('tax');

$this->language->load('extension/shipping/flat2.php');
  }



shipping_flat2.php (and 3) changed. Again, also amended the language->load url.

locator->get('database');
$language =& $this->locator->get('language');
$module  =& $this->locator->get('module');
$request  =& $this->locator->get('request');
$response =& $this->locator->get('response');
$template =& $this->locator->get('template');
$session  =& $this->locator->get('session');
$url      =& $this->locator->get('url');

$language->load('controller/shipping_flat2.php');


However in the shipping_flat files there are lots of other references to the file and location and i'm wondering if all instances need to be changed?

At the moment if i try and use intall in admin it says it's done it, but the extension is still showing uninstalled and it disables the original extension.

I'd like to take this time to say thank you for all your help so far. Especially as the launch party is in a weeks time!

New member

Posts

Joined
Mon May 19, 2008 11:01 pm

Post by Qphoria » Thu Oct 30, 2008 7:43 pm

mikki wrote: When i started this I did have the latest version of OC :)
Latest 0.7.8 ? 0.7.9 is more betterer :)
mikki wrote: However in the shipping_flat files there are lots of other references to the file and location and i'm wondering if all instances need to be changed?

At the moment if i try and use intall in admin it says it's done it, but the extension is still showing uninstalled and it disables the original extension.
The only files that should matter are the ones that have flat or shipping_flat in them
Can you zip up all the new files that you made and attach them so I can have a look
Last edited by Qphoria on Thu Oct 30, 2008 7:46 pm, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by daves1123 » Wed Dec 03, 2008 8:56 pm

Hello Qphoria,

This is the perfect thread for me, I am having the exact same issue mikki is/was having, and am also stuck on the last comment that was made.

I am trying to duplicate the weight base shipping module. When i try to add the new shipping module i keep getting the message:
"Permission Denied!
You do not have permission to access this page, please refer to your system administrator."

Could you please share on how I can solved this problem.

Newbie

Posts

Joined
Wed Nov 12, 2008 6:36 pm

Post by Qphoria » Thu Dec 04, 2008 12:48 am

get the latest version of 0.7.9 and that will remove that problem once and for all

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 4 guests