Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing little brackets, big headache


yesitshere

Recommended Posts

Posted

Hi to all,

 

I've been looking around to remove the (lbs) on the checkout_confirmation.php page where it gives the total sum of the products and shipping costs.

 

The only thing I found so far is to change lbs to kg, which not what I need + I succeeded in removing the word lbs.

 

The problem is removing those brackets -after the word Shipping, and before the ":"-, and as much as I tried playing around I did not manage so far.

 

 

 

00000000000000000000000v.jpg

 

It seems ridiculously easy, but I'm still not able to do it...

 

Thank you so much in advance.

Posted

Hi all,

 

I cannot understand that no one had the same problem before...

 

I charge shipping according to order price elevation, so the words kg/lbs and it's brackets are obsolete.

 

Thanks guys !

Posted

Check the file in

catalog / includes / languages / english / modules / shipping / Your installed module.php

The code is likely to be there

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

No big headaches, you need the knowledge of osc and php language!

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted
okay, lets see, do you have the answer....

 

Hey Alex, I'm also called Alex by the way, but I still cannot find a way out, and believe me, I'm not the kind that surfs around for 20 minutes and then already asks.

 

I'll sweat several days before I bother other people.

Posted
Re: Please...

 

 

Download full backup of your site (all the files) then search for "Shipping" case sensitive with any file search program.

If no result do the same search in the database.

 

 

Stanislav

Posted
Re: Please...

Just so I understand what you want, you want the weight removed from the shipping. Also, you would like the surrounding parenthesis removed as well?

 

Amit

Posted
Download full backup of your site (all the files) then search for "Shipping" case sensitive with any file search program.

If no result do the same search in the database.

 

 

Stanislav

 

I did already-case sensitive obviously-, but not in the database,

 

will try.

thanks

 

 

Just so I understand what you want, you want the weight removed from the shipping. Also, you would like the surrounding parenthesis removed as well?

 

Amit

 

The weight I have managed to remove, for some reason, the brackets (not parenthesis) have a different source.

 

thanks

Posted
Nope, it's not in the sql either.

 

Can you give me a link in PM where I can download the full_site_backup.zip and the full_database_dump.zip

 

?

 

 

Stanislav

Posted

done,

 

I guess the full_database_dump.zip means the sql backup that is done via the admin section, right?

 

thank you so much.

Posted
done,

 

I guess the full_database_dump.zip means the sql backup that is done via the admin section, right?

 

thank you so much.

 

 

Yes

 

Have you tried to change this code in the catalog/checkout_shipping.php :

 

$shipping = array('id' => $shipping,

'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),

'cost' => $quote[0]['methods'][0]['cost']);

 

 

 

Stanislav

Posted

Genius !!!

 

Thanks a lot !

 

 

After all changes, my code looks like this:

 

 

$shipping = array('id' => $shipping,

'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title']:$quote[0]['module'].$quote[0]['methods'][0]['title'].),

'cost' => $quote[0]['methods'][0]['cost']);

 

 

the result is:

Sub-Total: €263.00

Shipping : €15.00

Total: €278.00

 

 

is there a way, to get rid of the space in Shipping : (that is between the word "shipping" and the ":")?

Posted
Genius !!!

 

Thanks a lot !

 

 

After all changes, my code looks like this:

 

 

$shipping = array('id' => $shipping,

'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title']:$quote[0]['module'].$quote[0]['methods'][0]['title'].),

'cost' => $quote[0]['methods'][0]['cost']);

 

 

the result is:

Sub-Total: €263.00

Shipping : €15.00

Total: €278.00

 

 

is there a way, to get rid of the space in Shipping : (that is between the word "shipping" and the ":")?

 

Check again :

includes/languages/english/modules/shipping/mzmt.php

includes/modules/shipping/mzmt.php - function quote()

 

Try to remove .$quote[0]['methods'][0]['title'].

in the checkout_shipping.php

 

So the code will look like:

 

$shipping = array('id' => $shipping,

'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module']),

'cost' => $quote[0]['methods'][0]['cost']);

 

 

 

Stanislav

Posted
Check again :

includes/languages/english/modules/shipping/mzmt.php

includes/modules/shipping/mzmt.php - function quote()

 

Try to remove .$quote[0]['methods'][0]['title'].

in the checkout_shipping.php

 

So the code will look like:

 

$shipping = array('id' => $shipping,

'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module']),

'cost' => $quote[0]['methods'][0]['cost']);

Stanislav

 

Super Genius,

 

thanks so much.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...