Drupal Commerce Issue Queue

Accessing Product Tokens

Thu, 03/26/2015 - 06:25

Hey!

So we have a product like the following

Product
  • Title
  • Price
  • Image
  • Taxonomy Term Reference

We then set the ALT and TITLE tag for the Image field to use the Taxonomy Term Reference values, which are oddly appearing as [node:field-taxo-custom:i18n-name] or [node:field-taxo-custom] (for non i18n).

My suspicion is that this is then trying to use the Product Display value.

What I expected

I thought that there would be a way to reference other entity fields within the product entity? I would imagine that they would appear as [product:blahblah] but perhaps [node:blahblah] is also correct.

Help I need

If I am doing something wrong let me know. I am not sure if this is a misconfiguration or something else. If there is an image in an actual 'node' than everything is hunky dorey but not in the case of a product entity.

Thanks!

Categories: Issue Queues

Replace the string methods

Tue, 03/24/2015 - 04:17

The String class methods are deprecated and will be removed before 8.0: https://www.drupal.org/node/2457593

So, let's start using the replacements.

Categories: Issue Queues

Add views dependency

Mon, 03/23/2015 - 07:56
Fail      Completion TaxTypeTest.php     19 Drupal\commerce_tax\Tests\TaxTypeTe
    The test did not complete due to a fatal error.
Exception Uncaught e UnmetDependencies   89 Drupal\Core\Config\UnmetDependencie
    Drupal\Core\Config\UnmetDependenciesException: Configuration objects
    (views.view.commerce_stores) provided by commerce have unmet dependencies in
    Drupal\Core\Config\UnmetDependenciesException::create() (line 89 of
    /home/travis/build/joshuataylor/drupal/core/lib/Drupal/Core/Config/UnmetDependenciesException.php).
    Drupal\Core\Config\UnmetDependenciesException::create('commerce', Array)
    Drupal\Core\Config\ConfigInstaller->checkConfigurationToInstall('module',
    'commerce')
    Drupal\Core\Extension\ModuleInstaller->install(Array, 1)
    Drupal\simpletest\WebTestBase->setUp()
    Drupal\commerce_tax\Tests\CommerceTaxTestBase->setUp()
    Drupal\simpletest\TestBase->run(Array)
    simpletest_script_run_one_test('7', 'Drupal\commerce_tax\Tests\TaxTypeTest')

https://travis-ci.org/joshuataylor/commerce/jobs/54993401

Categories: Issue Queues

Removed commerce_customer_address

Sun, 03/22/2015 - 07:56

I've removed by accident "commerce_customer_address" at my Shipping and Billing profile types, now when I add a new field I get "field_commerce_customer_address" which is not good because this gives errors with my rules.

How to change my field name from "field_commerce_customer_address" into "commerce_customer_address"? Or can I "restore" this again?

Categories: Issue Queues

How the heck to get the line-item:commerce-product:field-product-node token?

Sat, 03/21/2015 - 16:40

I have two sites. One is Commerce Kickstarter 2; one is vanilla Commerce added to a Drupal base. The Kickstarter site has a rule that uses the token: line-item:commerce-product:field-product-node. But on the vanilla site, field-product-node is not available under line-item:commerce-product. Does anybody have any clue where field-product-node is being generated and how to access it?

On the Kickstarter site, field-product-node says it is a bridge to the node referencing the product via field_product (product reference field).

I can find multiple references of people describing how to use this token:
https://drupalcommerce.org/questions/10839/line-item-discount-shopping-cart
Comment #1 of https://www.drupal.org/node/2130081#comment-8164131
The accepted answer at http://drupal.stackexchange.com/questions/98190/product-variation-token-to-fetch-field-of-product-display-commerce

But I also find examples of people, like me, asking where the hell can one find this token? Comment #30 at https://www.drupal.org/node/1108180#comment-7491312

I've tried greping this token but I think it's put together using some sort of entity chaining method so there isn't a direct reference to it.

But I'd give my left lung for someone to tell me what configuration or module actually reveals this taciturn token.

Please help!

Thanks!
Stephen

Categories: Issue Queues

Turkish Lira symbol changed, use the new one

Sat, 03/21/2015 - 14:21

Turkish Lira symbol has been changed, the new one should be used. Patch coming.

Categories: Issue Queues

Transaction Approve but not going to next screen.

Fri, 03/20/2015 - 21:50

I am having this strange issue where when a user fills out their credit card information, the transaction goes through but it does not take the user to the next screen for confirmation notice.

This is the error message I get "We received the following error processing your card. Please enter your information again or try a different card. This transaction has been approved.” I am using commerce authnet module to complete the transaction and it is sending the data over to them but this error doesn't give me anything to work with. I was wondering if any one has come across this issue?

Thanks any help would be appreciated!

Categories: Issue Queues

Strange Tax/Subtotal Issue on Checkout

Fri, 03/20/2015 - 09:40

I'm having a strange problem where I can see the tax being applied on the backend through the view, however as soon as I am on the actual checkout page the subtotal is not being applied and thus no tax has been added.

I had this issue before but I managed to fix it, just cant remember what I did....

Categories: Issue Queues

Force anonymous checkout? (Create new customer Profile with every order)

Thu, 03/19/2015 - 11:43

I'm building a store website, where a customer service department is also using the site on the back end to take in some orders via phone or fax. I've configured my site so that user accounts are not created when orders are placed.

If a user is authenticated, it doesn't ask them for their email address during the checkout phase, it assumes the logged in UserID. There is a permission to "Display the account information pane for authenticated users. " in the checkout settings, but it doesn't allow you to change the email address.

Is there any way to force anonymous checkout? That is, I want authenticated users to re-enter in email information so that a new customer profile is created for ever order, and that the profile email can subsequently be used to send mail to the profile, rather than the user.

Thanks in advance!

Categories: Issue Queues

Please HELP!! Locked out with this SQL error >> Base table or view not found: 1146 Table 'dbxxx.xxxfield_data_membership_entity_term_ref' doesn't exist

Wed, 03/18/2015 - 11:15

OMGOSH... HELLLPPPPPPPP!!

I am completely locked out of my website due to this error. Normally I can click the back button and it'll let me undo what I just did. But not this one. I had to logout of my site so that I can test as an anonymous buyer. All I did was click on one of my "add to cart" buttons and this things pops up =\

I'm going to post in other modules related ... hopefully get an answer fast to help me resolve this problem. I just need to be able to get back in. PLEASE HELPP!!

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbxxx.xxxfield_data_membership_entity_term_ref' doesn't exist: SELECT t.* FROM {field_data_membership_entity_term_ref} t WHERE (entity_type = :db_condition_placeholder_0) AND (entity_id IN (:db_condition_placeholder_1)) AND (language IN (:db_condition_placeholder_2)) AND (deleted = :db_condition_placeholder_3) ORDER BY delta ASC; Array ( [:db_condition_placeholder_0] => commerce_line_item [:db_condition_placeholder_1] => 1 [:db_condition_placeholder_2] => und [:db_condition_placeholder_3] => 0 ) in field_sql_storage_field_storage_load() (line 392 of .../modules/field/modules/field_sql_storage/field_sql_storage.module).

Backtrace:
PDOStatement->execute(Array) database.inc:2171
DatabaseStatementBase->execute(Array, Array) database.inc:683
DatabaseConnection->query('SELECT t.*
FROM
{field_data_membership_entity_term_ref} t
WHERE (entity_type = :db_condition_placeholder_0) AND (entity_id IN (:db_condition_placeholder_1)) AND (language IN (:db_condition_placeholder_2)) AND (deleted = :db_condition_placeholder_3)
ORDER BY delta ASC', Array, Array) select.inc:1265
SelectQuery->execute() field_sql_storage.module:392
field_sql_storage_field_storage_load('commerce_line_item', Array, 'FIELD_LOAD_CURRENT', Array, Array)
call_user_func_array('field_sql_storage_field_storage_load', Array) module.inc:866
module_invoke('field_sql_storage', 'field_storage_load', 'commerce_line_item', Array, 'FIELD_LOAD_CURRENT', Array, Array) field.attach.inc:709
field_attach_load('commerce_line_item', Array) entity.inc:316
DrupalDefaultEntityController->attachLoad(Array, ) commerce_line_item.controller.inc:114
CommerceLineItemEntityController->attachLoad(Array, ) entitycache.module:108
EntityCacheControllerHelper::entityCacheLoad(Object, Array, Array) commerce_entitycache.line_item.inc:24
CommerceEntityCacheCommerceLineItemEntityController->load(Array, Array) common.inc:7849
entity_load('commerce_line_item', Array) entity.wrapper.inc:715
EntityDrupalWrapper->value() entity.wrapper.inc:660
EntityDrupalWrapper->spotBundleInfo(1) entity.wrapper.inc:640
EntityDrupalWrapper->spotInfo() entity.wrapper.inc:330
EntityStructureWrapper->getPropertyInfo('type') entity.wrapper.inc:392
EntityStructureWrapper->get('type') entity.wrapper.inc:413
EntityStructureWrapper->__get('type') commerce_line_item.module:1434
commerce_line_items_quantity(Object, Array) commerce_cart.module:80
commerce_cart_menu_item_title(1)
call_user_func_array('commerce_cart_menu_item_title', Array) menu.inc:701
_menu_item_localize(Array, Array, 1) menu.inc:931
_menu_link_translate(Array) menu.inc:1512
_menu_tree_check_access(Array) menu.inc:1515
_menu_tree_check_access(Array) menu.inc:1502
menu_tree_check_access(Array, Array) menu.inc:1355
menu_build_tree('user-menu', Array) menu.inc:1147
menu_tree_all_data('user-menu') superfish.module:1548
theme_superfish(Array) override_functions.inc:613
nucleus_superfish(Array) theme.inc:1161
theme('superfish', Array) superfish.module:1003
superfish_contents('1') superfish.module:1075
superfish_block_view('1')
call_user_func_array('superfish_block_view', Array) module.inc:866
module_invoke('superfish', 'block_view', '1') block.module:902
_block_render_blocks(Array) block.module:686
block_list('highlighted') block.module:318
block_get_blocks_by_region('highlighted') block.module:268
block_page_build(Array) common.inc:5784
drupal_render_page(Array) common.inc:2701
drupal_deliver_html_page(Array) common.inc:2589
drupal_deliver_page(Array, '') menu.inc:532
menu_execute_active_handler() index.php:21

Categories: Issue Queues

Shopping cart does not show options in other languages

Wed, 03/18/2015 - 02:32

I'm using Commerce Customizable Products multilingual with title, entity_translation for option fields on the add to cart form. The options are displayed right in diferent languages. But the shopping cart only shows the the options in one language. Switching to a other language let the options disapear. Thats realy a big problem. But i don't know how to solve this issue.

Hope sombody has an idea?

Categories: Issue Queues

Module for Customer support system

Tue, 03/17/2015 - 16:12

Hi,

I am currently working with drupal commerce, and wondering if there is existing module providing customer support system, similar to ticketing system in Ubercart (https://www.drupal.org/project/uc_ticket).

Any suggestions are very much appreciated!

Thanks.

Categories: Issue Queues

When 'copying' featured is enabled, PHP notice appears which affects recalculation of shipping services

Mon, 03/16/2015 - 14:43

This is reproducible with a vanilla Drupal with the following setup:

Modules:
Drupal core 7.34
Address Field 7.x-1.0
Drupal Commerce 7.x-1.11
Commerce Shipping 7.x-2.1
Entity API 7.x-1.6
Views 7.x-3.10
Chaos tool suite (ctools) 7.x-1.4
Rules 7.x-2.7

Config:
* Enable profile copying on this checkout pane [shipping information]. Copy from Billing Information.
* 2 shipping methods that are dependent on shipping info. (e.g. 1 shipping method applies to shipping to US; the other shipping method applies to shipping to other countries)
* Specify default countries for shipping address and billing address.

Steps to reproduce:
1) Add product to cart.
2) Complete billing information.
3) Change country of billing information.
Problem: Every time it tries to recalculate shipping services, this PHP notice appears:

Notice: Undefined index: #default_value in addressfield_standard_country_validate() (line 594 of .../modules/addressfield/addressfield.module).

And because it can't recalculate shipping services properly, the shipping services won't get adjusted. For instance, it's possible for a non-US customer to get a cheaper shipping service because the shipping services don't get recalculated. This is only a problem if the 'Copy shipping checkout pane from billing checkout pane' is enabled.

Categories: Issue Queues

Taxes calculated for each line item but not showing up

Mon, 03/16/2015 - 04:06

On my commerce site, I have one normal sales tax, but this sales tax is not visible in checkout or in invoices. I have enabled the rules log messages, and they show that the sales tax is fired.
Is there another rule that needs to follow after the 'calculate sales tax' rule?

" Rule Calculate taxes: Sales tax fires. [edit]
0 ms Rule Calculate taxes: Sales tax fires.
0.073 ms Evaluating the action commerce_tax_calculate_by_type. [edit]
" Executing rule Calculate BTW (21%). [edit]
0 ms Executing rule Calculate BTW (21%).
0.147 ms Evaluating conditions of rule Calculate BTW (21%). [edit]
0.154 ms AND evaluated to TRUE.
" Rule Calculate BTW (21%) fires. [edit]
0 ms Rule Calculate BTW (21%) fires.
0.077 ms Evaluating the action commerce_tax_rate_apply. [edit]
0.474 ms Added the provided variable applied_tax of type commerce_price [edit]
0.489 ms Rule Calculate BTW (21%) has fired.
0.687 ms Finished executing of rule Calculate BTW (21%).
" Executing rule Calculate test. [edit]
0 ms Executing rule Calculate test.
0.121 ms Evaluating conditions of rule Calculate test. [edit]
0.126 ms AND evaluated to TRUE.
" Rule Calculate test fires. [edit]
0 ms Rule Calculate test fires.
0.067 ms Evaluating the action commerce_tax_rate_apply. [edit]
0.412 ms Added the provided variable applied_tax of type commerce_price [edit]
0.427 ms Rule Calculate test has fired.
0.584 ms Finished executing of rule Calculate test.
3.634 ms Evaluating the action variable_add. [edit]
3.677 ms Added the provided variable variable_added of type text [edit]
3.79 ms Evaluating the action drupal_message. [edit]
5.118 ms Rule Calculate taxes: Sales tax has fired.
15.98 ms Finished reacting on event Calculating the sell price of a product.

Categories: Issue Queues

Remove redundant call in function to add product to cart

Sat, 03/14/2015 - 11:33

In the function commerce_cart_product_add(), the call to invoke the product prepare event with the cart contains a redundant function call: $line_item->quantity

This value is already available in the variable $quantity, so we should use that instead for code clean up and optimisation.

Categories: Issue Queues

Remove the dependency on Composer Manager

Sat, 03/14/2015 - 10:02
Problem/Motivation

Commerce forces everyone to use Composer Manager when there are other ways to use Composer, like the one native to Drupal 8. This prevents someone from using any other way other than Composer Manager. Actually, they can use any way they want, but they are forced to have Composer Manager running. :(

Proposed resolution

Remove the dependency on Composer Manager. Add it to the installation instructions that a user needs to either use Composer Manager, or they can simply use something like this:

{
  "require": {
    "drupal/commerce": "dev-8.x-2.x"
  },
  "repositories": [
    {
      "type": "composer",
      "url": "http://packagist.drupal-composer.org/"
    }
  ]
}

(or the like)
This will load Commerce and all of it's needed dependencies (well, right now it wont because of the Composer Manager dependency).

Regardless of how the user uses Composer, they shouldn't be forced into using Composer Manager.

Categories: Issue Queues

2.x no longer installable due to composer.json

Fri, 03/13/2015 - 19:13
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for commerceguys/pricing dev-master -> satisfiable by commerceguys/pricing[dev-master].
    - commerceguys/pricing dev-master requires commerceguys/intl ~0.5 -> no matching package found.
  Problem 2
    - Installation request for commerceguys/tax dev-master -> satisfiable by commerceguys/tax[dev-master].
    - commerceguys/tax dev-master requires commerceguys/addressing ~0.5 -> no matching package found.
  Problem 3
    - Installation request for commerceguys/zone dev-master -> satisfiable by commerceguys/zone[dev-master].
    - commerceguys/zone dev-master requires commerceguys/addressing ~0.5 -> no matching package found.

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Travis: https://travis-ci.org/joshuataylor/commerce/jobs/53516742

Categories: Issue Queues

shopping cart remains empty for anomyne user

Fri, 03/13/2015 - 11:48

For anonymous users, product addition is not visible. His caddy is empty. It therefore can not buy.
However, the product is registered in administration, and each addition creates a new order.
But as soon as one is identified, the caddy is working.

Following an update Drupal 7.34, Drupal Commerce 1.11

Categories: Issue Queues