How can I add a coupon code and product id to url in opencart 3.x? - url-parameters

Currently when a customer enters a coupon code, they are sent to the checkout page with a url such as www.example.com/shop/index.php?route=checkout/checkout. How can I add the coupon code and product id to the url so that I can send the link to a customer and they can simply fill out the checkout page with the coupon already applied without going through the product page and cart?

Related

My shopping cart First product not update in Laravel 5.8

The shopping cart on my website is not updating the first product is not updating but the next product is updating and when I click the first product update button but here the Rember's token ID is with the link but not updated.
enter image description here

how to apply coupan code in magento without reloading whole page using AJAX

Hello I am using Magento 1.9 I want to apply coupon code programmatically when user group is wholesaler without reloading cart page I want to dynamically update only grand total when coupon code is applied
thanks in adavance.

Customize Magento checkout process

I have products with individual landing pages. I want the landing pages to contain everything needed to checkout with that product. This includes a dropdown to select the quantity of the product desired, shipping information and billing information. Is this possible? In default Magento, you can't get to the checkout process without first having an item in the cart.
Default Magento allows you to choose where to redirect after a product is added to cart: to the cart overview or back to the page where the "Add to Cart" button was clicked. Using a similar approach you can create an extension that overrides the 'addAction' method of the cart controller to redirect to the checkout page immediately after a product is added to cart.
You can't go to checkout with an empty shopping cart, but redirecting after the add to cart action allows customers to skip the cart page, if that is what you intend to achieve.
It is also possible to use the billing and shipping information the customer submits in the landing page for the checkout - your extension will have to validate it and save into the quote object as if it was submitted in the respective checkout steps.
Developing such an extension would not be a simple task - checkout is a very sensitive matter.

updating configarable option in magento cart page

How can we add configuration option on cart page in magento and update it automatically , including price change, when selected option get change.
I want to know how can we update price and whole cart on selecting configurable options on cart page itself.
Is there any extension or we can do using core coding?
refer cart for configurable product in this site http://www.wehkamp.nl/Winkelmand/Winkelmand.aspx

Magento - What is the internal url for shipping step in onepage checkout?

I am using an observer to check the shipping information provided by the customer during onepage checkout. By observing the event checkout_controller_onepage_save_shipping_method I want to redirect the customer back to the shipping step to re-enter their information.
Following the conversation on this page, What is the correct way to stop a checkout from an event observer in Magento?, I have everything set up, but I do not want to redirect them to cart, just the shipping step.
Mage::app()->getResponse()->setRedirect(Mage::getUrl('what/goes/here'));
Can I make the code simply refresh the page?
Mage::app()->getResponse()->setRedirect(Mage::getUrl('checkout/onepage')); does not work.
Thanks!
url = checkout/onepage/shipping_method
if ($backUrl = $this->_getRefererUrl()) {
$this->getResponse()->setRedirect($backUrl);
}

Resources