I need to capture some information for a particular product category.
I am thinking is there a way I can change the proceed to checkout link to go to a custom URL (which will be a booking form with an action of going to the checkout page on submit) if the product category is in the cart.
I am a developer but in Java so do not know the structure and hooks very well but am sure I can get it together if
a) it is possible.
B) someone can help me which files to modify.
Thanks guys
I have fixed this by adding a filter on checkout:
add_filter('woocommerce_get_checkout_url', 'booking_redirect_checkout');
Related
I work on prestashop 1.7.2.5.
In the order history, two links (detail & reorder) are available.
When I click on reorder, the items are added directly to the cart, but I am redirected to the homepage of the site ! I would like to be redirected to the cart directly. How can I change that? an override ?
Thanks for helping me !
Sofiane
screenshots
This issue is on TODO.
You can follow this ticket: http://forge.prestashop.com/browse/BOOM-5385.
Best regards, Khouloud
Issue still on TODO but now on GitHub : https://github.com/PrestaShop/PrestaShop/issues/9660
I'm trying to add a discount code field to my website in big cartel. I've set the available discount codes in bigcartel, but no discount field is shown when checking out. This is because I send users to PayPal to checkout. Is there a way to add a field for the discount code in my cart, then send that discount to paypal on checkout?
What I really need is an example of how to make an <input/> for the discount code such that it gets processed on form submission. I'm new to big cartel, and as far as I can tell I don't have the ability to change the code for how the cart form is processed.
I've been digging through bigcartel and PayPal's docs for a while now with no luck, and am hoping someone on here knows the solution, but any help would be appreciated.
You can add a discount field to the Cart page by using discount_code_input:
Enter discount: {{ cart.discount | discount_code_input }}
This is also documented here: https://help.bigcartel.com/developers/themes/#discountcodeinputdiscount-id-classname
Additionally there's a number of different variables used to check whether discounts are enabled, the amount, the code that was entered, etc: https://help.bigcartel.com/developers/themes/#variables-1
And finally, every Big Cartel theme is on GitHub, so you can download the theme code, run it locally with Dugway, and get a better idea of how our themes work. Here's Lunch Break for example: https://github.com/bigcartel-themes/lunch-break/blob/master/source/cart.html
I have a serious issue in Paypal when I done the payment through paypal express chekout it redirect back to Mangeto on paypal/express/review page , it do not allow me to place order, the Place order button is showing disable and no action clicking on "update order data" button .
I followed the below link but I haven't got any result.
Click
Please help me,I tried from the last two days.I am ready to share admin detail if required.
Please don't suggest clear cache or enable from admin section I have done all this suggestion.
My solution was to download a fresh copy of magento and copy the files Review.php, review.phmtl and review.js to my site and it worked. I never edited those files maybe the extensions I installed changed those. Hope it helps!
After spending lots of time I got the solution for this problem.
I compressed js and css file for fast execution of my website thats why its happen after remove compression from js file, Paypal start working.
I am currently speccing out a custom auction plugin for WordPress. One thing I would like to do for each item is to generate a dynamic Buy Now link that will redirect to a PayPal screen with the item name and final price.
From what I can see, the only way to generate one of these buttons is to go to the form that generates the buttons for you. Is there a js file that I can use to generate these buttons from a Wordpress admin area? If so, can someone please provide a link so that I can begin reading up on the documentation?
Thank you
There are several examples of how to create a "pay now" button on stackoverflow (with simple HTML form). I would rather not use the "insecure" forms.
For including it in Wordpress you need to create a PHP Script (Plugin) that creates you the button, either with a library or "by hand".
The second thing I would recommend is to give PayPal an URL they should call after a payment status change (IPN). Some libraries (as the one above) can help you with that.
Hi I'm new to Magento, so we installed the Magento Simple checkout which is working fine but when you add a product it takes you to the cart (checkout/cart) which is fine but then it suddenly jumps to (checkout/onepage).
Both pages look pretty similar except the cart page gives me the option to keep shopping and change cart quantities and update the cart while the checkout page doesn't have this. I can never change the cart options because it always redirects.
Is there anyway to stop it from redirecting? I don't even know where to start to look so I could paste some code.
Thank you in advance.
It sounds like Simple Checkout is designed to do exactly that. If you don't like it, uninstall it. If you think there is a bug, contact the authors of Simple Checkout directly.
This is a javascript problem. If you view the source of checkout/cart/ (difficult, I know, it tries to redirect quite quickly) you might find this in it.
var checkout = new Checkout(accordion,{
progress: 'http://metrotemplate.com/checkout/cart/progress/',
review: 'http://metrotemplate.com/checkout/cart/review/',
saveMethod: 'http://metrotemplate.com/checkout/cart/saveMethod/',
failure: 'http://metrotemplate.com/checkout/'}
);
Basically it tries to POST an update to checkout/cart/saveMethod/ which is equivalent to the first step of onepage checkout. Unfortunately that URL doesn't exist, it should be POSTing to checkout/onepage/saveMethod/ in the background, instead it gets a 404 error which triggers the page to reload as the "failure" URL.
The final step is checkout/ redirects automatically to checkout/onepage/.
I cannot tell why the extension has started outputting URLs that begin with checkout/cart/* rather than checkout/onepage/*. Perhaps there is an admin setting somewhere? Maybe some over-enthusiastic template editing 'corrected' the file "template/checkout/onepage.phtml"? Or maybe Simple Checkout depends on overriding Mage_Checkout_CheckoutController and another, recent extension has it's own override which is conflicting..?