Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi,

 

I just installed the individual product shipping contrib and now I get an error in my shop:

 

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/www/doc/8531/xxxxxx/catalog/checkout_shipping.php on line 129

 

I changed this code:

if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {

$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']);

 

 

to:

 

if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {

$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']),

'invcost' => $shipping_modules->get_shiptotal());

 

 

 

Who can help?

Posted
Hi,

 

I just installed the individual product shipping contrib and now I get an error in my shop:

I changed this code:

to:

Who can help?

 

Try this ..

if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {
$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'],
'invcost' => $shipping_modules->get_shiptotal());

Posted

I tried it now. Now there comes the following error:

 

Parse error: syntax error, unexpected '}' in /home/www/doc/8531/cccccccc/catalog/checkout_shipping.php on line 382

 

 

I cannot find whats wrong there. Can Anybody help? Here is my checkout_shipping.php -> www.shop.tischfussball-online.com/checkout_shipping.txt

Posted
I tried it now. Now there comes the following error:

 

Parse error: syntax error, unexpected '}' in /home/www/doc/8531/cccccccc/catalog/checkout_shipping.php on line 382

I cannot find whats wrong there. Can Anybody help? Here is my checkout_shipping.php -> www.shop.tischfussball-online.com/checkout_shipping.txt

 

I can't help further, you have added the individual shipping contribution wrongly. you need to backtrack and reapply.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...