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 ...
Pierre.Vriens's 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 ...
Pierre.Vriens's user avatar
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: ...
Pierre.Vriens's user avatar
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 ...
Pierre.Vriens's user avatar
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 ...
Pierre.Vriens's 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']['...
Shawn Conn's user avatar
  • 26.9k
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 ...
Kojo's user avatar
  • 3,523
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 ...
apaderno's user avatar
  • 97.4k
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 ...
Risse's 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, ...
Wim Mostrey's user avatar
  • 2,827
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 ...
ProGrammar's 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 ...
runswithscissors's user avatar
1 vote
Accepted

How to check payment successfully?

I have the answer with suggestion of maintainer module. I can use hook_uc_payment_receipt_insert() to do that. /** * Implements hook_uc_payment_receipt_insert(). */ function ...
Jonh's user avatar
  • 777
1 vote

How to add product thumbnails to Checkout?

You can override the theme function uc_cart_review_table to accomplish this. function YOUR_THEME_uc_cart_review_table($variables) { $items = $variables['items']; $show_subtotal = $variables['...
Chris4783's user avatar
  • 1,083
1 vote

Create proof of purchase codes

You can create a new node type "vouchers" and use UUID module to add uuids to these nodes. When the office creates a new voucher it will automatically be assigned a uuid which you can then use as your ...
longboardnode's user avatar
1 vote
Accepted

Unable to install Cart with ubercart

This can be done with drupal console, you can find it here: https://hechoendrupal.gitbooks.io/drupal-console/content/en/index.html The command to use is this: drupal module:install --overwrite-config ...
Arnold PÉTER's user avatar
1 vote

Secure Pages Module or force HTTPS Across Whole Site?

Frankly, I bypassed Secure Pages and just forced all traffic to be HTTPS via htaccess. I prefer all traffic to be forced HTTPS. SecurePages generally works up front, but I have seen a lot of wacky ...
Kevin's user avatar
  • 27.8k
1 vote

Is there any drupal module to export/import all ubercart products with product details(attributes)

I would use start by having a look at UberCart Feeds with uc_feeds_product_importer they should help you get the job done.
Samp's user avatar
  • 311
1 vote

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

Can you try Slide Field Views Module The sliderfield module provides a new widget for number fields (decimal, float, and integer) and a form element. When creating a numeric field, select the ...
NTT's user avatar
  • 1,389
1 vote
Accepted

Cannot create hook_menu subitems with proper position in administrative menu

I think the MENU_LOCAL_ACTION type for your sub-menus is not the good choice. The Menu item types documentation tell us : MENU_LOCAL_ACTION : Menu type -- An action specific to the parent, ...
TytooF's user avatar
  • 430
1 vote

How do I show a coupon code to customers?

The UC coupon module doesn't have a general purpose coupon retrieval function. If you're solely looking to retrieve an active coupon, you can follow what the module itself does: query the DB table ...
Shawn Conn's user avatar
  • 26.9k
1 vote

Add product thumbnail to user/%/purchased-files?

You need to change page callback for path user/%/purchased-files in hook_menu_alter() and your custom callback should be based on code of uc_file_user_downloads() function, you need to change it, add ...
smile's user avatar
  • 938
1 vote

How to show cart with number of items in Ubercart?

As for D8 latest version, it looks like uc_cart_get_contents is not working anymore. So here is how I managed to do it : /** @var \Drupal\uc_cart\CartManager $cartManager */ $cartManager = \Drupal::...
ZyDucksLover's user avatar
1 vote

How to migrate Ubercart Shop (drupal 6) to another CMS / Shop system as Commerce, Magento, etc?

How to migrate Ubercart Shop (drupal 6) to another CMS / Shop system as Commerce, Magento, etc... A typical approach to migrate such site to D7 is to use the Migrate module. Is there any ...
Pierre.Vriens's user avatar
1 vote

How to limit adding content of a specific content type to paid memberships only?

Assuming that your "Add blog post" matches with an URL like node/add/blog, you can use the Rules module to stop any user who is trying to use that URL, if that user does not have access to the role "...
Pierre.Vriens's user avatar
1 vote

Show a list of my product with my coupon discount

==UPDATED== Looks like you need views integration for the UC Coupon Module, not fully supported yet. Maybe you want to try and port this patch to Drupal 7?
Augusto's user avatar
  • 795
1 vote

What to choose Content Type or Drupal Commerce or Ubercart

We're also planning on creating Mobile App for this so user can manage products from App. I highly suggest you go with Drupal 8 as it's mobile ready and friendly. If you are not selling anything, ...
No Sssweat's user avatar
  • 31.2k
1 vote
Accepted

Is it possible to force redirection from PayPal to the website after successful payment?

The answer is unfortunately no. PayPal will always display this as an option to the client, so you can't force the redirection back after the payment has been completed.
Aram Boyajyan's user avatar

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