Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 77963

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

0 votes

Remove "Payment method" tab in user profile

I solved it simply in CSS. Drupal is often overcomplicated. Maybe not the "Drupal way" but outcome is the same: .path-user .tabs--primary a[href*="payment-methods"] { display: none; }
Lub's user avatar
  • 61
0 votes
0 answers
39 views

Hook_add_to_cart_form_alter() actions works only if product is on stock

I modified a module Commerce Product Comparison by adding hook_form_alter(), so I am adding a new button before and actual "Add to cart" button. …
Lub's user avatar
  • 61
0 votes
1 answer
87 views

Creating products with Rules and calculating price in Drupal Commerce

I am creating products on the fly with Rules, using Drupal Commerce. After user clicks on checkbox near product (additional service to product), I need to "add the service" to cart. … , "PROVIDE" : { "entity_fetched" : { "entity_fetched" : "Fetched entity" } } } }, { "entity_create" : { "USING" : { "type" : "commerce_product", "param_sku" : "DS-[commerce-line-item …
Lub's user avatar
  • 61
0 votes

Creating products with Rules and calculating price in Drupal Commerce

"rules", "REQUIRES" : [ "rules", "commerce_discount_extra", "commerce_cart" ], "ON" : { "commerce_cart_product_add" : [] }, "IF" : [ { "entity_has_field" : { "entity" : [ "commerce-line-item … " ], "field" : "field_doplnkove_sluzby_item" } }, { "data_is" : { "data" : [ "commerce-line-item:field-doplnkove-sluzby-item:0" ], "value" : "Service SLA …
Lub's user avatar
  • 61
0 votes
1 answer
55 views

How to handle tokens in Rules field?

I have duplicated Drupal Commerce module "Cash on delivery", from which I am trying to make custom module, where if customer choose as payment method my new payment, it will simply print out text with … (This is because client needs to be able to pair orders with payments sent by credit card directly to his account, he will pair them with commerce order number) I have successfully made a textarea in …
Lub's user avatar
  • 61
0 votes

How to handle tokens in Rules field?

Just needed to replace this one field with this: $var_symbol = token_replace($payment_method['settings']['var_symbol'], array('commerce-order' => $order)); Now it works perfectly. …
Lub's user avatar
  • 61
0 votes

How to properly add a Commerce Shipping Service option via AJAX during checkout

Since Stackexchange does not allow me to comment, did you find a solution? I am experiencing exactly the same issue. Thanks.
Lub's user avatar
  • 61
1 vote
1 answer
90 views

Creating booking system for items [closed]

Now I was thinking of several methods to achieve this: Using Drupal Commerce, which is quite robust for only two products. …
Lub's user avatar
  • 61