Active
Project:
Commerce Page Manager
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2012 at 09:14 UTC
Updated:
28 Aug 2015 at 17:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rszrama commentedWhy don't ya share the code? : )
Comment #2
sandergo90 commentedThought I've added it in attachement ;) Here it is
Comment #3
farald commentedWhere do I put this code to make it work?
Comment #4
sandergo90 commentedIn 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.
Comment #5
farald commentedGreat! Thanks a lot!
Comment #6
luksakFor people look for this... There is a sandbox project: http://drupal.org/sandbox/sandergo90/1438322
Comment #7
sridarm commentedIs this module ready? Because I m in an urgency to use this module.
Comment #8
sandergo90 commentedNo 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.
Comment #9
xbrianx commentedI 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.
Comment #10
zmove commentedYou 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...
Comment #11
kopeboyWhat 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
Comment #12
rszrama commented