6 votes
Accepted

How to implement a simple shopping cart without Commerce and Ubercart?

The Basic cart module is the best solution for you... Basic cart is a very simple shopping cart / checkout process for Drupal, that just sends 2 emails after each order. Along with the shopping ...
user avatar
  • 1,584
4 votes

Add tabs on node edit page

You need to define a new URL by using hook_menu. There, 'type' is set as MENU_LOCAL_TASK and URL is like 'node/%node/CUSTOM_CONFIG'. Code snippet from the hook_menu in node.module: $items['node/%...
user avatar
  • 2,165
4 votes

Services for Products

Agree with the above and I would also add several suggestions: - use Taxonomy and Taxonomy Access Control modules to control access to content and who can update which service node - use ...
user avatar
  • 401
3 votes
Accepted

Add custom fields to Ubercart orders

You can add custom fields to Ubercart orders the same way you add custom fields to content types. They can be added by going to Store -> Configuration -> Orders -> Manage Fields (admin/store/settings/...
user avatar
3 votes

How to load Ubercart orders for certain user ID?

Here's a pretty simple function which will return all the order objects for a user (D7): function my_module_uc_orders_by_user($uid = NULL, $status = 'completed') { global $user; $uid = ...
user avatar
3 votes
Accepted

How to assign a role to a user depending on order subtotal using Ubercart?

If you want to use that "Order subtotal" in a Rules "Condition", you could try to first add a Rules condition Entity has field (related to the field containing that "Order subtotal"). That's also ...
user avatar
3 votes
Accepted

How to an Add to cart Button to a Content Type?

Below are 2 possible alternatives for setting up a simple shopping cart without using the Drupal Commerce or Ubercart modules (as in your "I don't want a huge functionality like Drupal commerce ...
user avatar
2 votes

Rule is not changing field value

You may have to save the changes after you make them. After your decrement action, add another action to save the entity.
user avatar
2 votes

Ubercart alter product price when product added to cart

This is how I solved it: function mymodule_uc_cart_alter(&$items) { $items[45]->price = 29393; } In this example I'm just hardcoding the change to demonstrate how to change the value. ...
user avatar
  • 1,011
2 votes
Accepted

Shipping quote depending on order total

Activate the following Übercart modules: Shipping Shipping Quotes Flat rate Go to http://yoursite.com/?q=admin/store/settings/quotes and click on "Add flat rate quote". Fill out the from and submit ...
user avatar
2 votes

How to add item to cart programmatically, with attributes in Ubercart

Taking Chris's answer an putting it in Answer format for readability. Figured it out, perhaps this will be of help for someone :) $product_nid = 2; $some_data = array('attributes' => array( ...
user avatar
  • 543
2 votes
Accepted

How to add a functionality to views bulk operations?

VBO comes, out of the box, with some predefined (hardcoded) operations that can be applied to each row selected in the view. The available operations are shown within "Selected bulk operations" when ...
user avatar
2 votes
Accepted

db_query('SELECT nid FROM uc_products'); doesn't give any results! Why?

I think it is likely because your first result is a "0" and php will evaluate that as a False, which stops your while loop from running.
user avatar
  • 176
2 votes

Make shipping optional ubercart

Make a new flat rate shipping quote called 'No shipping' with zero cost. Then in the Delivery method pane at checkout the user can choose between your shipping option and your no shipping option. ...
user avatar
2 votes
Accepted

how to send notification to seller when payment is received

Assuming author of product is also seller, You can do this with a rule using loop and author:mail. Try importing this rule and see how it works { "rules_e_mail_seller_checkout_notification" : { "...
user avatar
  • 135
2 votes

Disable shipping on checkout page

You can hide it dynamically if no products in the order are shippable. We are using ubercart 7.x-3.4 and on the Checkout settings page /admin/store/settings/checkout (Home » Administration » Store » ...
user avatar
2 votes

ubercart role expiration

Edit your product. Go to features. From the Add a new feature, Add both recurring fee and role assignment for your product. Hope this helps.
user avatar
  • 748
2 votes

How to implement a simple shopping cart without Commerce and Ubercart?

The Light Shop module is a simple and lightweight e-commerce solution which doesn't require the Drupal Commerce or Ubercart modules (as in your question title). Here is a quote from its project page: ...
user avatar
2 votes
Accepted

How to create mutliple order statuses in Ubercart?

First off, just a friendly reminder to get yourself on the latest release of Drupal 7 core ASAP, as there was a major vulnerability discovered in all versions of Drupal 7 prior to 7.32. As for your ...
user avatar
2 votes
Accepted

How to add a extra products fields on ubercart check out pane table?

You can go for Ubercart Webform Integration This module integrates two other modules: webform and ubercart. It allows you sell products directly from your webforms. It is particularly suited to be ...
user avatar
  • 7,167
2 votes

PDOException "column not found" but does exist

Concatenating variables into an SQL query is usually a bad idea (search for SQL injection and you'll see why). The D6 version you're starting with: $result = db_result(db_query("SELECT value FROM {...
user avatar
  • 163k
2 votes
Accepted

What to choose Content Type or Drupal Commerce or Ubercart

Just go (start with) what you call "Plain content types". For the "rating" requirements, have a look at my answer to "What are recommended modules or processes which support rating based comments or ...
user avatar
2 votes
Accepted

Alter Ubercart Billing/Delivery Panes with User Profile Info

The billing/delivery address panes are driven by a custom uc_address form field. You need to alter it's #default_value object to alter the fields. For example: $form['panes']['delivery']['address']['...
user avatar
  • 26.2k
2 votes
Accepted

Override Theme table function used in contributed module?

theme_uc_recurring_user_table() is a theme hook (not a table function), and its preprocess function is hook_preprocess_uc_recurring_user_table(). From the preprocess function you can just change the ...
user avatar
  • 94.1k
2 votes

How to put a Slider widget into the Better Exposed Filters for Ubercart price and other product features?

Jquery UI and most of its widgets are embedded with D7 core, in misc/ui folder. First add these lines to your theme template file (sites/all/themes/YOUR_THEME/template.php) : /** * Implements ...
user avatar
  • 3,442
2 votes
Accepted

When I update my database schema with drush entity-updates. I get an error

Sounds like you are trying to update existing field order_total in uc_order. You can't update it since you have some data in it already. Remove content that uses it (orders), and try again. Also note ...
user avatar
  • 252
2 votes
Accepted

How can I make my ubercart catalog content available to users?

Since you mention that authenticated users can't access your Product nodes, it's most likely that your nodes aren't published, or that there is a module interfering with the access check. First, ...
user avatar
  • 2,797
2 votes

How to add "Add to Cart" button using Ubercart?

According to this answer: ... The content type has to be an Ubercart product content type, then the add-to-cart button will automatically show up on that content type along with all the other ...
user avatar
2 votes
Accepted

Sort the products by SKU when seeing order details

uc-order--admin.tpl.php is the "default admin notification template". In other words, the email sent to admins to notify them about a new order. You can change the order of the products listed in ...
user avatar
1 vote

How to implement a simple shopping cart without Commerce and Ubercart?

If you're using PayPal, you can just go to their site and create a button to copy and paste (no need for a dedicated module). PayPal captures their address and email which they forward to you once the ...
user avatar
  • 629

Only top scored, non community-wiki answers of a minimum length are eligible