add apply coupon link to woocommerce customer payment page - php

I have developed a system to create orders programmatically in woocommerce. However when a customer clicks on the link to go to their payment page it does not show the 'Have a Coupon' input box. I haven't adjusted any of the templates.
Any ideas on how I can get the coupon input box to appear on the customer payment page?
Location I am talking about is:
<mywebsite>/checkout/order-pay/<order_id>/?pay_for_order=true&key=<order_key>
Thank you for any help with this, I am struggling with it

Payment page is an endpoint, so must apply coupon before it reaches this point

Related

WordPress WooCommerce move Order Button to Bottom

I have a checkout page in WordPress using WooCommerce and WooCommerce Smart Coupons. When you are about to purchase the coupon, you can enter your card details and then press 'Place Order'.
When buying a coupon, a field appears showing "Send Coupons To..." and then either send to me or someone else. This appears underneath everything and is confusing the clients.
Is there a way to place the 'Place Order' button underneath the field of "Send Coupons To..." ?
I have searched but given that I'm not knowledgeable in PHP, I could only get so far.
Thanks in advance. Please let me know if you require more info to solve this.

How to review customer basket before checkout for discount purpose?

Is there any shopping cart that support this technique that admin can review a customer basket/cart items before his checkout.
if customer wishes for discount at run time i.e on live chat. Can admin update his basket for negotiated discount and let him go to checkout after update?
Any help will be appreciated.
You can write your very own shopping cart. It should simply display the order ID or the cart ID which the customer should tell the chat representative. There should be an admin console where by the chat representative can add discount value there and save it. Thats it.
While programming such a cart you should make sure that the cart is not session based but database based, so that the data is available to the chat representative as well.
Regards.
after a lot of search i found solution View Client cart and wish list extension using open cart.

woocommerce - coupon on checkout page

I'm using Woocommerce for Wordpress to build a webshop.
I have removed the coupon from cart and added it to the checkout. When I enter the coupon code and hit 'apply coupon', it completes the whole form and goes directly to the payment gateways. I want to make sure the coupon first gets added to the order total. Any idea?
Thanks!
Woocommerce already provides provision to add coupon from the checkout page you don't need add. Probably you have edited the checkout page template and added the coupon form inside the checkout form that's why checkout form is submited on clicking apply coupon. In order to customize the coupon in checkout page you have to look into wooocmmerce checkout.js.

Wordpress Simple Shopping Cart

i need WordPress shopping cart function with or without any pluggins. When a registered user click the add to cart button on the normal post, it needs to go to shopping cart. The checkout function should not have the shipping and payment gateways as the user click the check out button he should recieve the mail for order confirmation with the permalinks of the post bought by him, meanwhile the post permalinks has to be saved in data base which can be viewed by the user later. Admin should recieve the mail for perchasing order.
Perhaps you can use this plugin. Its a wordpress e commerce plugin and should take care of all the things you have mentioned.
Salman, Try WP e-Commerce one of my favorite and o.s plugin
For more http://sixrevisions.com/wordpress/top-5-excellent-e-commerce-plugins-for-wordpress/
If you really need a simple cart other than Wordpress integrated plugin, you can go for OpenCart, which was easily administrate and user friendly with analytics and so on...
Please see my answer to similar question here.
In addition - the WP Order Cart plugin does not save orders to database, it only sends the order email to both buyer and seller - this functionality is still in development.

Creating paypal checkout button with different prices?

I have a website giving services for money, i just want a button goes to a paypal checkout page with a price specified by me. There is no product or service name, just website name and price. But i couldn't find something like that. I have too many different prices, so i can't create buttons for every price. Is it possible to define price as a variable in my webpage, and send paypal this? I use php.

Categories