Questions tagged [commerce]

One of the modules that implements an eCommerce framework and ecosystem is the Drupal Commerce module.

1,413 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
164 views

Settings after AJAX call

I have a page that contains lots of products (node with commerce form) that is formed in custom theme function (template). I update them by ajax, but forms of updated products do not work. I googled, ...
1
vote
1answer
207 views

Shopping cart not cleared after checkout

I have had several customers who have been able to make changes to previously placed orders. Even though the order status is set to pending after checkout is complete and their payments are processed, ...
1
vote
0answers
33 views

How to create a pricing rule from custom line item referencing a taxonomy term in Commerce?

I'm using Commerce Kickstart and I am trying to create a pricing rule for a custom line item that references a taxonomy term that adds an amount to the product's base price. For the condition, I have ...
1
vote
1answer
40 views

How would a customer be able to get free shipping when there are no free shipping options?

We just launched our ecommerce store using Drupal Commerce Kickstart, which heavily uses Rules to manage shipping. We have had two orders from the same Virginia-based customer. Both orders were ...
1
vote
0answers
42 views

Is there a function in Drupal Commerce which could perform a buying of a product programmatically?

For example, I need to perform a purchase of some product by some user programmatically. That as, I call a function having passed papameters such as user_id, product_id and price. By the way, this ...
1
vote
0answers
39 views

How do I send SKU to the email array?

I'm trying to get the SKU on the confirmation E-mail when an order is completed (I have custom PHP code handling SKUs) but only the product IDs are output to $commerce_order. I'd like to (need to) ...
1
vote
0answers
370 views

Commerce - adding programmatically a product in cart remove previous products from cart

I have been trying to add multiple products in my cart in PHP, but the cart only shows the last product added. It's like each time I try to add a new product, the previous one is removed, or a new ...
1
vote
0answers
103 views

how to avoid commerce price to be rounded

I need to add an optional insurance field to my order total amount. For that I use a fee which is calculated and added to this amount. Everything is ok except that when I continue to checkout, this ...
1
vote
0answers
27 views

How to delete the row item from a view table after purchase is done?

What I desire to achieve: I have a view where users can consult their payments inserting their ID. These payments will be displayed on a table, this table has a column with a "payment button". This ...
1
vote
1answer
571 views

How do I apply a discount for the second and successive items only if the quantity for those items is higher than 1?

Using Commerce Discount and Commerce Discount Extra modules there is no problem to set discount rule conditions for product type and quantity. This way I can set up 20% off discount that is applied ...
1
vote
0answers
134 views

Create a new order using rules and update the user profile of the order

At a certain point when some conditions are met I need to create a new order using rules. I manage to create the order, add the items but fail up get a user profile connected to the order. When I try ...
1
vote
0answers
90 views

How to alter product price on checkout page on Drupal commerce?

I am using Drupal commerce in my site . I have alter a product price programmatically its working fine for me before checkout page. In checkout page its not taking my alter price.
1
vote
1answer
56 views

View discounts for a group type

I use the "Group" and "Commerce discount" modules to make bundled sales. This is used to display discounts to certain type of group. I have a group type (company) and group type (flash sale). I want ...
1
vote
0answers
146 views

Get the most recently viewed product variations (commerce product entity) in a View

Pre-requisite knowledge: I have a view of type Content which is meant to list the most recently viewed product variations (commerce product entities that the product node references) first. I am using ...
1
vote
1answer
259 views

There aren't any releases for module “commerce_tax”

I am using drupal-vm and drupal console, and following the instructions for installing drupal commerce on an existing site (drupal-vm made me a drupal 8 site) here: http://docs.drupalcommerce.org/v2/...
1
vote
0answers
98 views

Submit donation form as product with instant checkout?

Wondering what's the best way to go about using Commerce 2 to present a single page donation form to the user with an instant buy/donate button? I.e. no add to checkout then going through the checkout ...
1
vote
0answers
207 views

Commerce Kickstart product sub-categories

When you set up product category taxonomy items, it seems that subcategories are not supported. If your product is in a subcategory, it doesn't show up when you choose the main category from the main ...
1
vote
1answer
389 views

Categories and brands

I have a product catalog that I would like to categorise into different categories (and subcategories). I would also like to have a grouping of the products by brands (which of course are orthogonal ...
1
vote
0answers
41 views

Commerce Billy: adding new textarea in form

To add an new textarea ('invoice_special') for input on admin form of module commerce_billy, I copied the below code from commerce_billy_pdf.admin.inc into a custom module, but the new form field does ...
1
vote
0answers
53 views

Set order complete

I have a checkout page with integration to Checkout.js. I have set everything up so the user fills the form with informations such as credit card, name, email and this information is sent to checkout....
1
vote
1answer
28 views

Remember add to cart form state

Is there a way to remember the chosen product attribute on the add to cart form? I have a product with a couple of options. If the users selects one on the product page and goes to another page, the ...
1
vote
0answers
32 views

How to assign a product to particular user in drupal commerce programmatically?

I am using drupal commerce in my site I need to assign a product programatically to user for this I am using this code. $selpro = product id. $line_item = commerce_product_line_item_new(...
1
vote
1answer
82 views

discount coupon has applied on complete order not specific product in the order

commence ( commence discount ).coupon code is applicable only one product. but As per attached image coupon has redeemed price on all product in the cart.i am explaining in details here.There are ...
1
vote
0answers
273 views

How do I apply taxes to orders?

I have just installed fresh copy of commerce 2.x-dev and done initial steps as per "Getting Started with Commerce 2" doc. I have added some test products using default product type and variation (...
1
vote
0answers
46 views

How do I control the (templated?) output of field_view_field

I'm using Billy Mail, Billy PDF and a custom module to generate custom 'booking sheet' documents relating to Commerce orders. I'm getting different markup generated depending on where the custom code ...
1
vote
1answer
89 views

Which Rules Event can be used with Drupal Commerce when a cart is updated?

I have created a rule which add the shipping methods on cart page. It works fine when we add or delete the items from cart. BUT there is no event available on rules which fire when we increase the ...
1
vote
0answers
43 views

How to update the price of a product based on the birth date of the registrant

I have a content type EVENT with the event date field, I created products with various attributes (ENTIRE - UNDER - FEMALE, etc ..) Each attribute generates a different price for the product. ...
1
vote
1answer
267 views

how to set minimum quantity of products in the shopping cart?

I want to set minimum quantity of goods that customer may order in the shop. For example minimum quantity is 20, so if customer order less then 20 his order won't process and there will be message ...
1
vote
1answer
36 views

How to Create Membership Groups for Products?

I'm exploring if the latest release of Drupal Commerce (using Commerce Kickstart 7x-2.38) will work for my Apparel eCommerce requirements. We need membership to groups (which will be corporate ...
1
vote
0answers
72 views

Commerce Payflow Link - User authentication failed

I keep getting User authentication failed from the Payflow server Response. I've verified the password (even have gone as far as resetting it) and I still get the same result. I'm currently working ...
1
vote
0answers
38 views

How to set stock to 0 before product import?

I want to set the stock of every product with label X to 0 before I do a product import. This to make sure items with label X that are not in the CSV file, have stock 0 (and are disabled) because we ...
1
vote
1answer
41 views

First display promotions in a view

I use the "discount" module, I created a view to display my products but I can not find how to display the products on sale first in my view
1
vote
0answers
436 views

problem for using jquery update module

Right now, I am using JQUERY UPDATE module, 7.X-3.0-alpha2 version. The default version is 2.1. However, I have some trouble when I edit my product which is a reference field. If I enable this ...
1
vote
0answers
33 views

Commerce subterms

I have a commerce site with category and subterns. Example my taxonomy hierarchy: paper-book (category1) travel guide (subCategory1) children's book (subCategory2) cookbook (subCategory3) e-book ...
1
vote
1answer
389 views

User can't cancel their own order

I'm using Drupal commerce Kickstart to create an E-commerce website, I wonder there is no cancel order option if a customer ordered something. I want to know how my customer can cancel their own order ...
1
vote
0answers
110 views

How to get commerce product variation presave in drupal 7?

I need insert data when product variations of node is updated , i tried hook_entity_update() and others but they didn't help to reach my aim.
1
vote
1answer
41 views

Skip checkout process if special field has value

I want to skip the checkout process and node has bin publish for free product, but my module is not working! Any pointers greatly appreciated <?php function MYMODULE_node_submit($node, $form, &...
1
vote
0answers
29 views

How to add 1 product attached to another product based on variation?

Hi I'm currently managing an online store that sells cellphones and plans, however I'm not sure how to get the product of security deposit to attach to the plan selected from the phone product.
1
vote
0answers
35 views

Drupal Commerce : modify Collection Products view

In my webshop, I use Price Savings formatter for my discounts. In the product page, it shows list price, price with discount and savings. In the Category overview (Collection Products view), it only ...
1
vote
1answer
136 views

When creating a new user with a order, how to email the new user login details

I am using Commerce Admin Order Advanced. It allows the following extras when creating an order in Drupal Commerce Search users by email or profile name before creating the order Select existing ...
1
vote
1answer
397 views

“Missing configuration for parameter commerce_order”

I'm trying to define a default rule in a small module based on Commerce Price Table and Commerce Rules Extra. The rule is to set price based on the quantity of produtcs that contains a partial sku in ...
1
vote
0answers
60 views

Sending HTML emails from sendmail module

I was using SMTP authentication and drupal mail module for sending HTML emails. Suddenly emails are not going. Hence i disabled the SMTP module and directly send emails using drupal email but emails ...
1
vote
0answers
16 views

trigger a action based on the presence of families of products using rules?

How would I trigger a action based on commerce_product_calculate_sell_price if families of products (or quantities of families of products) are present using rules? For exemple, if the cart contains ...
1
vote
0answers
14 views

How can I add several products to a Drupal Commerce cart by

I wish to use Drupal Commerce to take bookings on my hotel booking site, all of the hotel detail is provided by Laterooms via XML (using Feeds). Obviously hotel availability changes all the time so I ...
1
vote
0answers
18 views

Adding group members to eck entity with og

I hope i didn't duplicate an issue i didn't see anything like this... Im trying to create an entity with eck and then make it a group. That I can do. But as og is seemingly designed to work with nodes ...
1
vote
0answers
144 views

how to output custom image field (uri) from a Group entity on page.tpl.php?

I have a custom image field associated with a "group" entity(Created by the Group Module) that is called field_header_image. Im looking to output the image uri as background style in the page.tpl.php ...
1
vote
0answers
28 views

Where can I edit the contents of global: custom text

I'm using Commerce Kickstart for a while now, but I can't seem to show discounted prices in product lists. In my product displays, the discounted price is shown, as it's supposed to. So I thought I ...
1
vote
1answer
364 views

PDOException : SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'registration

Using: commerce+entity registration+commerce registration During the checkout sequence, after completing the registration step, I get this fatal error: PDOException : SQLSTATE[23000]: Integrity ...
1
vote
0answers
30 views

Product display: no scroll of product list

I have an issue with commerce product display setup page - scroll function for product list disappeared (part where one can choose a product assigned to display) so I am not able to choose products on ...
1
vote
0answers
38 views

Custom pane data not retained on back button

I have created a custom checkout pane in the checkout form. The panes order is: checkout->custom_pane->review->complete When I click 'continue to next step' on custom pane, it goes to review pane and ...

1
3 4
5
6 7
29