I didn’t really know how to phrase the title of this properly. I am using an external affiliate system and I need to pass any completed orders to them for processing.
I have to pass 2 things.
subtotal of the purchase
order ID, or invoice number
Here is what I have added… to customer/views/orders/details.tpl
{literal}
{/literal}
It seems to work except it is passing TAX along. I don't want to pay commissions on TAX.
I am also using shareasale. Did you get this sorted out?
What did you end up with so that the tax is not included? Should be the subtotal after discounts applied and I think, before shipping added. Where did you put the code?
I have 2.1.2 and was wondering if the code could be entered in an html block on the Order Landing Page.
A few things to consider here… But you’re probably going to have to capture the order_subtotal (which is the order total minus shipping) which you have done.
To get the total tax for the order, you will use $order_data.tax_subtotal. Then you’ll have to do something like
I was able to check that what I configured and confirm that it works for orders processed using pay by check and credit card payment methods.
I am not sure how to test with Amazon Payments, PayPal Standard, PayPal Express. Share-a-sale noted that PayPal also has the Bill me Later method integrated and said I should also check this.
Do all customers who use these alternative payment methods directed to the same Order_confirmation page? How do I test using a live cart. PayPal and Amazon won’t let me do a real test order using my own account.
Share a sale is not dependent on processor. I just need to make sure that after all transactions the customer goes to the same page. I should not have to test if this can be documented.
I just had an amazon transaction and the last page is /index.php?dispatch=checkout.complete&order_id=1331.
I think this is the last page of other transactions.
That should be the landing page for all transactions that are successful (you don’t want to record a sale for an incomplete transaction). That is the page where the hook is called from.