Using Navigation Item As Simple Payment Button
-
Is there any way to use a native navigation item (Appearance->Menus) as the element that once clicked brings up the payment form?
I’ve read the article at https://s-plugins.com/creating-simple-payment-button-without-product-details/ that mentions adding
[asp_product id="487" fancy="0"]to create a button which once clicked would bring up the payment form.I would like to do the same thing with a menu item.
-
This is not possible directly, but you can do a dirty trick which would partially do what you want. There is undocumented feature which you can use to evoke payment popup by accessing an URL. It looks like this:
https://{your_website_url}/?asp_action=show_pp&product_id={your_product_id}Example: https://example.com/?asp_action=show_pp&product_id=123
When clicked, it would redirect you to a payment popup on separate page. So you just put this URL to your menu and this should do it. But, like I said, only partially, as payment popup would be displayed on new page, not the one your customer is on.
I don’t have a product associated with the payment functionality. No matter what value I put in for the
product_idURL parameter, I get aCan't find product with ID Xresponse. I tried adding the fancy parameter to the URL so that it looks something like:https://mysite.com/?asp_action=show_pp&product_id=0&fancy=0but still getting the same error.
How do I get this to work without an underlying product?
It will only work with a product. No other parameters should be added to the URL except those I posted in my previous post.
Also, if you’re able to specify CSS class for your menu item, there is another experimental method how to achieve what you want. But it would require a product as well. Let me know.
I was able to get the pop-up to appear using the nav link, but it seems like the credit / debit card input element is in read-only / disabled mode no matter what. I tried filling out the amount, name, and e-mail fields, but the card input element is disabled and so is the pay button.
Any idea what might be causing this?
I looked at the element using devtools and it looks like the credit card input isn’t an actual input, but a div
Would be good if you can send a link to the page so I could have a look with my own eyes.
NA
-
This reply was modified 6 years, 7 months ago by
pihish.
I just tried posting a link, but it looks like the forum blocks them. Can I shoot it to you through e-mail?
Please do through the contact form on the site.
K, just sent it
-
This reply was modified 6 years, 7 months ago by
The topic ‘Using Navigation Item As Simple Payment Button’ is closed to new replies.