One page payment: Magento 1.9 does not redirect customer to success page after successful order

I am facing a strange problem. I am working on magento 1.9.
Sometimes, after a successful order, the customer is not redirected to the success page, this happens not on all orders, maybe 1 out of 5.
after diagnosing the problem I discovered that in

core/Mage/Checkout/controllers/OnepageController.php

there seems to be no getLastSuccessQuoteId () as shown in the images below

I was thinking it might happen due to redis, but I'm not sure. Has anyone faced a similar problem before or have an idea on how I can solve this problem? Thank you 🙂
Screenshot 2020-03-31 at 22.05.47.png

strong textenter the image description here

Payment – Modify a product price add to cart Magento 1

I wrote a page to add to the cart with the identification product

Everything was fine, I can add product to the cart

I want to add to the cart with the price of only that product 0, if the cart has more product, just add the price of the product from page = 0

Can you help me

This is my code:

 $data = $this->getRequest()->getParam("values");
 $dataProduct = $this->dataProduct($data);
 $product = Mage::getModel('catalog/product')->load($dataProduct('id'));
 $params = array(
            'entity_id' => $dataProduct('id'),
            'qty' => $dataProduct('qty')
 );
 $cart = Mage::helper('checkout/cart')->getCart();
 $cart->addProduct($product, $params);
 $this->modifyPrice($dataProduct('id'));
 $cart->save();

MODIFY PRICE function

private function modifyPrice($productId){
    $quote = Mage::helper('checkout/cart')->getQuote();
    foreach ($quote->getAllVisibleItems() as $item) {
        if($item->getProduct()->getId() != $productId) {continue;}
        $item->setPrice(0);
        $item->setPriceInclTax(0);
        $item->save();
    }
    $quote->save();
}

Magento 2 payment details

Learn more about in-depth magento 2 verification, like its flow,
Components etc.
Any resource link would be helpful

Paypal Express payment customization in magento 1

I want to add the function of total minimum and maximum order in Paypal Express checkout and Paypal Payments Pro See https://prnt.sc/rp6v5v and https://prnt.sc/rp6vu0 as Present in Payment of bank transfer and Check / Money Order : See https://prnt.sc/rp6scb and https://prnt.sc/rp6s5r.

Please let me know how I can accomplish this.

Looking for an EU based payment solution for gambling

Advertising

Dont do it?

Advertise pretty much anything here, with CPM banner ads, CPM email ads, and CPC contextual links. You can segment relevant areas of the site and display ads based on the user's geographic location if you want.

It starts at just $ 1 per CPM or $ 0.10 per CPC.

Onlystream.tv – HLS Streaming | Minimum payment of $ 5 | Daily payments | Up to $ 40 / 10k | Proxies123.com

Dear Wjunction users,

We are happy to present Onlystream.tv, We are using ultra-fast HLS streaming technology so you don't see buffered videos on both desktop and mobile devices.

Key features
– Ultra fast HLS transmission
– Faster encoding
– Supports HD quality up to 1080p
– Unlimited storage
– We never delete files due to DMCA
– Z-O-O-M charger holder
– Subtitle loading option
– Adult content is allowed.
– The minimum payment is only $ 5
– 4 views are counted per IP
– FTP upload

Compatible remote upload hosts:
Openload.co, Verystream.com, Rapidvideo.com, Vidoza.net, Streamango.com, Streamcherry.com, Streamcloud.eu, Dropbox.com, Xhamster.com, Pornhub.com

Example video:
https://onlystream.tv/81wtedm4e06u

To learn more about the affiliate program, see:
https://onlystream.tv/make_money.html

For more information you can contact us through:
[protected email] or https://onlystream.tv/contact or send us a Skype to Onlystream.tv

We are happy to hear your suggestions here and we will try to make onlystream.tv The best possible.

Happy Streaming
Onlystream Team

payment – required fields are required but not shown in shipping address

I'm using magento 2.3.3, when I try to send the chekout request it doesn't show some fields and gives me:

Please verify the shipping address information. "firstname"It is required. Please log in and try again."lastname"It is required. Please log in and try again."city"is required. Please log in and try again.

please help

Epaycore.com -Multifunctional payment service

ePayCore: Confidenziale. Convenient. Surely.
IPB image
This payment system was founded in February 2019.
Currently, the Administration of the payment system. carries out an extensive advertising campaign between investment blogs, monitoring and forums.

Registration in the payment system is absolutely FREE!

After specifying the phone or email, the code will come by entering that hand the specified data will come password,

QUOTE

the standard password can be changed in "Settings". Here you can edit your profile data, install additional protection and account verification procedure.

The site currently operates in two languages: Russian and English

ePayCore now you accept:
Small size image
methereum (0% commission)
P.M (3% commission)
Payeer (3% commission)
Bitcoin (0% commission)
Adv Cash(0% commission)

National currency Display:

methereum (1% commission)
P.M (Commission 2%)
Payeer (Commission 2%)
Bitcoin (1% commission)
Adv Cash(1% commission)

(YES)All transfers within the system NO fee! (0%)(/YES) (unlimited rotation of funds)

will open in the future the payment card that can withdraw the balance from the wallets (YES)ePayCore(/YES)

Affiliate program: Ready pay twenty% of the fee charged to system users.

Api and Sci: (only for verified users)
Small size image

Account verification: (after verification, the user gains access to ApI and ScI)

  1. fill in the details in your account settings;
  2. confirm email and phone;
  3. upload identity document (passport, ID card);
  4. upload a document confirming the place of residence Receipt of payments for public services, receipt of communication services, bank statement / card, bank confirmation of an account opened in your name, registration page of your passport, tax notification , vehicle registration certificate).

currency exchange:
Small size image
you can change funds in the balance to cryptocurrency and back with 0% Commission!

Customer Support:
Ticket system.
Support for:
(protected email)
Technical questions:
(protected email)
For cooperation:
(protected email)
Financial problems:
(protected email)

REGISTRY!!!
Small size image

This publication has been edited by biohazardd: Today, 12:02 p.m.

magento2: payment custom shipping address field – configured as needed

I have created a custom module that adds a text field in the shipping address. It's working fine, but I'd like to make it necessary. How can I do that?

I tried to add 'required-entry' => true in the validation parameter, in the file Plugin/Checkout/LayoutProcessor.php But it does not work.

Here are the module files:


Mymodules/FieldCheckout/registration.php

Mymodules/FieldCheckout/etc/frontend/di.xml




    
        
    

Mymodules/FieldCheckout/etc/di.xml



    
        
    

Mymodules/FieldCheckout/etc/events.xml




    
        
    

Mymodules/FieldCheckout/etc/extension_attributes.xml




    
        
    

Mymodules/FieldCheckout/etc/module.xml




    
        
            
        
    

Mymodules/FieldCheckout/Observer/SaveOrderObserver.php

getEvent()->getOrder();
        $quote = $observer->getEvent()->getQuote();

        $order->setData('xorio_field', $quote->getXorioField());

        return $this;
    }
}

Mymodules/FieldCheckout/Plugin/Checkout/LayoutProcessor.php

 'Magento_Ui/js/form/element/abstract',
            'config' => (
                'customScope' => 'shippingAddress.custom_attributes',
                'template' => 'ui/form/field',
                'elementTmpl' => 'ui/form/element/input',
                'options' => (),
                'id' => 'xorio-fields'
            ),
            'dataScope' => 'shippingAddress.custom_attributes.xorio_field',
            'label' => 'Town / Village',
            'provider' => 'checkoutProvider',
            'visible' => true,
            'validation' => (),
            'sortOrder' => 90,
            'id' => 'xorio-fields'
        );


        return $jsLayout;
    }
}

Mymodules/FieldCheckout/Plugin/Checkout/Model/ShippingInformationManagement.php

quoteRepository = $quoteRepository;
    }

    public function beforeSaveAddressInformation(
        MagentoCheckoutModelShippingInformationManagement $subject,
        $cartId,
        MagentoCheckoutApiDataShippingInformationInterface $addressInformation
    )
    {
        if(!$extensionAttributes = $addressInformation->getExtensionAttributes())
        {
            return;
        }

        $quote = $this->quoteRepository->getActive($cartId);
        $quote->setXorioField($extensionAttributes->getXorioField());
    }
}

Mymodules/FieldCheckout/Setup/InstallSchema.php

startSetup();

        $quote = $setup->getTable('quote');
        $salesOrder = $setup->getTable('sales_order');


        $setup->getConnection()->addColumn(
            $quote,
            'xorio_field',
            (
                'type' => MagentoFrameworkDBDdlTable::TYPE_TEXT,
                'nullable' => true,
                'comment' =>'Town / Village'
            )
        );

        $setup->getConnection()->addColumn(
            $salesOrder,
            'xorio_field',
            (
                'type' => MagentoFrameworkDBDdlTable::TYPE_TEXT,
                'nullable' => true,
                'comment' =>'Town / Village'
            )
        );

        $setup->endSetup();
    }
}

Mymodules/FieldCheckout/view/frontend/web/js/model/shipping-save-processor/default.js

define(
    (
        'jquery',
        'ko',
        'Magento_Checkout/js/model/quote',
        'Magento_Checkout/js/model/resource-url-manager',
        'mage/storage',
        'Magento_Checkout/js/model/payment-service',
        'Magento_Checkout/js/model/payment/method-converter',
        'Magento_Checkout/js/model/error-processor',
        'Magento_Checkout/js/model/full-screen-loader',
        'Magento_Checkout/js/action/select-billing-address'
    ),
    function (
        $,
        ko,
        quote,
        resourceUrlManager,
        storage,
        paymentService,
        methodConverter,
        errorProcessor,
        fullScreenLoader,
        selectBillingAddressAction
    ) {
        'use strict';

        return {
            saveShippingInformation: function () {
                var payload;

                if (!quote.billingAddress()) {
                    selectBillingAddressAction(quote.shippingAddress());
                }

                var xorioField = $('(name="custom_attributes(xorio_field)")').val();

                payload = {
                    addressInformation: {
                        shipping_address: quote.shippingAddress(),
                        billing_address: quote.billingAddress(),
                        shipping_method_code: quote.shippingMethod().method_code,
                        shipping_carrier_code: quote.shippingMethod().carrier_code,
                        extension_attributes:{
                            xorio_field: xorioField 

                        }
                    }
                };

                fullScreenLoader.startLoader();

                return storage.post(
                    resourceUrlManager.getUrlForSetShippingInformation(quote),
                    JSON.stringify(payload)
                ).done(
                    function (response) {
                        quote.setTotals(response.totals);
                        paymentService.setPaymentMethods(methodConverter(response.payment_methods));
                        fullScreenLoader.stopLoader();
                    }
                ).fail(
                    function (response) {
                        errorProcessor.process(response);
                        fullScreenLoader.stopLoader();
                    }
                );
            }
        };
    }
);

Mymodules/FieldCheckout/view/frontend/requirejs-config.js

var config = {
    "map": {
        "*": {
            'Magento_Checkout/js/model/shipping-save-processor/default': 'Mymodules_FieldCheckout/js/model/shipping-save-processor/default'
        }
    }
};

magento2.3 – Magento2 shipment is not created after successful Paypal payment

In our magento 2.3.3 after the order paid and paid through Paypal.
The order has a status of Complete.
The invoice has the status Paid automatically.
But the submission is not created, error in the log file:
(2020-03-25 07:19:47) main.ERROR: SQLSTATE (23000): Integrity constraint violation: 1452 Unable to add or update a secondary row: a foreign key constraint fails (tuerenmeile2.sales_shipment, RESTRICTION SALES_SHIPMENT_ORDER_ID_SALES_ORDER_ENTITY_ID EXTERNAL KEY (order_id) REFERENCES sales_order (entity_id) WHEN ELIMINATING A WATERFALL), the query was: INSERT IN sales_shipment (store_id, total_qty, customer_id, shipping_address_id, billing_address_id, increment_id, packages) VALUES (?, ?, ?, ?, ?, ?, ?) () ()

What does that mean?