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 ...
  • 401
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 = ...
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 ...
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 ...
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. ...
  • 1,029
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: ...
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" : { "...
  • 145
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 ...
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.
  • 176
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 ...
  • 7,253
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 {...
  • 165k
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 ...
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']['...
  • 26.5k
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 ...
  • 95.5k
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 ...
  • 3,482
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 ...
  • 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, ...
  • 2,817
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 ...
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 ...
1 vote

save node after paypal payment success

Get the response from Pay-pal if the response code is 200 save the node otherwise don't save it. for example : if ($responseCode == 200){ //node_save($node); } else { print "payment failed"; } ...
1 vote

Ubercart- Assign new role on expiry

It seems that "I am unsure on what action to call this rule" is your remaining issue, and that by using the rules module you are already close. However, when talking about Rules and its Event-...
1 vote
Accepted

Order product ID field returns "0" in Views

I've also experienced this issue by creating hook_views_data_alter adding the following code into it: $data['uc_order_products']['order_product_id']['field'] = array( 'handler' => '...
  • 1,482
1 vote

Sign up with no price

Ubercart for D7 has a built in free order payment method so the UC Free Order module isn't needed here. You can configure the conditions under which the payment method is available under the payment ...
  • 26.5k
1 vote
Accepted

Change product price before putting it on a cart

You want to alter the cart item, not the product node. hook_uc_cart_alter is what you're looking for. function MYMODULE_uc_cart_alter(&$items) { foreach($items as $key => $item) { //Set all ...
  • 26.5k
1 vote
Accepted

Change format of product attribute

In uc_attribute.module file comment out from line number 1360 (starts at if ($adjustment != 0) {) to 1363 and add the bellow code if ($adjustment != 0) { //$display_price = $adjustment > 0 ? '...
  • 345
1 vote

Removing the comma between Attribute Option and Attribute Price in Ubercart for Drupal 7

For Drupal 7, Ubercart 3... Go to: admin/store/settings/products > Attribute settings Tick "Display total price" and save.
1 vote

Removing the comma between Attribute Option and Attribute Price in Ubercart for Drupal 7

theme_uc_attribute_option($option, $price) is what you're looking for. Override that theme function in your theme and you can eliminate the "," & the price adjustment amount.
  • 26.5k
1 vote
Accepted

Using Masquerade to test UC coupons

Instead of using masquerade, you could use drush uli [%uid] It gives you a clean login to the site, which you could open in an incognito mode on a browser, removing all other cookies. This will allow ...
1 vote
Accepted

Services for Products

First up, I acknowledge that this is only half an answer - but as your question has received no attention as yet, I'll do my best. The way I would structure a site to do this kind of thing is: ...
  • 4,053

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