Drupal Commerce is an eCommerce framework and ecosystem built on Drupal 7.

learn more… | top users | synonyms (1)

0
votes
1answer
21 views

error when trying to clear the cache in drupal

I was going to use mailchimp module to create my newsletter but an error revealed saying that i should install the version 2.0 of librairies, so i delete both modules, started again,that worked just ...
0
votes
0answers
15 views

Drupal 7 commerce meta tags not updating

I am working with commerce module in drupal 7. I have installed metatag module. It working as expected for drupal default entities like node, taxonomy etc. But when I try to add meta tags for ...
0
votes
0answers
7 views

Drupal Commerce Total Order Weight

I am writing a custom module to add surcharge values to a commerce order at the time of UPS shipping calculations. I am trying to find a way to access the total weight of the order. I thought I would ...
0
votes
1answer
7 views

Creating followups to Commerce Orders for each Line Item

I had asked a question in another thread, and thought it might be helpful to create its own thread just in case it could be helpful to any other developers out there: "I am trying to create a rule ...
0
votes
0answers
9 views

Splitting Drupal commerce order for easier shipping

During shipping we generally need to split the orders based on the availability of the products. Considering the order contains two products but only one product is available, we would like to split ...
0
votes
1answer
19 views

How to apply an image style based on a condition?

I've been following this discussion: How to apply an image style based on a condition (a date for ex.)? but unfortunately it has not been a success. I would like to have the image to change based on ...
0
votes
0answers
8 views

Add product information with variation in cart

I sell product which actually are product variation. In the cart or the checkout , all I can see are products variation information ( size price etc..) In this view I need to see the product, with the ...
-1
votes
0answers
3 views

drupal commerce code to upload translated product manuals into site

PDFhow to write a code which uploads product manuals PDF's into site according to the products sku. example i want manuals according to sku,if product sku is T1234,T5678 product manual field should ...
0
votes
0answers
14 views

combination many items in product

How to do if I allow the client select many items to be one product, for example: the customer must choose one of many baskets as per the color or size, then in two step he must choose one type of ...
-2
votes
0answers
21 views

Product view with multiple add to cart buttons [on hold]

I want to have a product in my store which I can give different add to cart buttons. For example; I have a music album with different songs, and I want to sell each song separately or the album all ...
0
votes
0answers
12 views

I want to add multiple products to one page with different features [on hold]

Hey guys i'm working on a webshop with files and music and stuff like that. But right now i'm kinda stuck i want to sell each album in mp3 and in wav form and i want to be able to sell the songs of ...
0
votes
0answers
13 views

Commerce Bundle for clothes style

The idea behind this module Commerce Bundle is great, i need to use this module in a fashion e-commerce site to enable the user to buy a set of clothes grouped in one style or one look, for example a ...
1
vote
0answers
25 views

How to do swatches for drupal commerce product variations

I am trying to add swatches to the product variations for drupal commerce. Ideally it would be a single image that changes based on the selection of something in a dropdown. If not that then maybe the ...
0
votes
0answers
17 views

Commerce - adding a class to the body element when there is an item in the cart

Is there a way to add a class to the body element if there are one or more items in a shopping cart? I'm using Drupal 7.38 and Commerce 7.1. I have to admit that I haven't tried anything to achieve ...
1
vote
1answer
29 views

How to merge loggedin and annoymous user's cart in drupal commerce

To merge loggedin and annoymous user's cart for same session. User (username:jone) adds something in the cart (Product 1). Before add to cart: Cart is empty User adds something in the cart (Product ...
0
votes
1answer
17 views

Drupal commerce display VAT exclusive unit price & subtotal for line item in cart and order

I has a VAT tax for my products. It's a B2B site so we only show Tax exclusive price to customers. Even in cart and order. The VAT only show in the cart & order bottom just as the Drupal commerce ...
0
votes
0answers
16 views

Is Commerce Stripe any more or less secure than Commerce Paypal?

The very first thing the Commerce Stripe module states is this: As of the implementation of PCI-DSS 3.0 (January 2015), this module is intended to work within the requirements of the Self ...
0
votes
1answer
20 views

Exclude a free product from total calculation

In Drupal Commerce, how can I exclude a product from partial total calculation? The product is inserted as free product via a Commerce Discount rule, but in total calculation it appears and then is ...
0
votes
0answers
10 views

Commerce kickstart related product based on taxonomy

I like to add related products view block to a product. I like to show items what have the same category. I tried the "Content: Has taxonomy term ID" contextual filter, but it do not want to work for ...
0
votes
1answer
17 views

Commerce coupon only one coupon active at a time

I have 3 types of coupons on my site, 2 of them are contrib(fixed amount and percentage amount) and 3rd one is custom(pretty much copy of percentage). I need to make sure, that only one coupon of ...
1
vote
1answer
36 views

Where is documentation for $entity->data property? I.e. $commerce_order->data

I've searched google and the Drupal API, but I can't seem to find documentation for the data array that serializes/unserializes automatically that is attached to entities and stored in the data column ...
0
votes
0answers
12 views

Address Field special format handler

i need to modify users payment and shipping address format to enable user select a city via drop list, so i installed Address Field Estonian format handler, it works perfect before last drupal core ...
0
votes
1answer
17 views

Rules setup for Drupal Commerce

I need to setup a rule on the drupal commerce with the following condition. If Authenticated user added an item in cart and they didn't do the checkout for 24 hours, the site needs to shoot an email ...
0
votes
0answers
9 views

Undefined variable errors that disappear, should I worry about them?

I get these when I first login to my admin account: Notice: Undefined variable: total in include() (line 19 of C:\WAMP\apache2\htdocs\apricity\sites\all\themes\apricity\templates\page.tpl.php). ...
0
votes
1answer
53 views

Drupal Commerce: Allow anonymous users to choose their username on checkout

The default setup includes a single option in the "Account Information" pane which allows for an email address. The user's username is then derived from that. I would like to add another field for ...
1
vote
1answer
17 views

Drupal 7 Organic Groups, Drupal Commerce and Paypal

I have a Drupal 7 site, with OG and commerce installed. I have an og content type populated with content. Everything is working as expected. I found this link on Drupalcommerce: ...
2
votes
5answers
227 views
+50

Split node edit tab in several tabs with panels (or programmatically)

I have a content type with many fields, so that loading node/%node/edit is a pain ! In order to split node edit form in smaller forms (menu tabs), I used Page Manager. What I did so far Enable the ...
0
votes
2answers
28 views

How to store form in order

I have customers filling out an entry form before sending them to checkout. Is it possible to store, or serialize, the $form_state array in the order? There is a 'data' field in the order. Is it ...
0
votes
1answer
17 views

Commerce line item fields - getting value

I have a custom line item type that has a List(Text) field. When I do this: $line_item = commerce_line_item_load($lid); I get an object that contains the value, but not the label of the selected ...
0
votes
1answer
22 views

Commerce Billy PDF

I'm using Commerce Billy to send an invoice PDF to my customers. When I watch the module page of Billy I see that the customer information is found on the left of the invoice...but when I make my own ...
0
votes
0answers
7 views

Trigger Authcache Reload on Field Change for Drupal Commerce Products

I activated authcache and the cache system is working well. When i change the price for a product the page is read from the cache. How can i trigger to reload the page from database if one specific ...
0
votes
0answers
15 views

Accordion Menu - jQuery seems to stop working on product page

for several hours I'm struggling to cope with the Accordion Menu in my webshop (Drupal Commerce). Here's the story... In my webshop, beside the default content types (Article and Basic Page), I have ...
0
votes
1answer
19 views

Drupal Commerce - Reference Product in another product

I am building a Drupal Commerce based site and now I am facing the following issue. I have created some T-Shirt Products like, T-Shirt (White) T-Shirt (Black) T-Shirt (Blue) And also created a ...
0
votes
1answer
34 views

What is the best way to achieve this result? [on hold]

I've hit a bit of a stumbling block with how to tackle this design I'm working on in Drupal. The end result needs to be a block that sits on the home page and it updated weekly by anyone with the ...
0
votes
0answers
8 views

Pre-select facet with content from user field

I have a City field in the user profile and I would like to pre-select the faceted search results with the content of that field. Latest Commerce kickstart installation, customized. The field City ...
0
votes
1answer
20 views

How to remove markups of 'div' and 'span' from the billing info displayed through token

I am trying to add token for billing information in order confirmation email . The token does its job but also displays markups of 'div' and 'span'. Whats surprises me is all the other tokens in the ...
0
votes
1answer
15 views

Having Problem editing product displays created by Commerce Feeds to add product flag link

Hi all and I apologize in advance for what seems like a rudimentary question. I have a drupal commerce site (drupal 7.38, commerce 7.1.11, Commerce Feeds 7.1.3) and I have a very basic flag set on my ...
-2
votes
1answer
32 views

Drupal Commerce Alphabank

I use the Commerce Alphabank redirect module. Is it possible to add instalments? I add a select $options = array('0' => t('- No installments -'), '1' => t('6 δόσεις')); $form['Installments1'] ...
0
votes
1answer
8 views

How to update non-property value with entity_metadata_wrapper?

I wish to update values in commerce_payment_transaction entity. I am using such code: <?php $transaction = commerce_payment_transaction_load(58); $digests = array( 'DIGEST' => '456', 'DIGEST2' ...
0
votes
0answers
15 views

Commerce Licence billing

My question is regarding the recurring payment for drupal commerce. I use Commerce Licence with 'Licence role' and Commerce Licence Billing to make my users pay for a monthly subscription. The ...
0
votes
0answers
13 views

Commerce Price field as a decimal field in Search API has no formatter?

I indexed a Commerce Price field amount as decimal in Search API, and when I try to use Search API Slider the min max values show as 1544 - 1766 instead of the properly formatted 15.44 - ...
0
votes
0answers
5 views

Displaying a product price on Ad Push content?

Hi just started using Drupal a couple of days ago. I'm using Commerce Kickstart 2. I'm having troubles displaying the product price on the Ad Push content. I just want to know if there is a way to ...
0
votes
0answers
12 views

commerce_customer_profile_copy_refresh() ignores hook_form_alter() and renders default 'customer_profile_shipping' form

I'm having some issues with the commerce_customer_profile form on the first checkout pane of the Drupal Commerce checkout process. Specifically when the commerce_customer_profile_copy checkbox ...
0
votes
1answer
18 views

How can I programatically get the cart's dollar sum of drupal commerce?

For future users <?php echo '$' . number_format(( $total['amount'] /100),2); ?> is how. Following this guide ...
0
votes
2answers
47 views

How to change the price ? (add_to_cart)

Here is my code function addToCart($product_id, $quantite){ global $user; $product = commerce_product_load($product_id); $line_item = commerce_product_line_item_new($product, $quantite); ...
0
votes
0answers
15 views

Drupal commerce save date field product type to order

I have setup a new content type called product in Drupal 7 and I have a product reference entity multi value linking to my product type. So I can addthe sku, price I made a new field in the product ...
0
votes
0answers
33 views

Unpublish node created upon checkout

Looking to tie a recurring product to the published status of the node it created. I've tried this by creating a node on checkout in a number of ways, but my most recent and promising attempt ...
1
vote
2answers
44 views

Buying same product simultaneously in drupal commerce

Case: There is a product in stock with 1 quantity. Now two or more buyers try to buy that product simultaneously. I want to restrict any one from buying that product on first come first serve basis. ...
0
votes
1answer
11 views

Creating line item of specific type programmatically

Is there a way to create a line item of specific type (different from the default "Product" type) programmatically? The function commerce_product_line_item_new()creates a line item of type Product. I ...
0
votes
0answers
13 views

Implications of updating product SKUs via SQL in Drupal Commerce

We have a Drupal Commerce site where a large number of product SKU's need to be modified. We have a SQL script we can run to modify the required SKUs in the 'commerce_product' table. Is anyone aware ...