Post by Tokai » Sun Aug 19, 2007 10:45 pm

Okay, I take it that the Shipping Flat Rate is the only one that we can have unless we program a new Rate.php am I correct? Or have I been missing something?

I wanted to have 5 types of postage/shipping, 1st class, 2nd class and Standard Parcels, Europe and International.

Not being a PHP expert by any means this is going to be difficult, although I have been known to hack if the format is very similar.  And I guess by looking at the coding that it would involve a fair amount...Any ideas on this?

The other thing is I just got the flat rate at moment, and tested it if a person bought 1 book it would cost £1.50 if they bought two in theory it should be £3 but I see it doesn't happen that way, it only adds £1.50 which is madness if you think someone could by 3 or 4 books? Have I done something wrong? Just wonder why we need the weight of the item if it not corresponding to the shipping... :-\

Spirit Mind Body UK Directory | iPyramidia Holistic Web Design


New member

Posts

Joined
Tue Aug 14, 2007 4:55 pm


Post by Daniel » Sun Aug 19, 2007 11:43 pm

I only created a basic shipping module. I was hoping other epople would develop more shipping nad payment methods them selves.

I will add more later on,but at the moment I'm addign the contribution section to the OpenCart web site.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Tokai » Mon Aug 20, 2007 6:16 am

I am sure you have lots to do, and I would help if knew what and where I would need to create for additional shipping.  Could you give me an idea?

Spirit Mind Body UK Directory | iPyramidia Holistic Web Design


New member

Posts

Joined
Tue Aug 14, 2007 4:55 pm


Post by Daniel » Mon Aug 20, 2007 6:23 am

Tokai wrote: I am sure you have lots to do, and I would help if knew what and where I would need to create for additional shipping.  Could you give me an idea?
Open up the extension / shipping / flat.php

find this code:

      $quote_data['flat'] = array(
        'id'    => 'flat_flat',
        'title' => $this->language->get('text_flat_description'),
        'cost'  => $this->config->get('flat_cost'),
        'text'  => $this->currency->format($this->config->get('flat_cost') + ($this->config->get('flat_cost') / 100 * $this->tax->getRate($this->config->get('flat_tax_class_id'))))
      );


now you can have

// First class
      $quote_data['first'] = array(
        'id'    => 'flat_flat',
        'title' => $this->language->get('text_flat_description'),
        'cost'  => $this->config->get('flat_cost'),
        'text'  => $this->currency->format($this->config->get('flat_cost') + ($this->config->get('flat_cost') / 100 * $this->tax->getRate($this->config->get('flat_tax_class_id'))))
      );

//Second class
      $quote_data['second'] = array(
        'id'    => 'flat_flat',
        'title' => $this->language->get('text_flat_description'),
        'cost'  => $this->config->get('flat_cost'),
        'text'  => $this->currency->format($this->config->get('flat_cost') + ($this->config->get('flat_cost') / 100 * $this->tax->getRate($this->config->get('flat_tax_class_id'))))
      );

etc..

You need to change the cost for each one.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Tokai » Mon Aug 20, 2007 7:00 am

Oh Wow  :o  do I just add the code underneath and create any additional arrays like the 1st and second? And I don't need to do anything else to a php file just add in admin panel I presume? Am I correct?

Spirit Mind Body UK Directory | iPyramidia Holistic Web Design


New member

Posts

Joined
Tue Aug 14, 2007 4:55 pm


Post by Tokai » Mon Aug 20, 2007 7:35 am

I'm sorry Daniel, I really am a thicket when it comes to these things, I got 3 of the same flat rate shipping, on the front end, when I tried to add a new one in Shipping in admin, it yelled at me  :'( said permission denied. Does that mean I am not putting the coding right for:

* Code: 
* Directory:
* Filename:
* Configuration Controller:

Do I have to do a separate php page for each one perhaps?

I was wondering if i had to change something else like 'id' or add to the language files or something...sorry to be a pain...

Spirit Mind Body UK Directory | iPyramidia Holistic Web Design


New member

Posts

Joined
Tue Aug 14, 2007 4:55 pm


Post by Daniel » Mon Aug 20, 2007 8:05 am

Tokai wrote: I'm sorry Daniel, I really am a thicket when it comes to these things, I got 3 of the same flat rate shipping, on the front end, when I tried to add a new one in Shipping in admin, it yelled at me  :'( said permission denied. Does that mean I am not putting the coding right for:

* Code: 
* Directory:
* Filename:
* Configuration Controller:

Do I have to do a separate php page for each one perhaps?

I was wondering if i had to change something else like 'id' or add to the language files or something...sorry to be a pain...
Don't worry your not a pain. Bascly if you PHP is not so great I recommend you just put the prices directly in the code.


Where it says:

'cost'  => $this->config->get('flat_cost'),

change to your price;

'cost'  => 10.00,

I am planing to add more shipping methods and payment methods. I just want to try to get rid of any bugs first.I might be able to add more methods next week.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Tokai » Mon Aug 20, 2007 8:30 pm

Thank You Daniel I shall give it a whirl!

Spirit Mind Body UK Directory | iPyramidia Holistic Web Design


New member

Posts

Joined
Tue Aug 14, 2007 4:55 pm


Post by Tokai » Mon Aug 27, 2007 3:20 am

I have kept one flat rate for now

but I still none the wiser on shipping, can someone please explain how it works? I thought it was:
number of items + flat rate (x items)

So far if a customer buys one book costing £2.50 with shipping flat rate of £2 the total upon check out is £4.50 all well and good goes to paypal.

If customer buys two books which total £4.50 + shipping flat rate is still £2, not 2x shipping rate, so it will not cover the cost of shipping.

Please help me solve this :'(

Oh and what is the point of the weight?

Spirit Mind Body UK Directory | iPyramidia Holistic Web Design


New member

Posts

Joined
Tue Aug 14, 2007 4:55 pm


Post by jay07 » Fri Sep 14, 2007 9:05 am

Tokai, a "flate rate" is 1 rate for the whole order.

What you want is shipping cost per item. Different thing.

Newbie

Posts

Joined
Wed Aug 15, 2007 11:36 am

Post by Tokai » Fri Sep 14, 2007 6:07 pm

Thanks for that Jay07, actually don't see the point then of this, because if someone orders more than one item either you gotta charge a fortune to cover that probability, which means the customer loses out, or you lose out. :-\

So which is the one based on the weight? i.e. weight of item x set price per gram or kilo

Spirit Mind Body UK Directory | iPyramidia Holistic Web Design


New member

Posts

Joined
Tue Aug 14, 2007 4:55 pm


Post by Daniel » Sat Sep 15, 2007 1:01 am

Tokai wrote: Thanks for that Jay07, actually don't see the point then of this, because if someone orders more than one item either you gotta charge a fortune to cover that probability, which means the customer loses out, or you lose out. :-\

So which is the one based on the weight? i.e. weight of item x set price per gram or kilo
I have added this function in v0.7.6.

Goto zone shipping module and set the cost like this foreach zone:

5:10.00,10:25.00

weight:cost,weight:cost

Sorry I didn't include the proper instructions to how it works.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Tokai » Sat Sep 15, 2007 2:29 am

It's all right petal, I understand you have been a busy person these past few weeks.  I did wonder how that particular shipping mod worked.

So thank you for clarifying that for me.  :)

Spirit Mind Body UK Directory | iPyramidia Holistic Web Design


New member

Posts

Joined
Tue Aug 14, 2007 4:55 pm

Who is online

Users browsing this forum: No registered users and 4 guests