Drupal Commerce Issue Queue

[addressfield] Create a UI for subdivisions

Wed, 10/08/2014 - 06:00

This is a tricky one because subdivisions are hierarchical.

We want a subdivision link for each address format row, leading to admin/config/regional/address-formats/%format/subdivisions.
Once the subdivisions are listed, if a subdivision has children, there should be a list children link that leads to admin/config/regional/address-formats/%format/subdivisions?parent_id=parent (or any smarter solution we can come up with).

Categories: Issue Queues

[addressfield] Create a UI for address formats

Wed, 10/08/2014 - 05:54

We will want to expose the address format UI at admin/config/regional/address-formats.

We should make sure that any fields that map to constants (such as the state type and postal code type) use dropdowns on the add / edit form.

Categories: Issue Queues

[addressfield] Create a DataProvider service

Wed, 10/08/2014 - 03:19

We need a Drupal specific implementation of AddressMetadataRepository, registered as a service, that implements the interface
and returns data by loading entities using the injected entity manager.

Categories: Issue Queues

[addressfield] Create an address format entity type

Wed, 10/08/2014 - 03:14

The initial addressfield port was started during the sprint at https://github.com/cheatlex/addressfield.

This issue tracks one of the two major halves, address format entities.

We need an address format entity type that implements the address format interface from https://github.com/commerceguys/addressing.
It also needs to store the ids of the first level of subdivisions for the country code, as a performance optimization
(it allows us to load subdivisions by ID when needing to filter them by country code, instead having to load all subdivisions into memory).

Categories: Issue Queues

[addressfield] Create a subdivision entity type

Wed, 10/08/2014 - 03:09

The initial addressfield port was started during the sprint at https://github.com/cheatlex/addressfield.

This issue tracks one of the two major halves, subdivision entities.

We need a subdivision entity type that implements the subdivision interface from https://github.com/commerceguys/addressing.
It should store the ids of the parent / children, and use Subdivision::load() inside getParent() / getChildren().
(It does not need the injected metadata repository).

Categories: Issue Queues

Notice: Undefined variable: currency_code in commerce_currency_format()

Wed, 10/08/2014 - 02:41

I have copied the commerce-cart-block.tpl.php and created a custom content view. I only have a bit knowledge in PHP.
I used the devel module to get the data I need.
Here is the code I put on the tpl.php but I have this error.

Notice: Undefined variable: currency_code in commerce_currency_format()

I don't know if it's a module issue or just my code.

 if($order->order_number == $order->order_number) :
  $orderprice = commerce_currency_format($order->commerce_order_total[LANGUAGE_NONE][0]['amount']);
  $qty = $order->commerce_line_items[LANGUAGE_NONE];
  $i = 0;
  foreach($qty as $key => $value) {
    $line_item = $order->commerce_line_items[LANGUAGE_NONE][$key]['line_item_id'];
    $itemqty = commerce_line_item_load($line_item);
    $i += $itemqty->quantity;
    print t('<a href="/cart">Cart</a>: ' . $i . ' item(s) - ' . $orderprice);


Please help me to fix this issue. Thanks!!

Categories: Issue Queues

Adding a user value to an order/ product

Wed, 10/08/2014 - 02:40

Hey Guys,

I hope this is in the right project.

I have a issue that I haven't been able to resolve which is:

I have created a site that parents can book the children in to classes that a trainer does by going to different schools. When the parent signs up they add they're child/childrens names, and than can go a book the classes.
Now if the children or child is in the one school that is fine, but if the children are in two different schools this is where I am running into problems. I am basically looking to how to assign the child to a school when there is multiple of both. If someone could point me in the right direction of how to do this I'd be eternally grateful :-)

Thanks a million

Categories: Issue Queues

Custom Display Settings for Customer Profiles Ignored

Tue, 10/07/2014 - 07:32

For customer profiles we added several additional fields that would allow administrators to tag, track, and otherwise annotate customer profiles.

We altered the default display to hide all of the non address related fields and then created a custom display for the appropriate role that shows them. We've not made any theme-level alterations to the output.

When an end-user visits the site, however s/he sees all the fields, not the limited set expected.

Categories: Issue Queues

Getting an alert in the Log that says - Missing text format: plain_text

Tue, 10/07/2014 - 06:20

Getting the following alert in the log:

Type filter
Date Friday, October 3, 2014 - 11:09
User Serenity
Location http://www.serenitystocks.com/admin/commerce/orders/carts
Referrer http://www.serenitystocks.com/admin/commerce/orders
Message Missing text format: plain_text.
Severity alert

A screenshot of the log entry is attached.

The Site was upgraded from Drupal 6.
Text format machine names are stored as numbers, not as names.

Thank you.

Categories: Issue Queues

Pass all &#039;Add to cart&#039; instance settings to the &#039;Add to cart form&#039;

Tue, 10/07/2014 - 02:27

Hi, I'm using Field formatter settings to add some new settings in the 'Add to cart' formatter.
I realized that not all settings in the formatter are passed to the add-to-cart form. I'd need that all formatter settings are passed through to the form so I can pick mine in a form alter.

I've created two patches, first one is a conservative backward-compatible change that just adds the extra formatter settings to the line item context.
The other patch does some refactoring to try and pass all formatter settings in a more generalized way.

I hope, for the sake of my mental sanity your benevolence and accepts any of the proposed solutions.

Categories: Issue Queues

Product Display Node Menu Link Always Shown as Expanded

Mon, 10/06/2014 - 20:19

I have a simple product display node "Conference Registration" (node/58) that references a few products. This content type for the product display is not allowed to have a menu link attached to it. So instead I can use the "Structure -> Menus" UI:


With this, I've created a custom menu "Member Resources":


I then added a menu link to this menu to go to the product display, and have the "Show as expanded" check box unchecked using this path:


However, the menu link list item always gets the "collapsed" class attached to it:

<li class="collapsed"><a href="...">Conference Registration</li></a>

So my theme (Corporate Clean) is always adding a right angle triangle icon the menu link, see screen shot.

I've tried clearing the Menu cache, all caches, toggling the "Show as expanded" checkbox, clearing the caches again, but to no avail. The only thing I haven't tried is deleting the menu entirely and starting over. I don't have any custom modules tinkering with the menu system (aka menu attributes, etc).

Any chance this is a bug with Commerce? Or maybe a bug w/ Drupal's menu system?

Categories: Issue Queues