Beecause our websites uses panles i've created a panel plugin for the commerce checkout. This includes a task plugin and a content type plugin. When you put this files in the right directory you get a panel page under your pages in the interface. Here you can create a variant and add a widget as content named Commerce checkout form. Works for me ! :)

CommentFileSizeAuthor
#2 commerce_ogone_panel.zip2.61 KBsandergo90

Comments

rszrama’s picture

Status: Needs review » Active

Why don't ya share the code? : )

sandergo90’s picture

StatusFileSize
new2.61 KB

Thought I've added it in attachement ;) Here it is

farald’s picture

Where do I put this code to make it work?

sandergo90’s picture

In my project I created a custom module where I've putted the folders that are included in the ZIP file. So you create a custom module where you create a folder plugins. In this folder you unzip the archive included. Then in your .module file you put the following:

/**
*
* @param type $owner
* @param type $plugin_type
* @return type
*/
function glue_ctools_plugin_directory($owner, $plugin_type) {
if ($owner == 'page_manager') {
return 'plugins/' . $plugin_type;
}
if ($owner == 'ctools') {
return 'plugins/' . $plugin_type;
}
}

This piece of code will call the panel plugins that I created.

farald’s picture

Great! Thanks a lot!

luksak’s picture

For people look for this... There is a sandbox project: http://drupal.org/sandbox/sandergo90/1438322

sridarm’s picture

Is this module ready? Because I m in an urgency to use this module.

sandergo90’s picture

No it's not ready yet. I haven't had the time to develop this further. I've someone wants to commit for this project please ask.

xbrianx’s picture

I am really interested in this project, as there really is no way to easily customize these pages. I added a feature request to address the 'cart' page as well. On another note though I tried to create my own page using panels and the shopping cart form view to emulate my own cart page instead of the default, but I cannot get the current cart order ID from the user in the context. Also when clicking add to cart from the custom page it sends me back to the home page instead of the checkout pages. It is really annoying that you cannot easily edit these pages in drupal commerce. Many store owners need to add a lot more items to these pages than just the basics.

zmove’s picture

Issue summary: View changes

You can set an order id to your view by providing a default argument if none is present. There is an option to choose "order id from the current user".

Then, with panels Page manager existing pages, you can override the cart page and add your view. The problem is that by doing that, the quantity update and the remove product buttons will stop working, redirecting you to the frontpage. I think the code that handle the shopping cart form is a little limited and commerce guys didn't anticipate the fact that we can override a page in a panel for more customization.

So I'm stuck with the form problem and I use the default add to cart form at the moment, but still looking for a better solution...

kopeboy’s picture

What if I want to add a block header in the checkout page based on some values of the order?

My usecase is a Wedding Registry. Every spouse can create one, and I want his guests to see (at least) the Wedding registry title at cart/checkout

rszrama’s picture

Project: Commerce Core » Commerce Page Manager
Version: 7.x-1.x-dev »
Component: Checkout » Code