Cart question (a problem actually!)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
sarah_h
Forum Members
Forum Members
Posts: 189
Joined: Tue Apr 25, 2006 8:30 am

Cart question (a problem actually!)

Post by sarah_h »

Hi All,

1.4.1 "Spring Garden"
Cart 1.1
Products 2.0.2
Orders 1.0.1
Destination Based Shipping 1.0
Paypal Gateway 1.1

All installed on localhost, mysql5 php 4

I have a working site here: www.i n t ot h e s t i l l p o i n t.co.uk (remove spaces)

This is an earlier 1.3.1 version of cmsms and the cart works well after hero, Calguy made some mods for me (thanks). I'll get to the point. I've installed a new version of cmsms as above and I followed the instructions found here:

http://www.scribd.com/word/full/2530169 ... o7oofoha4o

on how to install the cart stuff. It worked for me the first time around. Now this time I've followed the same instructions but this time I've hit a snag. I can add products to the cart and I can view the cart but when I go to the checkout I see this:

Fatal error: Cannot redeclare validate_billing_info() (previously declared in ****\modules\Orders\action.default.php:30) in ****\modules\Orders\action.default.php on line 70

I also noticed this in orders>Billing form templates>sample

--Add Me - module:Orders string:addedit_billingform_template--

I'm not sure what's going on here and have done some digging but can't see anything obvious. Would anyone be able to offer any pointers?

I hope someone can help in some way.

Sarah
sarah_h
Forum Members
Forum Members
Posts: 189
Joined: Tue Apr 25, 2006 8:30 am

[solved - kind of] Re: Cart question (a problem actually!)

Post by sarah_h »

Hi

Well after scratching around and blindly trying things to sort out the problem below I got it to work by doing this. Look away - this might be scary, it was for me!

I moved the functions in question: validate_billing_info & validate_shipping_info from action.default.php to orders.module.php and now it all works. I'm at a total loss why I was seeing the cannot redeclare error, and tried for days to figure it all out but this was the only way I could get it to work.

There is a better/correct way. Of this I am sure but with deadlines looming one turns to desperate measures.
Post Reply

Return to “CMSMS Core”