e commerce – Selecting products for product comparison: Mobile UX?

Here is an example from Walgreens. You could expand this approach and offer an expandable drawer for users to see the items they have currently added to the comparison list, before opening the comparison page.

An additional consideration for mobile is the treatment of the comparison table in limited screen real estate. There are a few articles regarding this, here is one.

enter image description here

How can I accurately determine when a customer is on the “Review” step in Commerce?

I’ve created a custom checkout pane by extending Drupalcommerce_checkoutPluginCommerceCheckoutPaneCheckoutPaneBase and added it to the “Order information” step in a checkout flow. This accepts customer data.

The customer then progresses to the “Review” stage to confirm everything is correct. The customer can “Edit” their information if required, going back to the “Order information” step.

Within the custom pane I’m wanting to determine whether it’s being displayed in the “Order information” step or the “Review” step.

getStepId() always returns what’s in the config for the pane. In this case, “Order information”.

$this->order->checkout_step seems to always return “Review”, or maybe it’s just reporting the highest step reached in the order thus far.

Is there a Commerce native way of determining the exact step being viewed? Or will I need to check the URL directly?

views – Drupal7 Commerce – Multiple Custom Line Items with single add to cart button

I am working on a system that pulls in available dates and booking references from a third party API – we then need to add these pieces of extra information to a line_item that is added to cart.

I have the custom line item setup by way of


What I would really like to see now is several products (Adult, Child, Concession) – all being available within one form – and a single add to bag button. With the caveat of needing to submit the custom line_item attributes at the same time (these values will be copied over using Javascript after being selected in the UI).

I have made use of commerce_add_to_cart_extras – which provides a view of the products – with a single add to bag – but no notion of being able to add the line_item attributes to the form. Indeed – I’m not even sure that the form processing of this module caters for custom line_item – even if my form_alter code managed to get the syntax of the extra fields correct:

$form_state('rebuild') = TRUE;
        $form('line_item_fields')('#tree') = TRUE;
        foreach(element_children($form('add_to_cart_quantity')) as $key) {
          //  echo ("here: ".print_r($form('add_to_cart_quantity')($key)));                                    
                '#product_id' => $form('add_to_cart_quantity')($key)('#product_id'),
                '#tree' => TRUE

Has anybody got a solution to how this can be done? We only have one product type – and one custom line item type to consider – and they have a 1:1 mapping.

Hope someone can help here!

commerce – How do I sell tickets?

I’m using Commerce 2.x to sell tickets to an event that requires registration info. I currently have things setup so that one can go and add, for example 3 tickets. I’d like to be able to have them add those tickets, go to the cart, begin the order process, and be given a form to enter, e.g., 3 persons’ worth of registration info.

How can I achieve this?

Content versus electronic commerce

I'm at a kind of crossroads. I currently operate 4 online stores that sell a range of products that I must obtain, pack and ship from the UK to the USA. USA It's slow, expensive to run, and apparently I never get a break from email and customers who want to know where their stuff is.

I also have some content sites running AdSense, Chitika, or a combination of both. I make enough money to pay my salary just from the content.

I am very upset with the execution of e-commerce …

Content versus electronic commerce

An unregistered user's cart item is displayed with a different unregistered user in Drupal Commerce

Using Commerce 2 in Drupal 8.8 I have the problem that if an unregistered user places something in their cart (and does not check it), another unregistered user sees these items in their block "cart" (provided by the view (order) ). They are not displayed on the users' page / cart.

Armorica – Electronic Commerce Affiliate Network | CPA, RS | Smart tools for webmasters | High payments | Forum promotion

Armorica is a affiliate network with a great diversity of CPA, CPS and revenue share offers in most popular verticals of Electronic commerce to CBD and Nutrition. All of our offers are carefully selected and integrated to give our affiliates a chance to work with the best offers from around the world.
Payments can be delivered through Skrill, Neteller, Webmoney, Bitcoin, Paypal, bank transfer, and all other most popular systems. The minimum payment amount is $ 100.

Valuable smart tools It will allow you to discover the best ways to monetize traffic.
⭐ With the help of Onelink tool, you can promote a large number of offers using a particular link. This is a convenient solution for mixed GEO traffic. By defining the user's GEO, an offer is obtained to maintain this definitive GEO.
Rotator AD or Banner rotator It is useful smart tool for each website owner. It supports the opportunity to add different banners from various offers in a particular banner space. When analyzing the visitor's GEO, it displays a banner of an offer that accepts it.

your affiliate manager will help configure everything and provide all the information you may need. You need specific landing pages or banners? Do you want to promote particular offers that are not yet integrated? Feel free to contact your personal membership manager, we are here to help!

Increase your monthly earnings with Armorica reference program inviting your friends, partners or colleagues with traffic to catch up 3% of your income.

Sign up and increase your earnings with Armorica Network!

Armorica – Electronic Commerce Affiliate Network | The best CPA and RS offers for WW Traffic | Smartlink | Monetize your traffic! The | Proxies123.com

Gain access to a wealth of e-commerce, nutrition, wellness, CBD and even more popular cost per share and revenue sharing offers with Armorica Affiliate Network.

Get weekly or monthly payments that can be delivered with the help of the most popular payment systems: Skrill, Neteller, Webmoney, Bitcoin, bank transfer and Paypal. The earnings of our affiliates can be withdrawn from $ 100.

Our affiliate managers will answer any questions, update on technical aspects, and stay up to date on the latest developments. We can also collect special offers for you and offer you vertical-focused offers that particularly interest you. So keep in touch with your personal manager through the most popular messengers and stay on top of everything with regular email distribution. .

Armorica Affiliate Network suggests the use of easy to use advanced smart tools aimed at simplifying the work of our affiliates. That is an incredible decision for website owners. We are providing the following: Banner rotator and A link.

⭐ Banner rotator or Rotator AD allows rotating banners of the chosen vertical. Choose a vertical banner resolution and paste a code snippet into your website. AD Rotator analyzes the visitor's GEO and displays an offer banner that accepts it.
⭐ a link It provides the opportunity to generate a particular link for various offers that will rotate taking into account the GEO of its users.

Here at Armorica we also suggest a referral program. Invite your friends and partners and catch up 3% of your earnings.

Sign up for more details and start earning on your traffic with Armorica Network!

Sale – Virtual assistant – Electronic commerce

I am looking for a job as a virtual assistant or projects. I can provide services related to HTML / CSS and JS, development and administration of e-commerce websites on different platforms such as WooCommerce, PrestaShop, etc. Ordering, customer service, adding products, translations from English to Spanish and more …

Skills / knowledge:
– Development and management of e-commerce stores.
– Customer Support
– Email management
– General hosting and domain management (Web Hosting Manager, Cpanel, FTP).
– Search Engine Marketing (Fundamentals and Certified Advanced Search)
– Electronic commerce (B2C): dropshipping
– Electronic commerce platforms: Virtuemart, Magento, OpenCart, PrestaShop, WooCommerce.
– HTML, CSS and JavaScript
– WordPress

I am a reliable and hard-working person. Looking for long-term business relationships and new opportunities.

Contact me through skype or slack.

Best regards.

commerce – Restrict a maximum of 1 product in the cart with

I want to restrict the quantity of products allowed in the cart to 1. I discovered that it could be possible with Events. I added this function below in public_html / modules / commerce / modules / cart / src / Event / CartEntityAddEvent.php, but nothing has changed.

public function onProductAdded(CartEntityAddEvent $event) {
  // We only want 1 quantity.
  $cart = $event->getCart();
  $added_order_item = $event->getOrderItem();
  $cart_items = $cart->getItems();
  foreach ($cart_items as $cart_item) {
    if ($cart_item->id() != $added_order_item->id()) {

  $quantity = $cart_items(0)->getQuantity();
  if ($quantity > 1) {


I'm totally new to PHP and Drupal 8, then the alternative with implementing hands it didn't work so well