Drupal Commerce is an eCommerce framework and ecosystem built on Drupal 7.
0
votes
0answers
7 views
Commerce discounts by day-of-week and by age
I am creating a store where users can pay for attending events at a fixed rate of £7 for each event; that's the easy part.
The hard parts are as follows:
Every Tuesday all events are half price ...
1
vote
2answers
32 views
One user with multiple profiles
I'm setting up a webshop were clients can have multiple profiles. For example a customer and supplier profile.
Whenever the user logges in, he gets a choice which profile he wants to sign in. ...
-1
votes
0answers
18 views
Checkout page gives error, EntityMetadataWrapperException: Unable to get the data property currency_code as the parent data structure is not set [closed]
When I add products to the cart and go to Checkout Page, this error message is shown.
EntityMetadataWrapperException: Unable to get the data property currency_code as the parent data structure is ...
0
votes
0answers
13 views
Tax calculation Drupal Commerce
I've set-up a Drupal Commerce website. Clients add products in the backend and give each product a price INCLUDING taxes (in this case €160,00). The product fiches on the product page should show the ...
0
votes
1answer
16 views
Where do you set/change the SKU for a new/existing product? - Drupal 7 Commerce
i can't seem to find where to change the sku for an existing product variation. is this even possible? Where do i set this?
0
votes
0answers
10 views
Commerce: Is it possible to render a list that is a product attribute with different formatter per view mode?
I would like to render one attribute in one view mode as select list, and in other view mode as radio buttons. Is it possible somehow?
0
votes
0answers
9 views
how to add date field to commerce coupon?
I want to add a date field to the commerce coupon percentage. how should I apply the required rule to the commerce coupon percentage?
I already add the date field to my coupon type. I just don't ...
0
votes
2answers
38 views
How can I replace the “Add to cart” button with an “Ask about product” button, based on product property?
Let's say client wants button "Ask about" for chosen product instead of "Add to cart" (he requires personal contact for some products). It should be based on data from a specific product field, so he ...
0
votes
1answer
14 views
Extract currency code from $orders
I'm trying to extract the currency code for the current order, I printed the $order variable using print_r, but I'm not at all a PHP programmer and I don't really know how to extract the currency ...
0
votes
0answers
11 views
how to check if the user paid the order and is back from the bank?
I want to upgrade the user level discount if he paid the amount of order in the bank and returned back to my site. how can I check this situation?
is the commerce order change to completed_completed ...
1
vote
0answers
23 views
Display text instead of the base price in the shipping services
I'm trying to build a shipping flat rate service that will not display a price, it will not charge the customer directly I want to display something like "Express Shipping: To be determined (not ...
0
votes
0answers
22 views
What´s wrong with this rule that doesn´t send any email? (it´s a drupal commerce rule)
Use case: (D7) I want to send an email if a particular field doesn´t have a specific text in it.
The field in question is a Drupal Commerce customer-profile called field_envio_mail_1. That field ...
0
votes
0answers
26 views
The view is not giving me the expected output, even if the preview is correct
I am setting up a view for my products and using Commerce Kickstart. Whenever I want to display products in a grid, and I assign more than one product to the row, I get a distorted view.
However, ...
2
votes
1answer
23 views
Will “features” be overwritten when there is a distribution update?
Example scenario:
I create a site using commerce_kickstart 7x-2.0.
I modify some of the "Features"(ex. commerce_kickstart_user, commerce_kickstart_taxonomy) that are prepackaged with the ...
0
votes
1answer
15 views
Drupal gives error to admin, anonymous users can browse pages
Anonymous users can browse various pages, when logged in, it gives "The website encountered an unexpected error. Please try again later". I am using drupal 7 commerce. Before this error I installed ...
-1
votes
1answer
22 views
Drupal Commerce cart totals
How Drupal commerce is calculating total, sub total and order total and in which files I can find the code responsible for these totals?
1
vote
0answers
23 views
Sorting prices from 3 product line item types using views
My goal is to display a message like "Prices start from 13.34$" for every taxonomy term that I created. I have 3 product types with 3 product line item types. What I did until now and I'm stuck is to ...
0
votes
0answers
21 views
Commerce Order Invoice Shipping
I was working on the template for Commerce order invoice and looking at the items list it gives each item sans shipping. I have items totaling $6 but the total is displayed as $20 because the $14 ...
0
votes
0answers
18 views
Buy 3 Pay for 2 Campaign or Get 3 for the Price of 2
a block named "Buy 3 Pay for 2" shows random products from a campaign. when clicked read more... leads to a page with products in that campaign are shown. how do I make such a campaign? I'm using ...
0
votes
0answers
17 views
PHP snippet won´t work: unset() a commerce checkout pane with custom module
This D7 snippet won´t do anything in my code and I don´t know why:
<?php
function mymodulename_commerce_checkout_pane_info_alter(&$checkout_pane) {
foreach ($checkout_pane as $pane_name ...
0
votes
0answers
15 views
Pre-populating Drupal Commerce Checkout Page with Webform Data
I'm using Drupal Commerce and Commerce Webform to create a webfrom which when submitted goes to the checkout screen of a Drupal Commerce shopping cart.
The webform is used to collect several pieces ...
0
votes
1answer
22 views
Product Reference inside a Product Reference?
In my attempt to solve a "variation can update second variation" issue, I am wondering if a Product reference can go inside another Product Reference?
So that the 'Variation' itself has a product ...
0
votes
0answers
19 views
Drupal Commerce + Rules: How to insert each order´s customer profile info into profile2?
I´m using drupal commerce and Profile2 modules. I have some "customer profiles" fields in my orders, and I want the information inside those fields to be added to the profile2 of the new user that´s ...
2
votes
1answer
35 views
How can I get the order ID from Commerce (using Rules)?
I need to call a function upon successful completion of an order, and that function needs to know the OrderID that called it.
I have setup a rule
Event:
"Completing the checkout process"
...
0
votes
0answers
24 views
Only admin can see products page for Drupal Commerce
I created a subscription product with Drupal Commerce and commerce_sp modules. I then created a view to display the product subscription I want and as Administrator I can see the product on the ...
0
votes
0answers
13 views
why is the granted amount of commerce coupon is empty?
I'm using commerce coupon to create percentage coupons. I have two problems with the "commerce coupon review pane" which has been created with views. The first problem is that the view shows list of ...
1
vote
1answer
52 views
How to access the order total amount in Drupal commerce?
I'm trying to make a block with an image that would change when there is something in his or hger basket (empty basket image when basket is empty, full basket when it's full)
My understanding of PHP ...
0
votes
1answer
30 views
Is this snippet modification correct? (php snippet in a drupal commerce rule)
I´ve read about the possibility to use this snippet to hide a specific checkout pane (in Drupalcommerce), according to the cart contents.
Could I use this somewhat modified to hide a pane when the ...
0
votes
2answers
30 views
Load a variation (or Line Item) based a previous choice
I asked this similar question already (Variations price adjust based on previous variation), but I am thinking to make the solution more 'base'.
Is there a way to 'load' different fields based on a ...
-1
votes
1answer
45 views
How do I hide some fields to registered users?
This is my use case:
If an anonymous user completes an order, the order shows profile type A. When user completes that order, the system creates a new user, and fulfill his profile with the ...
0
votes
1answer
27 views
Variations price adjust based on previous variation
Using Drupal Commerce, is there a way to adjust the variation price base on the first or second variation selected?
For example I have 3 variations: size, material, color. If I choose Small (that ...
0
votes
0answers
13 views
how to use discount coupon?
I installed Commerce Coupon module
I didn't use the coupon percentage module. I created a custom coupon type which has 5 custom field, coupon_code, coupon_number_of_uses, coupon_owner, ...
0
votes
0answers
44 views
Cart Discount modification
I need to give discount on first 5 quantities of type A and then from sixth quantity onwards start calculating price.
All type A quantites are of price 20 and all type b quantities are of price 10
...
-2
votes
1answer
40 views
Clone websites Drupal 7 OR Commerce Kickstart [closed]
I was using "Commerce Kickstart" of Drupal 7, with the previous version (the 2.4) had created a website which, it was setting the best way to say "domain1.com", (I add and removed modules, create and ...
0
votes
1answer
21 views
How to flag a product variation on a commerce website?
My products have multiple variations as enitities (size, color etc). I want to display a flag link on a product display page. When a visitor uses it, I want them to be able to flag the selected ...
1
vote
1answer
55 views
Commerce: adding +/- buttons to the Quantity field
I am working on a site that uses the Commerce module for a web store. The design specifies that the user's cart overview page should allow them to increase and decrease the quantity of a particular ...
0
votes
1answer
16 views
How do I replace function commerce_customer_options_list with my own?
How can I replace
/**
* Implements hook_options_list().
*/
function commerce_customer_options_list($field) {
in commerce_customer.module around line 949 with my own options_list build routine?
...
0
votes
0answers
22 views
adding select option to e commerce product
i am selling t shirts on a drupal 6 site I need an option for the users size (s,m,l) and pass it trough with the order preferably or alternatively add a field to the billing address where the user can ...
0
votes
1answer
33 views
Disable Product Display upon purchase of the Product or it's variations
I have a site of products wherein each Product Display has 2 Variations (Products).
I would like it so when a single variation is purchased the Product Display get's unpublished (regardless of a ...
0
votes
0answers
16 views
Determing what's missing for Ajax behavior
I'm currently on a Drupal project handed to me, and apart from being a Drupal rookie, I have not that many clues where everything's lying. One on the things I was supposed to fix was that Add to Cart ...
0
votes
1answer
16 views
Authorize.net - Multi-currency - disabling currency code when sending money
I have a issue processing multiple currencies in Drupal 7 Commerce with Authorize.net Gateways (version 1.0 stable).
I have Canadian store and have 2 currencies setup for my site: US and CDN funds.
...
0
votes
0answers
35 views
Empty billing information on review pane
When I go through the checkout and fill out all the information on the first pane (checkout/[cart-id]/checkout) and then go through the shipping pane (checkout/[cart-id]/shipping) to the review pane ...
2
votes
2answers
52 views
When should I use user_load($user->uid)
when do we need to load user using user_load($user->uid) after global $user. Why do we need to load a user because we can access user data after declaring it global. I am adding a commerce customer ...
-3
votes
0answers
27 views
drupal-7- how to filter the images among multiple images display with field details of that image [closed]
I want to tick all the Checkbox and click update button. it will filter all corresponding images with enlarged size shown in one-by-one with details of that image.
I had used the Better Exposed ...
0
votes
1answer
42 views
Drupal Commerce - optional extra products on add to cart form
We're trying to have it so that on a product display there are optional extras which can be added all at the same time as the main product by selecting checkboxes. These products are optional extras ...
0
votes
2answers
27 views
how to get total orders of a user?
how can I get total price of all orders which owned by a single user? I want to assign different type of discounts by finding about total amount of their orders.
I'm using
hook_rules_action_info
...
0
votes
3answers
97 views
Automatic product variations pricing
I have a site where a client wishes to sell products that have a lot of different variations (ie size, colour, length etc), but each of these will make a slight change to the price. I know about the ...
0
votes
1answer
25 views
How do I display individual date display nodes of a commerce event with recurring dates?
I have created a commerce product type for a class that occurs every Monday for 10 weeks. I have the 10 dates displaying in a Calendar view using a start date and a repeat rule. What I can't figure ...
0
votes
0answers
17 views
Check a field in a node that referencing a given product
How can I modify (with rules) the product price in the cart, based on a field into node display that referencing the given product in the line item?
I'd need a stuff like reverse_reference on Rules ...
0
votes
2answers
25 views
Hide payment options with rules
My client wants to bypass payment options if a custom chooses shipping outside the US. I have figured out some of the parts using rules but I cannot figure out how to 1) skip the payment selection ...




