Order success page redirects to shopping cart page after succesfull online payment

I am using Razorpay payment gateway and installed it’s extension from it’s official website. After completing successful payment the order success page is redirected to cart page and products are still there in cart.
Well this works well with offline payment methods such as cod.

This is after I migrated from 1.9.2.0 to 2.3.4. I know something is relayed to database

Anyone can help for this??

Cozshopping.com Price Comparison Site and Shopping Search Engine

Why are you selling this site?
I need quick cash for emergency family reason

How is it monetized?
Affiliate programs (cj.com and shareasale.com) and also Amazon associates.

Does this site come with any social media accounts?
No

How much time does this site take to run?
Since 2015

What challenges are there with running this site?
Hosting fee. Cozshopping.com need good vps or dedicated server to run it to the max.
SEMrush

 

magento2 – “Update Shopping Cart” button redirects to homepage when admin setting “Product Redirect to Shopping Cart” is set to No

Magento 2.3.5 under Nginx

“Update Shopping Cart” button redirects to homepage when pressed. The quantity is updated but the customer is forced to go to the homepage instead of staying in the shopping cart.

In Store>Configuration>Sales>Checkout>Shopping Cart, there is a setting called “After Adding a Product Redirect to Shopping Cart”. When this is set to “No”, I get this problem of being redirected to the homepage when updating the cart.

When this setting is changed to “Yes”, the problem goes away. “Update Shopping Cart” works normally and the user can update the shopping cart and stays in the cart.

Anyone have some ideas for how to debug this issue?

magento2.3.4 The number of shopping carts is not displayed

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function MagentoQuoteModelQuoteInterceptor::setExtensionAttributes(), 0 passed in /Applications/MAMP/htdocs/mgtcs/development/vendor/magento/framework/DataObject.php on line 207 and exactly 1 expected in /Applications/MAMP/htdocs/mgtcs/development/generated/code/Magento/Quote/Model/Quote/Interceptor.php:1398
Stack trace:
#0 /Applications/MAMP/htdocs/mgtcs/development/vendor/magento/framework/DataObject.php(207): MagentoQuoteModelQuoteInterceptor->setExtensionAttributes()
#1 /Applications/MAMP/htdocs/mgtcs/development/generated/code/Magento/Quote/Model/Quote/Interceptor.php(2000): MagentoFrameworkDataObject->setDataUsingMethod(‘customer_prefix’, NULL)
#2 /Applications/MAMP/htdocs/mgtcs/development/vendor/magento/framework/DataObject/Copy.php(368): MagentoQuoteModelQuoteInterceptor->setDataUsingMethod(‘customer_prefix’, NULL)
#3 /Applications/MAMP/htdocs/mgtcs/development/vendor/magento/framework/DataObject/Copy.php(245): MagentoFrameworkDataObje in /Applications/MAMP/htdocs/mgtcs/development/generated/code/Magento/Quote/Model/Quote/Interceptor.php on line 1398

magento 1.9 – Error individual price when maximum Qty Allowed in Shopping Cart are exceced

I set max qty allowed in the shopping cart to 3 products but when I add more than 3 products to cart, the individual prices reduce.
Example product priced at 15 when you add more that 3 the price shows as 5 each.

I don’t have any tier price or cart promotion there, any solution?

Responsive Domain and Hosting Shopping Cart – Cheap WHMCS Alternative – $9.99 (One Time Fee)


domainCart is a mobile responsive PHP shopping cart software for selling domain and hosting related services. Checking domain availability, whois lookup, adding domain and hosting related services to the shopping cart and completing order are all controlled from one page. It supports over 700 domain extensions, 28+ payment gateways, multi-currency with auto exchanger. It is the cheapest alternative to WHMCS and other Hosting billing systems.

All the tools you need to start a web hosting business today

domainCart comes with open source and fully customizable free responsive HTML5 web hosting template. The template can be used alone(eg. with any hosting billing script) or domainCart can be easily integrated to any other template, too.

Script Features

• Supports mobile responsive. It can be integrated to any web page layout by adding a few PHP codes.

• Works with over 700 domain extensions.

• Supports IDN (Internationalized Domain Name).

• Determines domain availability.

• Ability whois search

• Easy to include only the domain extensions you wish to sell and support.

• Any registration periods and prices allowed for each domain extension.

• Supports domain transfer.

• Option to select hosting package for each domain name.

• Providing free or discounted domain with hosting (minimum required hosting price can be determined).

• Buying a hosting with a domain can be set as mandatory.

• Minimum order amount can be set to add a product to the cart.

• Built in support for 2checkout, Paypal, Skrill, Nochex, E-Gold, Worldpay Futurepay, Ideal(ING, Rabo, ABN AMRO), Paymate, CDGCommerce, Authorize.net, Payza, OKPAY, Cashu, DIXIPAY, OneCard, CCAvenue, PayFast, Stripe, Payeer, SolidTrustPay, PerfectMoney, PayU Latam, Webmoney, Paytm, Manual(for SEPA Direct Debit, Bank Transfer or other offline payments) and Custom(Credit Card or other payments with any your own payment gateway) processing.

• Supports monthly recurring billing on Paypal, Worldpay Futurepay, CDGCommerce and Payza.

• Sends email to buyer and vendor with order details at checkout(supports SMTP authentication).

• Supports Tax.

• Supports any currency symbol or name. You can define right and left currency symbols and currency code(for default and each payment gateways separately)

• Multi-Currency support. Supports auto and manual currency exchange. It can be convert default currency to payment gateway’s currency automatically. It gets exchange rates from European Central Bank’s daily rates. Or you can define exchange rates manually for each payment gateway. All prices and currency appear as payment gateway’s on order statement emails.

• Uses one language file for easy translation.

• User defined fields for order form.

• User defined email messages.

• Blocking orders from specific email addresses.

• Supports sending SMS text alert to seller and buyer when order received(It requires Clickatell.com account).

• Supports advanced multiple coupon system. You can define any number of coupon codes offering different discounts for Domain, Hosting first and recurring payments.

• Supports Google’s reCAPTCHA v3.

• Excellent documentation and more..

Requirements

It required PHP 7+ only. It works on all servers(Linux, Windows.. etc.) whether shared/reseller or dedicated.

Demo – without template | Demo – with integrated template

>>> Buy Now <<<

(domainCart v5.49 Owned License (Includes Free Responsive HTML5 Web Hosting Template) is only $9.99 for a limited time. It is one time fee and can be used under any domain forever with no requirement to renew.

php – Changing the Shopping cart Table order / VAT disappeared

I want to change the column order in the Shopping cart table.
I want to exchange the Posititions of the Sum and VAT Column so that the Sum is the Last position.
I guest the right php Template is the cart.php. Also the VAT name disappeared somehow in my column. I have VAT activated in all of my plugins and settings but it wont show :S
I would be really thankful if the Pros out there could help me 🙂

enter image description here

    <?php
/**
 * Cart Page
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/cart/cart.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see     https://docs.woocommerce.com/document/template-structure/
 * @package WooCommerce/Templates
 * @version 3.8.0
 */

defined( 'ABSPATH' ) || exit;

do_action( 'woocommerce_before_cart' ); ?>

<form class="woocommerce-cart-form" action="<?php echo esc_url( wc_get_cart_url() ); ?>" method="post">
    <?php do_action( 'woocommerce_before_cart_table' ); ?>

    <table class="shop_table shop_table_responsive cart woocommerce-cart-form__contents" cellspacing="0">
        <thead>
            <tr>
                <th class="product-remove">&nbsp;</th>
                <th class="product-thumbnail">&nbsp;</th>
                <th class="product-name"><?php esc_html_e( 'Product', 'woocommerce' ); ?></th>
                <th class="product-price"><?php esc_html_e( 'Price', 'woocommerce' ); ?></th>
                <th class="product-quantity"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></th>
                <th class="product-subtotal"><?php esc_html_e( 'Subtotal', 'woocommerce' ); ?></th>
            </tr>
        </thead>
        <tbody>
            <?php do_action( 'woocommerce_before_cart_contents' ); ?>

            <?php
            foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
                $_product   = apply_filters( 'woocommerce_cart_item_product', $cart_item('data'), $cart_item, $cart_item_key );
                $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item('product_id'), $cart_item, $cart_item_key );

                if ( $_product && $_product->exists() && $cart_item('quantity') > 0 && apply_filters( 'woocommerce_cart_item_visible', true, $cart_item, $cart_item_key ) ) {
                    $product_permalink = apply_filters( 'woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink( $cart_item ) : '', $cart_item, $cart_item_key );
                    ?>
                    <tr class="woocommerce-cart-form__cart-item <?php echo esc_attr( apply_filters( 'woocommerce_cart_item_class', 'cart_item', $cart_item, $cart_item_key ) ); ?>">

                        <td class="product-remove">
                            <?php
                                echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
                                    'woocommerce_cart_item_remove_link',
                                    sprintf(
                                        '<a href="%s" class="remove" aria-label="%s" data-product_id="%s" data-product_sku="%s">&times;</a>',
                                        esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
                                        esc_html__( 'Remove this item', 'woocommerce' ),
                                        esc_attr( $product_id ),
                                        esc_attr( $_product->get_sku() )
                                    ),
                                    $cart_item_key
                                );
                            ?>
                        </td>

                        <td class="product-thumbnail">
                        <?php
                        $thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key );

                        if ( ! $product_permalink ) {
                            echo $thumbnail; // PHPCS: XSS ok.
                        } else {
                            printf( '<a href="%s">%s</a>', esc_url( $product_permalink ), $thumbnail ); // PHPCS: XSS ok.
                        }
                        ?>
                        </td>

                        <td class="product-name" data-title="<?php esc_attr_e( 'Product', 'woocommerce' ); ?>">
                        <?php
                        if ( ! $product_permalink ) {
                            echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ) . '&nbsp;' );
                        } else {
                            echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', sprintf( '<a href="%s">%s</a>', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ) );
                        }

                        do_action( 'woocommerce_after_cart_item_name', $cart_item, $cart_item_key );

                        // Meta data.
                        echo wc_get_formatted_cart_item_data( $cart_item ); // PHPCS: XSS ok.

                        // Backorder notification.
                        if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item('quantity') ) ) {
                            echo wp_kses_post( apply_filters( 'woocommerce_cart_item_backorder_notification', '<p class="backorder_notification">' . esc_html__( 'Available on backorder', 'woocommerce' ) . '</p>', $product_id ) );
                        }
                        ?>
                        </td>

                        <td class="product-price" data-title="<?php esc_attr_e( 'Price', 'woocommerce' ); ?>">
                            <?php
                                echo apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key ); // PHPCS: XSS ok.
                            ?>
                        </td>

                        <td class="product-quantity" data-title="<?php esc_attr_e( 'Quantity', 'woocommerce' ); ?>">
                        <?php
                        if ( $_product->is_sold_individually() ) {
                            $product_quantity = sprintf( '1 <input type="hidden" name="cart(%s)(qty)" value="1" />', $cart_item_key );
                        } else {
                            $product_quantity = woocommerce_quantity_input(
                                array(
                                    'input_name'   => "cart({$cart_item_key})(qty)",
                                    'input_value'  => $cart_item('quantity'),
                                    'max_value'    => $_product->get_max_purchase_quantity(),
                                    'min_value'    => '0',
                                    'product_name' => $_product->get_name(),
                                ),
                                $_product,
                                false
                            );
                        }

                        echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); // PHPCS: XSS ok.
                        ?>
                        </td>

                        <td class="product-subtotal" data-title="<?php esc_attr_e( 'Subtotal', 'woocommerce' ); ?>">
                            <?php
                                echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item('quantity') ), $cart_item, $cart_item_key ); // PHPCS: XSS ok.
                            ?>
                        </td>
                    </tr>
                    <?php
                }
            }
            ?>

            <?php do_action( 'woocommerce_cart_contents' ); ?>

            <tr>
                <td colspan="6" class="actions">

                    <?php if ( wc_coupons_enabled() ) { ?>
                        <div class="coupon">
                            <label for="coupon_code"><?php esc_html_e( 'Coupon:', 'woocommerce' ); ?></label> <input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" /> <button type="submit" class="button" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>"><?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?></button>
                            <?php do_action( 'woocommerce_cart_coupon' ); ?>
                        </div>
                    <?php } ?>

                    <button type="submit" class="button" name="update_cart" value="<?php esc_attr_e( 'Update cart', 'woocommerce' ); ?>"><?php esc_html_e( 'Update cart', 'woocommerce' ); ?></button>

                    <?php do_action( 'woocommerce_cart_actions' ); ?>

                    <?php wp_nonce_field( 'woocommerce-cart', 'woocommerce-cart-nonce' ); ?>
                </td>
            </tr>

            <?php do_action( 'woocommerce_after_cart_contents' ); ?>
        </tbody>
    </table>
    <?php do_action( 'woocommerce_after_cart_table' ); ?>
</form>

<?php do_action( 'woocommerce_before_cart_collaterals' ); ?>

<div class="cart-collaterals">
    <?php
        /**
         * Cart collaterals hook.
         *
         * @hooked woocommerce_cross_sell_display
         * @hooked woocommerce_cart_totals - 10
         */
        do_action( 'woocommerce_cart_collaterals' );
    ?>
</div>

<?php do_action( 'woocommerce_after_cart' ); ?>

node.js – cant add items do shopping cart node js

0

when i try to add an item to the shopping cart

appears this error in the screen https://prnt.sc/t08epi

this is my cart models file:

module.exports = function Cart(oldCart) {
this.items = oldCart.items || {};
this.totalQty = oldCart.totalQty || 0;
this.totalPrice = oldCart.totalPrice || 0;

this.add = function (item, id) {
var storedItem = this.items(id);

if (!storedItem) {
    storedItem = this.items(id) = { item: item, qty: 0, price: 0 }
    }

storedItem.qty++;
storedItem.price = storedItem.item.price * storedItem.qty; //sub total
this.totalQty++;
this.totalPrice += storedItem.item.price; //total

}
}

this is my router cart:

var express = require('express');
var router = express.Router();
var Product = require('../models/Product');
var Cart = require('../models/Cart');

router.get('/add-to-cart/:id', (req, res, next) => {

var productId = req.params.id;
var cart = new Cart(req.session.cart ? req.session.cart : { items: {} });
Product.findById(productId, (err, product) => {
if (err) return res.redirect('/');
cart.add(product, product.id);
req.session.cart = cart;
res.redirect('/');

});

});

module.exports = router;

my app.js

var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var expressHbs = require ('express-handlebars');
var mongoose = require('mongoose');
var session = require('express-session');
var flash = require('connect-flash');
var validator = require('express-validator');
var passport = require('passport');
var MongoStore = require('connect-mongo')(session);





var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
var cartRouter = require('./routes/cart');
var dbConfig = require ('./database/db');


var app = express();

mongoose.connect(dbConfig.url,{useNewUrlParser: true, useUnifiedTopology:true});
require('./config/passport');

// view engine setup

 app.engine('.hbs', expressHbs({defaultLayout: 'layout' , extname:'.hbs'}));

//app.set(‘views’, path.join(__dirname, ‘views’));

app.set('view engine', '.hbs');

app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(validator());
app.use(cookieParser());
app.use(session({
  secret: 'mySecretPassword',
  resave: false,
  saveUninitialized: false,
  store: new MongoStore({ mongooseConnection: mongoose.connection }),
  cookie: { maxAge: 120 * 60 * 60 }
}));


app.use(flash());
app.use(passport.initialize());
app.use(passport.session());
app.use(express.static(path.join(__dirname, 'public')));


app.use((req,res,next)=>{
res.locals.login = req.isAuthenticated();
res.locals.session = req.session;
next();

})

app.use('/', indexRouter);
app.use('/user', usersRouter);
app.use('/cart', cartRouter);

// catch 404 and forward to error handler

app.use(function(req, res, next) {
  next(createError(404));
});

// error handler

app.use(function(err, req, res, next) {

// set locals, only providing error in development

  res.locals.message = err.message;
  res.locals.error = req.app.get('env') === 'development' ? err : {};

// render the error page

  res.status(err.status || 500);
  res.render('error');
});

module.exports = app;

my store.hbs

<div class="container">

{{#each productsDocuments }}

<div class="col-md-4 mb-4">
    <div class="card">
        <div class="card-header">
            games available
        </div>
        <div class="card-body">
            <img src={{ this.imagePath }} alt="" class="img-fluid zoom" style="height: 200px;">
            <hr />
            <h3>{{ this.title }}</h3>
            <p class="description">{{ this.description }}</p>
            <div class="price">
                ${{ this.price }}
            </div>
            <div class="row">
                <div class="col-md-8"></div>
                <div class="col-md-2 offset-md-1">
                    <a href="http://codereview.stackexchange.com/cart/add-to-cart/{{this.id}}" class="btn btn-dark btn-lg pull-right"
                        role="button">
                        <i class="fas fa-cart-plus"></i>
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>

{{/each}}

error log

NotFoundError: Not Found

at D:programfilesvsprojectsshopping-cartshopping-cartapp.js:66:8
at Layer.handle (as handle_request) (D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterlayer.js:95:5)
at trim_prefix (D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:317:13)
at D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:284:7
at Function.process_params (D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:335:12)
at next (D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:275:10)
at D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:635:15
at next (D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:260:14)
at Function.handle (D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:174:3)
at router (D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:47:12)
at Layer.handle (as handle_request) (D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterlayer.js:95:5)
at trim_prefix (D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:317:13)
at D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:284:7
at Function.process_params (D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:335:12)

at next (D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:275:10)
at D:programfilesvsprojectsshopping-cartshopping-cartnode_modulesexpresslibrouterindex.js:635:15
i cant see what im doing wrong anyone can help?