Jump to content

traxwriter

Retired Forum Member
  • Posts

    8
  • Joined

  • Last visited

About traxwriter

traxwriter's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Thanks jclarke, This didn't quite work beucase strtotime doesn't work with slashes in the date format, however you helped me figure it out. Here's what worked: {$invoice_date_due|replace:"/":"-"|cat:" -1 day"|date_format:"%d/%m/%Y"}
  2. Hi All, I am looking to modify the due by date in email templates ($invoice_date_due). I want to subtract 1 day. I have tried doing this with php, however it doesn't look like you can put php into the email templates. (I just get a white screen (Even if i just put {php}{/php})) Bear in mind I don't want to update the due date of an invoice just chnage that date for use inside the email template. This is the code I have tried: {php} $ccdate = DateTime::createFromFormat('d/m/Y', $this->_tpl_vars["invoice_date_due"]); $ccdate->modify("plus 1 day"); $this->_tpl_vars["cc_date_due"] = $ccdate->format('d/m/Y'); {/php} Does anyone have any ideas? Thanks, Adam *More info: I need to be able to remove one day from the due date as we attempt to cature credit cards 1 day before due date. This is the line that would change: Payment will be taken automatically on {$invoice_date_due} from your credit card on record with us. So invoice due date might be 13/03/2015 and credit card charge date will be 12/03/2015
  3. Ok, i've had some fixes from a support ticket, I now have a new error: Required parameter missing: attr-value2 It seems that this could be extension specific so for information it is .es I am currently trying with. Thanks
  4. Hi, I cannot register domains with NetEarthOne. Heres what happened: First I got this error: "error obtaining customer id" Then on retry to register I got: "Required parameter missing: attr-value3" Now both of the above where fixed with resellerclub_pro.zip and DomainsRegFix.zip But now I get this: [] as in the screenshot The customer does get created with netearthone but the registration doesn't. Any help would be appreciated. /https://dragonstack.com/ScreenShot2012-12-06at3.40.41%20PM.png
  5. Hi, I have a free product that I would to add to any user who signs up as a customer. Basically I would like a customer to be able to sign up without going though the shopping cart. I assume I can do this with action hooks, I would need to ensure there are no "thank you for your order" e-mails sent out or anything. Simply sign up and the product is already in your account. I would also like the product to be applied to the users account even if they do need to go through the shopping cart to pay for a chargeable product. Can anybody point me in the right direction? Thanks
  6. Thanks for, just what I was looking for. Much appreciated.
  7. Hi, I am looking for a way to detect if a client has a certain product and if so select a custom field from that product for use in templates. For example: Display certain information only to clients with a particular product in their sidebar. Thanks in advance.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated