darkeye78x Posted March 10, 2008 Posted March 10, 2008 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? Quote
♥FWR Media Posted March 10, 2008 Posted March 10, 2008 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()); Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
darkeye78x Posted March 10, 2008 Author Posted March 10, 2008 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 Quote
♥FWR Media Posted March 10, 2008 Posted March 10, 2008 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. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Recommended Posts
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.