Guest Posted December 4, 2003 Posted December 4, 2003 I am getting the following error message when I try to go through the checkout (checkout_payment.php): Fatal error: Call to undefined function: count_contents_virtual() in /home/beadshop/public_html/shop/catalog/checkout_payment.php on line 75 I have installed the coupon/voucher mod, and have tried to set the shop up to tex shoppers in Washington... I don't know if that may have made a different, but I thought it best to mention it here... Please anyone, help? Thanks...
Guest Posted December 4, 2003 Posted December 4, 2003 Hi Sussie, I don't think you have added the following in includes.classes/shopping_cart.php just before the last bracket // ------------------------ ICWILSON CREDIT CLASS Gift Voucher Addittion-------------------------------Start // amend count_contents to show nil contents for shipping // as we don't want to quote for 'virtual' item // GLOBAL CONSTANTS if NO_COUNT_ZERO_WEIGHT is true then we don't count any product with a weight // which is less than or equal to MINIMUM_WEIGHT // otherwise we just don't count gift certificates function count_contents_virtual() { // get total number of items in cart disregard gift vouchers $total_items = 0; if (is_array($this->contents)) { reset($this->contents); while (list($products_id, ) = each($this->contents)) { $no_count = false; $gv_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . $products_id . "'"); $gv_result = tep_db_fetch_array($gv_query); if (ereg('^GIFT', $gv_result['products_model'])) { $no_count=true; } if (NO_COUNT_ZERO_WEIGHT == 1) { $gv_query = tep_db_query("select products_weight from " . TABLE_PRODUCTS . " where products_id = '" . tep_get_prid($products_id) . "'"); $gv_result=tep_db_fetch_array($gv_query); if ($gv_result['products_weight']<=MINIMUM_WEIGHT) { $no_count=true; } } if (!$no_count) $total_items += $this->get_quantity($products_id); } } return $total_items; } // ------------------------ ICWILSON CREDIT CLASS Gift Voucher Addittion-------------------------------End Regards Chris
Guest Posted December 4, 2003 Posted December 4, 2003 Thanks for the kind help. I added that code before the ?> and that had no effect, so I placed it before the last } (which is I think where you meant.. I just wasn't sure) and I received the following error message in checkout_payment.php Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /home/beadshop/public_html/shop/catalog/includes/classes/shopping_cart.php on line 411 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/beadshop/public_html/shop/catalog/includes/classes/shopping_cart.php:411) in /home/beadshop/public_html/shop/catalog/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/beadshop/public_html/shop/catalog/includes/classes/shopping_cart.php:411) in /home/beadshop/public_html/shop/catalog/includes/functions/sessions.php on line 67 Fatal error: Cannot instantiate non-existent class: shoppingcart in /home/beadshop/public_html/shop/catalog/includes/application_top.php on line 253 I'd be so grateful for any help, :(
Guest Posted December 4, 2003 Posted December 4, 2003 Hi Susie, Have you made all the other required changes to the file? Chris
Guest Posted December 5, 2003 Posted December 5, 2003 Thanks for your patience with me... I've been running around in circles without checking that! I've rechecked all the pages that required editing, and realised I had missed a part. That last edit you gave me did the trick, and I can now access checkout_payment.php... Only half of this page loads, and I've have the following error message: Fatal error: Call to undefined function: credit_selection() in /home/beadshop/public_html/shop/catalog/checkout_payment.php on line 324 And I've checked that page and the new edited file is uploaded fine. I'm sorry to be such a pain. It seems I am having to do this page by page, :( And thanks again for the help
Guest Posted December 5, 2003 Posted December 5, 2003 Hi Susie, In catalog/includes/classes/order_total.php I don't think you have made the changes tot the file :rolleyes: Hope this helps It's worth it, its a great contribution. And you've yet to sort out the settings..... :unsure: Chris
Guest Posted December 5, 2003 Posted December 5, 2003 Thanks very much. I reloaded all the included files and it seems..I... maybe missed that one... or! I don't know... but that's fixed the problem.. I think I'm close to being done now, :D Which settings do I need to sort? I've done all the parts in the installation about the order total orders.... (in the admin panel, modules>order total section) is there more? :o (oh.... not hugely important... but all the text on gv_admin.php is still in the blockcaps code type mode... COUPON_NAME COUPON_AMOUNT COUPON_CODE TABLE_HEADING_ACTION Displaying 0 to 0 (of 0 coupons) Page 0 of 0 [] COUPON_NAME :: COUPON_AMOUNT :: $0.00 COUPON_STARTDATE :: COUPON_FINISHDATE :: COUPON_USES_COUPON :: COUPON_USES_USER :: COUPON_PRODUCTS :: NONE COUPON_CATEGORIES :: NONE DATE_CREATED :: DATE_MODIFIED :: I can't understand why......) THANKS AGAIN!
Guest Posted December 5, 2003 Posted December 5, 2003 Thats the setting I meant so you are almost there.... yippeeeee Now about this text in the admin..... Doh I'm not sure about that one. Give me a few minutes and I'll take a look, Chris
Guest Posted December 6, 2003 Posted December 6, 2003 :) Thank you. I did try to decipher it myself, but no surprises, I didn't manage it... I do know that there was a time that it was working fine though, *confused*
Guest Posted December 6, 2003 Posted December 6, 2003 Hi Susie, Sorry, a few more minutes than I thought...... I think you are missing a file or have deleted some of the contents: admin/includes/languages/english/coupon_admin.php This is where all the variables are defined. Chris
Guest Posted December 6, 2003 Posted December 6, 2003 Thanks for that! I re-uploaded that file from the 506 download... but, :( no change... I wonder why... because it was alright at one point.... weird... but not absolutely problematic I guess... Oh! I know this is going off tack, but just while we're here, when someone makes a purchase through the shop, does an email get sent out to the admin so they know? Or some sort of notification?
Guest Posted December 6, 2003 Posted December 6, 2003 You should get an email to the E-mail address that you define in My Store and you can also get extra emails sent to other email addresses which you define in My Store - Send Extra Order Emails to. I send an extra email to my vodafone.net email address and get vodafone to forward me a text message which is quite useful. Not sure what the problem is with the error though, sorry. Is your store nearly there now? Chris
Guest Posted December 7, 2003 Posted December 7, 2003 Yeah! Well at least it seems that way... I'm just trying to come at it from every possible angle to make sure I've not missed out anything.... but I think we're pretty much ready for liftoff! :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.