Domain & Hosting Shopping Cart with Ajax Domain Checker & Whois Lookup – WHMCS Alternative


domainCart is a mobile responsive PHP shopping cart script for selling domain and hosting related services. Ajax supported domain availability checking, 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, 27+ online payment gateways, multi-currency with auto exchanger. It is the cheapest alternative to WHMCS and other hosting billing systems

Script Features

○ Supports mobile responsive with custom isolated Bootstrap(so it’s not affected your current template css). It can be integrated to any web page layout by adding a few codes.

○ Works with over 700 domain extensions.

○ Supports IDN(Internationalized Domain Name).

○ Determines domain availability.

○ Ability whois lookup

○ 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, OKPAY, Cashu, DIXIPAY, OneCard, CCAvenue, PayFast, Stripe, Payeer, PerfectMoney, PayU Latam, Webmoney, Paytm, Manual(for SEPA Direct Debit, Bank Transfer or other Offline payment) and Custom(Cart Payments or other online payments with any of your own payment gateway) processing.

○ Custom Credit Card Payment Form can be added to the checkout. It uses jQuery Credit Card Validator.

○ Supports monthly recurring billing on Paypal, Worldpay Futurepay, CDGCommerce.

○ 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.3+ only. It works on all servers(Linux, Windows.. etc.) whether reseller, shared, vps or dedicated.

Demo (without Template)

>>> Buy Now – $9.99 <<<

(domainCart v5.61 Owned License is only $9.99. It is one time fee and the license is valid forever with no requirement to renew)

magento2 – Promotional content block on the cart which changes by customer segment

A merchant would like a promotional content block on the cart which changes by customer segment. the
content should only appear when you cart total is $50 or more excluding shipping

What solution will meet the requirement?

  1. Create a widget with a static block assign to a customer price rule.

2]Create a dynamic block and choose the customer segment

3]Create a static block and add it to the layout area for the shopping cart with the customer segment

4]Create a banner, apply the ‘customer segment to the banner and choose the banner price rule

8 – Why does my shopping cart item not have a label?

I’m working on D8 site with Drupal Commerce.
I have to create a dynamic product variation and add it to cart for the user checkout.

The problem I have, is when you land on the cart page, the line item doesn’t have a label (title) it replaced with the price of the item. Please refer to the attached image.

Here’s my code:

   //create variation
            $variation = ProductVariation::create((
                'type' => 'fk_payment',
                'sku' => 'FK'.$faid,
                'status' => TRUE,
                'price' => new Price($trans->getTotal(), $trans->getCurrency()),
                'title' => "Example item label title",
              ));

            $variation->save();

            //Load the product
            $product_id = 4;
            $product = Product::load($product_id);
            $product->addVariation($variation);
            $product->save();

            //load store
            $storeId = $product->get('stores')->getValue()(0)('target_id');
            $store = Drupal::entityTypeManager()
            ->getStorage('commerce_store')
            ->load($storeId);
            
            //prepare cart
            $cart = Drupal::service('commerce_cart.cart_provider');
            $cart = $cart->getCart('default', $store);
            
            if (!$cart) {
                $cart = Drupal::service('commerce_cart.cart_provider');
                $cart = $cart->createCart('default', $store);
            }

            // Process to place order programatically.
            $cart_manager = Drupal::service('commerce_cart.cart_manager');

            //empty the cart
            if (!empty($cart)) {
                $cart_manager->emptyCart($cart);
            }

            $cart_manager->addEntity($cart, $variation);

enter image description here

8 – Why my shopping cart item doesn’t have a label?

I’m working on D8 site with Drupal commerce.
I have to create a dynamic product variation and add to cart for the user checkout.

The problem I have, is when you landed on the cart page, the line item doesn’t have a label (title) it replaced with the price of the item. Please refer to the attached image.

Here’s my code:

   //create variation
            $variation = ProductVariation::create((
                'type' => 'fk_payment',
                'sku' => 'FK'.$faid,
                'status' => TRUE,
                'price' => new Price($trans->getTotal(), $trans->getCurrency()),
                'title' => "Example item label title",
              ));

            $variation->save();

            //Load the product
            $product_id = 4;
            $product = Product::load($product_id);
            $product->addVariation($variation);
            $product->save();

            //load store
            $storeId = $product->get('stores')->getValue()(0)('target_id');
            $store = Drupal::entityTypeManager()
            ->getStorage('commerce_store')
            ->load($storeId);
            
            //prepare cart
            $cart = Drupal::service('commerce_cart.cart_provider');
            $cart = $cart->getCart('default', $store);
            
            if (!$cart) {
                $cart = Drupal::service('commerce_cart.cart_provider');
                $cart = $cart->createCart('default', $store);
            }

            // Process to place order programatically.
            $cart_manager = Drupal::service('commerce_cart.cart_manager');

            //empty the cart
            if (!empty($cart)) {
                $cart_manager->emptyCart($cart);
            }

            $cart_manager->addEntity($cart, $variation);

enter image description here

plugins – Add to cart url not working for all users

I don’t know if these happened to somebody before. My add to cart url its malfunctioning, for some reason on some users when they click on the link the product isn’t added to the cart and for others users (in the same time without changing anything)its working the product is added to the cart
Any idea on how to solve this ?

magento2.4 – How to display the cart number on each page?

I am having an issue,How to display the cart number on each page?

$helper = $this->helper('MagentoCheckoutHelperCart');
echo $helper->getItemsCount();

or

$helper = $this->helper('MagentoCheckoutHelperCart::class');
echo $helper->getSummaryCount();

Can only be displayed on the shopping cart page, and still displays 0 on other pages

Override sidebar.js for the mini cart – magento2.4

I’m trying to override the sidebar.js(minicart) file which I did with other classes in the requirejs file but the sidebar is just not overriding.
I’m actually trying to add a new event to the sidebar.js init method.
Is there any way to rewrite the sidebar class or any other approach if overriding is not possible?

magento2.3 – magento 2.3 get cart item related to applied cart rule

Situation:

  • There are 4 products in the cart
  • One of these products causes a cart rule to apply

By getting the cart items via code, I need to be able to identify the one item that is causing the rule to apply.

My problem is that I cannot find a way to separate this item from the others in the cart, they all return the same results.

My code so far:

foreach($quote->getItems() as $quoteItem) {

$itemAppliedRulesId = $quoteItem->getAppliedRuleIds(); // I expect this to  give a result only for the one item that matches the cart rule, instead all the items returns the rule id

$product = $quoteItem->getProduct();
$result = $rule->getActions()->validate($product); // see comment above, same result

}

My question:

Is there a way I can get the items of the cart that cause one or more rules to apply?

php – How to add a product to the cart after it is created

I need to create a woocommerce product with code, I am using this code to create the product.

function createNewProductTest() {

  $post_id = wp_insert_post( array(
  'post_title' => 'Custom Suscription',
  'post_content' => 'Text',
  'post_status' => 'publish',
  'post_type' => "product",
  ) );

  wp_set_object_terms( $post_id, 'subscription', 'product_type' );
  update_post_meta( $post_id, '_price', '600' );
  update_post_meta( $post_id, '_subscription_price', '600' );
  update_post_meta( $post_id, '_subscription_period', 'year' );
  update_post_meta( $post_id, '_subscription_length', '1' );

  $woocommerce->cart->add_to_cart( $post_id );

}

The code works correctly, the product is created and saved in woocommerce, the problem is that once the product is finished being created I must add it to the cart, for that I am using this code.

$woocommerce->cart->add_to_cart( $post_id );

However even though the product that you successfully add to woocommerce fails to add to cart, it returns this error to me.

Product has been removed from your cart because it has since been modified.

As I can add the product to the cart correctly, I think the problem is that the meta fields are still being updated, but I don’t know how to make the function wait for the product to finish updating to be added to the cart.

I would appreciate any help, Thank you

woocommerce offtopic – Hook that runs on update cart totals and on shipping address change

I’m looking for a woocommerce hook that will run whenever the shipping option is changes, looks like woocommerce_before_calculate_totals but also I need it run whenever shipping address is changed. I need this all to happen on the cart page. I have a ups for shipping, and when I change the shipping address the cart totals get updates but my woocommerce_before_calculate_totals is not triggered it only gets triggered on shipping option change.

Any help is much appreciated.