Jump to content

peterp

Member
  • Content count

    148
  • Joined

  • Last visited

Community Reputation

77 Excellent

1 Follower

Profile Information

  • Gender
    Male
  • Location
    Melbourne, Australia

Recent Profile Visitors

7,470 profile views
  1. peterp

    POF email to admin with confirmation

    Hi Brian, Thankyou for this piece of code, I implemented it into the POF payment gateway and also the BANK_Transfer gateway that we created recently and it sent an email stating that and order had been received but unfortunately there was not data inserted into any of the fields. So you could not see the order number or the address or the paid by information. So where do we get this information (see Below) Zippy Tie Man Order Received ABN: 16505977418 just placed order number on . Paid By: ---------------------------------------------------------------------- Customer Comments: ---------------------------------------------------------------------- This order can be managed online by following the link below. Billing address: Email: Shipping address: Item Quantity Cost Shipping: Discount: Subtotal: Order Total: Kind regards, The Zippy Tie Man Staff I have put the code on the blank line above the line you suggested please see below I hope I have put it in the correct place $order_summary['link'] = $GLOBALS['storeURL'].'/index.php?_a=vieworder&cart_order_id='.$order_summary['cart_order_id']; $GLOBALS['smarty']->assign('DATA', $order_summary); $GLOBALS['smarty']->assign('BILLING', $billing); $GLOBALS['smarty']->assign('SHIPPING', $shipping); $GLOBALS['smarty']->assign('TAXES', $vars['taxes']); $GLOBALS['smarty']->assign('PRODUCTS', $vars['products']); Mailer::getInstance()->sendEmail($order_summary['email'], $content); } } $POF_Admin_Mailer = new Mailer(); $POF_Admin_Content = $POF_Admin_Mailer->loadContent('admin.order_received'); $order->assignOrderDetails(null, true); $POF_Admin_Mailer->sendEmail($GLOBALS['config']->get('config', 'email_address'), $POF_Admin_Content); $GLOBALS['cart']->clear(); } } public function process() { return false; } ################################################## public function form() { return false; } } Thanks again Brian appreciate your help Best Regards, Peterp
  2. Hi All, I have a client that has the admin parameter that determines when the emails of confirmation are sent and it is set to processing this all works as expected , however what they would like to happen for POF sales which sets the status of their orders to pending and are always paid by Bank Transfer the next day, which is ok but admin/accounts doesn't get an email that alerts the staff that there is an order wih a pending status which would hve been paid by Bank Transfer. What they would like to happen is to be notified that there are pending orders that have been created via the POF payment gateway. Is there a way that I could change the POF payment gateway to produce an email that informs the staff that an order has been placed and has a pending status and they should be looking for the associated bank transfer in their banking statement. The email could be the same as the email that is sent when the pending orders status is changed to processing. Could I try placing the code for this process just after the email that is sent to the customer thanking them for the order but only for pending status POF orders. I will greatly appreciate any help with this issue Thankyou and best Regards, Peterp
  3. peterp

    POF email and confirmation

    Thanks Brian found the lines and they have been changed. Once again you have been a tremendous help Best Regards, Peterp
  4. peterp

    POF email and confirmation

    Hi Brian, Thanks for that I'm not sure what I have to change at lines 51 and 52 what I have is below public function call() { //@todo everything $form_file = dirname(__FILE__).'/'.'skin'; not sure what I need to change. Also I thought that was the case as far as a pending order was created, however this clients orders are generally paid for via credit cards or paypal and therefore move to processed imediately which is fine but they would at least like a email that states that an order has been entered so they can watch out for the actual transfer to occur and then they can change the status of the Bank Transfer(POF) order manually. This email would be sent to the accounts department and therefore they would be looking for the bank transfer the next day. Can we force the email that there is an order without changing the status of the order and not print the order until the status is changed manually to processed which is standard operation. Hope you can help with this, Appreciate your help Best Regards, Peterp
  5. peterp

    POF email and confirmation

    Hi Brian, I haven't changed the function transfer(), $transfer['action'] value in gateway.class.php but it still worked should I change it to Bank_Transfers
  6. peterp

    POF email and confirmation

    Hi Brian, After the copy of the POF and naming it Bank_Transfers and changing the config.xml it seemed to fix that problem, an email is sent to the customer stating that the order has been received but there is no email being sent to admin stating that an order has been received and has a payment detail of Bank Transfer. There is an order created with a pending status in the admin orders but no email to admin I don't think that is right or am I wrong Best Regards, Peterp Hi Brian, I haven't changed the function transfer(), $transfer['action'] value but it still worked should I change it to Bank_Transfers
  7. peterp

    POF email and confirmation

    Hi Brian, I did clear the cache I also changed gateway.class.php as below but this didn't work either. I will try copying the POF to new folder Best regards, Peterp
  8. peterp

    POF email and confirmation

    Hi Brian, <?xml version="1.0" encoding="UTF-8"?> <installer version="1.0"> <info> <uid>gateway-Print_Order_Form@cubecart.com</uid> <type>gateway</type> <mobile_optimized>false</mobile_optimized> <name><![CDATA[Bank Transfers]]></name> <description><![CDATA[Print Order Form Payment Gateway]]></description> <version>1.0.1</version> <minVersion>5.0.0a</minVersion> <maxVersion>5.1.*</maxVersion> <creator><![CDATA[CubeCart]]></creator> <homepage><![CDATA[http://www.cubecart.com]]></homepage> <block>false</block> </info> </installer> I made this change but this still didn't work I have also made the change to module.definitions.xml as below <?xml version="1.0" encoding="UTF-8"?> <!-- * CubeCart v6 * ======================================== * CubeCart is a registered trade mark of CubeCart Limited * Copyright CubeCart Limited 2014. All rights reserved. * UK Private Limited Company No. 5323904 * ======================================== * Web: http://www.cubecart.com * Email: sales@devellion.com * License: GPL-2.0 http://opensource.org/licenses/GPL-2.0 --> <definitions version="1.0"> <group name="print_order_form"> <string name="address"><![CDATA[Address]]></string> <string name="bank_account"><![CDATA[Account Number]]></string> <string name="bank_account_name"><![CDATA[Account Name]]></string> <string name="bank_allow"><![CDATA[Allow bank transfers?]]></string> <string name="bank_name"><![CDATA[Bank Name]]></string> <string name="bank_sort"><![CDATA[Sort Code]]></string> <string name="bank_swift"><![CDATA[Swift/IBAN Code]]></string> <string name="cards_accept"><![CDATA[Cards Accepted]]></string> <string name="cards_allow"><![CDATA[Allow Payment by Card?]]></string> <string name="cards_example"><![CDATA[Visa, Mastercard, American Express, Discover]]></string> <string name="cheque_allow"><![CDATA[Allow payment by cheque?]]></string> <string name="cheque_payable"><![CDATA[Cheques made payable to]]></string> <string name="currency_multi"><![CDATA[Allow Payment in Multiple Currencies?]]></string> <string name="module_title"><![CDATA[Bank Transfers]]></string> <string name="notes"><![CDATA[Notes to customer]]></string> <string name="confirmation_email"><![CDATA[Send order confirmation email?]]></string> <string name="title_bank_transfer"><![CDATA[Bank Transfers]]></string> </group> </definitions> Is there somewhere else I should be looking Thankyou Best Regards, Peterp
  9. peterp

    POF email and confirmation

    Hi Brian, No I didn't add this it was done by the previous developer who I have taken over from. What I think I need is where do I change the $DATA.payment value from print_order_form to BANK TRANSFER As you can see from the template below the red highlight is what I'm trying to change for what ever payment method is used. Zippy Tie Man Tax Invoice ABN 16505977418 Thank You {$DATA.first_name}! Your order {$DATA.cart_order_id} has been received which was placed on {$DATA.order_date}. Please keep this email for your records. It is possible to view the status of your order online. Paid By: {$DATA.gateway} {$DATA.link} ---------------------------------------------------------------------- Billing address: {$BILLING.first_name} {$BILLING.last_name} {if !empty($BILLING.company_name)}{$BILLING.company_name} {/if}{$BILLING.line1} {if !empty($BILLING.line2)}{$BILLING.line2} {/if}{$BILLING.town} {$BILLING.state} {$BILLING.postcode} {$BILLING.country} {$BILLING.phone} Email: {$BILLING.email} Shipping address: {$SHIPPING.first_name} {$SHIPPING.last_name} {if !empty($SHIPPING.company_name)}{$SHIPPING.company_name} {/if}{$SHIPPING.line1} {if !empty($SHIPPING.line2)}{$SHIPPING.line2} {/if}{$SHIPPING.town} {$SHIPPING.state} {$SHIPPING.postcode} {$SHIPPING.country} ---------------------------------------------------------------------- Items in Your Order {foreach from=$PRODUCTS item=product} ----------------------------------- {$product.name} {$product.product_options} Part Number: {$product.product_code} Unit Price: {$product.price} Qty: {$product.quantity} {/foreach} ----------------------------------- Subtotal: {$DATA.subtotal} Discount: {$DATA.discount} Shipping: {$DATA.shipping} {if $DATA.ship_method}({$DATA.ship_method}){/if} {foreach from=$TAXES item=tax}{$tax.tax_name} ({$tax.tax_percent}%): {$tax.tax_amount} {/foreach} -------------------------- Tax Invoice Total: {$DATA.total} ========================== Thanks again Best Regards Peterp
  10. peterp

    storefront running the wrong url

    Hi Brian,, I unfortunately have to use chrome for this local site as Firefox seems to be unable to connect to the localhost server, however chrome has a similar developer tool and I have found the line that you have mentioned and when I roll the mouse over it the correct url for the storefront is shown. the .htaccess file does have a whole lot of redirects for products which I have removed but still no joy and unfortunately the original implementer of this site has designed his own skin which I think is very loosely based on the foundation skin. So I guess anything is possible and I will just keep trying to get the localhost going so I can test any changes they might require later. Thanks for you help again it is appreciated Best Regards, Peterp
  11. Hi All, I have a client that wishes to have entered on their admin pof order confirmation that the customer has used the Bank Transfer facility, in which case this will require the staff to change the status of this order to be processed and then they will be able print the order. Is there a way to print on the email between the message that states that pof order has been placed and the url for the order a message that states 'Paid by BANK TRANSFER'. At the moment when an order is paid by a banking api that accepts credit card payments it states on the order just under the note about the customer has just placed an order that the payment was via the bank api I hope I have explained this adequately, I have tried to modifiy the email template but this was not successful so any help will be apreciated Best Regards, Peterp
  12. peterp

    storefront running the wrong url

    Hi Brian, Thanks for the reply unfortunately I cleared the cache for the browser as well as for cubecart and also used the tab on the admin screen to clear the cache and it still loads the real website and not the localhost website. I will keep looking as I think there must be somewhere a program or programs that are hard coded with the real website address. Thanks anyway I appreciate your help Best Regards, Peterp
  13. Hi All, I have this store setup on a localhost and all is fine when I'm working in the admin section, however when I click the storefront tab the system runs the live store front and not the localhost storefront. Is there somewhere that I have missed that has to be setup to achieve the correct storefront to be run. The site is currently running ver 6.2 on windows Hope somebody can help me Best Regards Peterp
  14. peterp

    administrator superuser

    Hi Brian, Thanks for the reply however when I use a administrator that has the super-user set to 1 I am still refused entry into the maintenance selection and also do not see the super user field in the administrator inquiry screen, and I also do not have the ability to add a new user the add administrator tab is not there. Could this be that it has had a coding modification done, if so what program/s would I find this type of modification. Thanks for your help Best Regards, Peterp
  15. I have taken over a cubecart site and unfortunately I went to do a backup and found that I didn't have the correct permissions to do so. So I went to the administrator setup and found that when I tried to add an administrator with superuser permissions the super user flag check box is missing. Where do I find this so that I can reinstate this function to either the current user or when I create a new administrator. Thanks for your help Best Regards, Peterp
×