Jump to content

viper2626

Members
  • Content count

    19
  • Joined

  • Last visited

2 Followers

Profile Information

  • Real Name
    Steve B
  1. viper2626

    Multi-Stores Multiple Shops Support

    Guys I've been working for I don't know how long to get this working and implemented perfectly with RC2.2a and it does work perfectly, amazing contrib, my only problem that I am seeing as of now is that the cart is being shared across the stores, which I dont really care about I do however need that to not be the case so that I can use the recover cart sales module for each store individually, anyone who can help it would be much appreciated. Thanks
  2. I'm goign to be installing this module right now on a VERY heavily modded store, i hope things go smoothly but i was wondering if and how i can make it so that it basically shows it like this... if there is no special or SPPC display regular price if there is a special and no SPPC diaplay the special if there is no special and a SPPC display the SPPC if there is a special and a SPPC display the lower price in a previous install i had major problems with this and the specials were never displayed (very very annoying) i worked around it but not properly at all. Jedijynx i am on RC2.2a so i will see how i fare if i fail i will figure out the problems and let you know.
  3. viper2626

    [CONTRIBUTION] PDF Customer Invoice

    should run perfectly on everything
  4. viper2626

    [CONTRIBUTION] PDF Customer Invoice

    Great Contribution this is however I'm having an issue with it, well actually I'm having an issue customizing something. in the code below, the pdf gets to the customers email thats perfect, even the second part of the snippet is fine sending a second email if the customer needs the invoice sent to multiple email addresses however the issue comes up with this: include_once(FILENAME_CUSTOMER_PDF_PACKINGSLIP); upon trying to call a second PDF, a different one that is, i can send the same one to many addresses but once a second pdf is called it crashes the checkout_process page and gives a blank page, does anyone know how I can fix this or what might be causing the problem? However if I replace this: include_once(FILENAME_CUSTOMER_PDF_PACKINGSLIP); with this: include_once(FILENAME_CUSTOMER_PDF); then everything works perfectly. // BEGIN added for pdfinvoice email attachment: if (PDF_INVOICE_EMAIL_ATTACHMENT == 'true') { // customers will be logged in so usual security checks of pdfinvoice.php will be met. All we do is set the order_id for pdfinvoice.php to pick up $HTTP_GET_VARS['order_id'] = $insert_id; // set stream mode $stream = true; // include pdfinvoice.php include_once(FILENAME_CUSTOMER_PDF); // add text to email informing customer a pdf invoice copy has been attached: $email_order .= PDF_INVOICE_ATTACHED ."\n\n"; // send email with pdf invoice attached. Check to make sure pdfinvoice.php returns some data, else send standard email // note $order object reinstantiated by inclusion of pdfinvoice.php hence customer['name'] if (tep_not_null($pdf_data)) { tep_mail_string_attachment($order->customer['name'], $order->customer['email_address'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' . EMAIL_TEXT_SUBJECT_2 , $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $pdf_data, $file_name); } else { tep_mail($order->customer['name'], $order->customer['email_address'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' . EMAIL_TEXT_SUBJECT_2 , $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } } else { // send vanilla e-mail - if email attachment option is false //Package Tracking Plus BEGIN tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' . EMAIL_TEXT_SUBJECT_2 , $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); //Package Tracking Plus END } //Begin Secondary Email Address if ($order->customer['email_address2_tick'] == '1') { //The below line should be IDENTICAL to the line about 5 rows up otherwise each email will get different emails if (PDF_INVOICE_EMAIL_ATTACHMENT == 'true') { // customers will be logged in so usual security checks of pdfinvoice.php will be met. All we do is set the order_id for pdfinvoice.php to pick up $HTTP_GET_VARS['order_id'] = $insert_id; // set stream mode $stream = true; // include pdfinvoice.php include_once(FILENAME_CUSTOMER_PDF); // add text to email informing customer a pdf invoice copy has been attached: $email_order .= PDF_INVOICE_ATTACHED ."\n\n"; // send email with pdf invoice attached. Check to make sure pdfinvoice.php returns some data, else send standard email // note $order object reinstantiated by inclusion of pdfinvoice.php hence customer['name'] if (tep_not_null($pdf_data)) { tep_mail_string_attachment($order->customer['name'], $order->customer['email_address2'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' . EMAIL_TEXT_SUBJECT_2 , $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $pdf_data, $file_name); } else { tep_mail($order->customer['name'], $order->customer['email_address2'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' . EMAIL_TEXT_SUBJECT_2 , $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } } else { // send vanilla e-mail - if email attachment option is false //Package Tracking Plus BEGIN tep_mail($order->customer['name'], $order->customer['email_address2'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' . EMAIL_TEXT_SUBJECT_2 , $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); //Package Tracking Plus END } } //End Secondary Email Address // END added for pdfinvoice email attachment: // Begin added for PDF Packing Slip Attachment for ADMIN if (PDF_PACKINGSLIP_EMAIL_ATTACHMENT == 'true') { // customers will be logged in so usual security checks of pdfinvoice.php will be met. All we do is set the order_id for pdfinvoice.php to pick up $HTTP_GET_VARS['order_id'] = $insert_id; // set stream mode $stream = true; // include pdfinvoice.php include_once(FILENAME_CUSTOMER_PDF_PACKINGSLIP); // add text to email informing customer a pdf invoice copy has been attached: // $email_order .= PDF_INVOICE_ATTACHED ."\n\n"; // send email with pdf invoice attached. Check to make sure pdfinvoice.php returns some data, else send standard email // note $order object reinstantiated by inclusion of pdfinvoice.php hence customer['name'] if (tep_not_null($pdf_data)) { tep_mail_string_attachment($order->customer['name'], PDF_PACKINGSLIP_EMAIL, 'Drop Order - ' . $insert_id . ': ' , $email_order_packingslip, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $pdf_data, $file_name); } } // END added for PDF Packing Slip Attachment for ADMIN Thanks for any and all help :)
  5. Hi Tracy, thanks for the reply... I have actually tried replacing the coupon files with older ones, newer ones with no luck, because the error has to be in there somewhere, i just cant seem to find it, but i do agree, like why is it applying a percentage when it should just be applying a FLAT $20 in this particular instance.
  6. Calculation problems.. hopefully someone can help... to start with this only happens with weird combination's of products or with specific products i have no idea how or why. basically it happens with both fixed and percentage discounts, here is an example: 2 x HP CB435A HP35A Laser Toner Cartridge CAD$90.00 1 x Shipping / Livraison CAD$7.95 1 x CANON CLI8 INK / INKJET Cartridge Set Black x2 Cyan Yellow Magenta (With Chip) CAD$31.95 2 x Promo Bags / Sacs Promo CAD$0.00 2 x BROTHER TN350 Laser Toner Cartridge CAD$83.90 1 x BROTHER TN360 Laser Toner Cartridge High Yield CAD$45.00 Discount Coupon Refer applied: -CAD$171.39 Sub-Total: CAD$87.41 TPS / GST (857422364): CAD$4.37 TVQ / PST (1212171456): CAD$6.88 Total: CAD$98.66 the coupon was supposed to be for $20.00, and somehow came to $171.39, it works fine on some orders and others just don't work at all, has anyone had this problem or does anyone have any idea what might be causing this error? here is the debugging part from the source: <!-- Discount Coupons DEBUG order Object ( [info] => Array ( [order_status] => 2 [currency] => CAD [currency_value] => 1.00000000 [payment_method] => myvm [cc_type] => [cc_owner] => Credit Card Owner Name [cc_number] => [cc_expires] => 0110 [cvvnumber] => [purchase_order_number] => [customer_credit_left] => [customer_credit_amount] => [shipping_cost] => 0.00 [subtotal] => 87.413678516229 [tax] => 11.254511108964 [tax_groups] => Array ( [TPS / GST (857422364) + TVQ / PST (1212171456)] => 11.254511108964 ) [comments] => [total] => 98.668189625193 ) [totals] => Array ( ) [products] => Array ( [0] => Array ( [qty] => 2 [name] => HP Laserjet P1002 P1003 P1004 P1005 P1006 P1009 [model] => HP CB435A HP35A Laser Toner Cartridge [title] => CB435A [tax] => 12.875 [tax_description] => TPS / GST (857422364) + TVQ / PST (1212171456) [price] => 45.0000 [cost] => 0.0000 [cost2] => 0.0000 [cost3] => 0.0000 [cost4] => 0.0000 [cost5] => 0.0000 [cost6] => 0.0000 [final_price] => 45 [weight] => 100.00 [id] => 3683 ) [1] => Array ( [qty] => 1 [name] => Shipping / Livraison [model] => Shipping / Livraison [title] => Shipping / Livraison [tax] => 12.875 [tax_description] => TPS / GST (857422364) + TVQ / PST (1212171456) [price] => 7.9500 [cost] => 0.0000 [cost2] => 0.0000 [cost3] => 0.0000 [cost4] => 0.0000 [cost5] => 0.0000 [cost6] => 0.0000 [final_price] => 7.95 [weight] => 999.99 [id] => 9125 ) [2] => Array ( [qty] => 1 [name] => Canon PIXMA IP3300 IP3500 IP4200 IP4300 IP4500 IP5200 IP5200R IP6600D IP6700D MP500 MP510 MP520 MP530 MP600 MP610 MP800 PIXMA MP810 MP830 MP950 MP960 MP970 MX700 MX850 Pro9000 [model] => CANON CLI8 INK / INKJET Cartridge Set Black x2 Cyan Yellow Magenta (With Chip) [title] => CLI8 / PGI5 Set Chip [tax] => 12.875 [tax_description] => TPS / GST (857422364) + TVQ / PST (1212171456) [price] => 31.9500 [cost] => 0.0000 [cost2] => 0.0000 [cost3] => 0.0000 [cost4] => 0.0000 [cost5] => 0.0000 [cost6] => 0.0000 [final_price] => 31.95 [weight] => 1.00 [id] => 5706 ) [3] => Array ( [qty] => 2 [name] => Promo Bags / Sacs Promo [model] => Promo Bags / Sacs Promo [title] => Promo Bags / Sacs Promo [tax] => 12.875 [tax_description] => TPS / GST (857422364) + TVQ / PST (1212171456) [price] => 0.0000 [cost] => 0.0000 [cost2] => 0.0000 [cost3] => 0.0000 [cost4] => 0.0000 [cost5] => 0.0000 [cost6] => 0.0000 [final_price] => 0 [weight] => 0.00 [id] => 9126 ) [4] => Array ( [qty] => 2 [name] => Brother HL 2040 2070N 2030 MFC 7420 7820N 7220 7225N DCP 7020 Intellifax 2820 2920 2910 [model] => BROTHER TN350 Laser Toner Cartridge [title] => TN350 [tax] => 12.875 [tax_description] => TPS / GST (857422364) + TVQ / PST (1212171456) [price] => 41.9500 [cost] => 0.0000 [cost2] => 0.0000 [cost3] => 0.0000 [cost4] => 0.0000 [cost5] => 0.0000 [cost6] => 0.0000 [final_price] => 41.95 [weight] => 100.00 [id] => 3542 ) [5] => Array ( [qty] => 1 [name] => Brother HL 2140 2170W MFC 7440N 7840W 7320 7340 DCP 7040 7030 [model] => BROTHER TN360 Laser Toner Cartridge High Yield [title] => TN360 [tax] => 12.875 [tax_description] => TPS / GST (857422364) + TVQ / PST (1212171456) [price] => 45.0000 [cost] => 0.0000 [cost2] => 0.0000 [cost3] => 0.0000 [cost4] => 0.0000 [cost5] => 0.0000 [cost6] => 0.0000 [final_price] => 45 [weight] => 100.00 [id] => 3744 ) ) [customer] => Array ( [firstname] => Firstname [lastname] => Lastname [company] => [street_address] => 123 Fake St. [suburb] => [city] => City [postcode] => H1H 1H1 [state] => QC [zone_id] => 76 [country] => Array ( [id] => 38 [title] => Canada [iso_code_2] => CA [iso_code_3] => CAN ) [format_id] => 1 [telephone] => 555-555-5555 [workphone] => [email_address] => email@email.com ) [delivery] => Array ( [firstname] => Firstname [lastname] => Lastname [company] => Company [street_address] => 123 fake street [suburb] => [city] => City [postcode] => H1H 1H1 [state] => QC [zone_id] => 76 [country] => Array ( [id] => 38 [title] => Canada [iso_code_2] => CA [iso_code_3] => CAN ) [country_id] => 38 [format_id] => 1 ) [content_type] => physical [billing] => Array ( [firstname] => Firstname [lastname] => Lastname [company] => [street_address] => 123 fake street [suburb] => [city] => City [postcode] => H1H 1H1 [state] => QC [zone_id] => 76 [country] => Array ( [id] => 38 [title] => Canada [iso_code_2] => CA [iso_code_3] => CAN ) [country_id] => 38 [format_id] => 1 ) [coupon] => discount_coupon Object ( [messages] => Array ( [debug] => Array ( [0] => INFO: DISPLAY_PRICE_WITH_TAX = false [1] => INFO: MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING = false [2] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_RANDOM_CODE_LENGTH = 8 [3] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_LINES = false [4] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_ALLOW_NEGATIVE = false [5] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_USE_LANGUAGE_FILE = false [6] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_CONFIG = Discount Coupon applied [7] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_TAX = None [8] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DEBUG = true [9] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_EXCLUDE_SPECIALS = false [10] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_SUBTOTAL = true [11] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_SORT_ORDER = 5 [12] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_TYPE = true [13] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS = true [14] => INFO: Percentage of discount applied to product 3683: 0.077279752704791. [15] => INFO: Fixed discount applied to product 3683: 44.922720247295. [16] => INFO: Product 3683 passed exclusion check. Discount 44.922720247295 applied. (fixed) [17] => INFO: Discount of 44.922720247295 applied to product 3683 ($90). [18] => INFO: Calculating tax on 45.077279752705. Displayed price 45.077279752705. [19] => INFO: Percentage of discount applied to product 9125: 0.077279752704791. [20] => INFO: Fixed discount applied to product 9125: 7.8727202472952. [21] => INFO: Product 9125 passed exclusion check. Discount 7.8727202472952 applied. (fixed) [22] => INFO: Discount of 7.8727202472952 applied to product 9125 ($7.95). [23] => INFO: Calculating tax on 0.077279752704792. Displayed price 0.077279752704792. [24] => INFO: Percentage of discount applied to product 5706: 0.077279752704791. [25] => INFO: Fixed discount applied to product 5706: 31.872720247295. [26] => INFO: Product 5706 passed exclusion check. Discount 31.872720247295 applied. (fixed) [27] => INFO: Discount of 31.872720247295 applied to product 5706 ($31.95). [28] => INFO: Calculating tax on 0.07727975270479. Displayed price 0.07727975270479. [29] => INFO: Percentage of discount applied to product 9126: 0.077279752704791. [30] => INFO: Fixed discount applied to product 9126: -0.077279752704791. [31] => INFO: Product 9126 passed exclusion check. Discount -0.077279752704791 applied. (fixed) [32] => INFO: Discount of -0.077279752704791 applied to product 9126 ($0). [33] => INFO: Calculating tax on 0.077279752704791. Displayed price 0.077279752704791. [34] => INFO: Percentage of discount applied to product 3542: 0.077279752704791. [35] => INFO: Fixed discount applied to product 3542: 41.872720247295. [36] => INFO: Product 3542 passed exclusion check. Discount 41.872720247295 applied. (fixed) [37] => INFO: Discount of 41.872720247295 applied to product 3542 ($83.9). [38] => INFO: Calculating tax on 42.027279752705. Displayed price 42.027279752705. [39] => INFO: Percentage of discount applied to product 3744: 0.077279752704791. [40] => INFO: Fixed discount applied to product 3744: 44.922720247295. [41] => INFO: Product 3744 passed exclusion check. Discount 44.922720247295 applied. (fixed) [42] => INFO: Discount of 44.922720247295 applied to product 3744 ($45). [43] => INFO: Calculating tax on 0.07727975270479. Displayed price 0.07727975270479. ) ) [coupon] => Array ( [coupons_id] => Refer [coupons_description] => Refer [coupons_discount_amount] => 20.00 [coupons_discount_type] => fixed [coupons_date_start] => 2008-05-13 00:00:00 [coupons_date_end] => 2011-03-01 00:00:00 [coupons_max_use] => 3 [coupons_min_order] => 75.0000 [coupons_min_order_type] => price [coupons_number_available] => 0 ) [applied_discount] => Array ( [TPS / GST (857422364) + TVQ / PST (1212171456)] => 171.38632148377 ) [cart_info] => Array ( [valid_products] => Array ( [count] => 9 [line_items] => 6 [total] => 258.8 ) [total_products] => Array ( [count] => 9 [line_items] => 6 [total] => 258.8 ) [exclusions] => Array ( [categories] => Array ( ) [products] => Array ( ) [manufacturers] => Array ( ) ) ) [discount_tax] => Array ( [TPS / GST (857422364) + TVQ / PST (1212171456)] => 0 ) ) ) End Discount Coupons DEBUG--> it seems like it knows the coupon amount should be $20 yet it makes up all these odd calculations... any help would be much appreciated cause i've hit a wall with this one. Thanks
  7. viper2626

    Quantity Price Breaks

    OK gotta ask for some help here sadly but i hope someone knows a fix for this, or a solution, for starters everything on my site as far as quantity and price breaks works perfectly however... There is one page where we have like 20 different products all priced the same but for example lets say you order 10 of any of the products you get a discount not 10 of each but 10 of any or 20 of any in other words customers can choose from literally any of 20 different items and get a price break even if they order 1 of each of them its the same as them ordering 20 of the same one... please tell me that im sortof clear on this and if anyone cal help mych appreciated :D
  8. viper2626

    Bundled products

    Well I seem to be having a problem here and it should be an easy fix but i cant figure it out, everything works fine so it appears however when i add the bundle in the admin it updates and then if i go back into the original product ts blank like i never even did it, why wont it save?? Thanks for any help :D
×