Posts

Showing posts with the label magento2

Send Email & Create Order programmatically on Product page with Custom form

Image
Clash Royale CLAN TAG #URR8PPP Send Email & Create Order programmatically on Product page with Custom form When customer enters the details in the form fields and enter submit button then the Order email should send customer's email immediately and also Order should be created in Backend as well . Once its submitted(After email sent & order created), the success message will display on same current product page. For this, I haved added my Custom order form on my theme's product detailed page. Form contains the fields like Name, Email, Quantity, Product Name and Price(Current Product Name & Price when customer Visits). How to send email and create order programmatically on Product page custom form? Any help mostly appreciated. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the ...

Magento 2: Too many redirects behind traefik reverse-proxy

Image
Clash Royale CLAN TAG #URR8PPP Magento 2: Too many redirects behind traefik reverse-proxy In front of my web servers and Docker applications I'm running Traefik to handle load balancing and reverse-proxy. In this specific case Magento 2 is running on another host in the same private network as the Traefik host. Traffic is coming into the firewall on port 80/443 and forwarded to Traefik which forwards the request based on the domain name (in this case exampleshop.com). My Traefik configuration looks like this: [backends] [backends.backend-exampleshop] [backends.backend-exampleshop.servers.server1] url = "http://192.168.1.224:80 passHostHeader = true [frontends] [frontends.exampleshop] backend = "backend-exampleshop" [frontends.exampleshop.routes.hostname] rule = "Host:exampleshop.com" For regular websites above configuration always worked as expected (a working HTTPS connection with valid Let's Encrypt cert) but in this Magento ...